cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
847
Views
5
Helpful
4
Replies

Router Can Access External LAN But Switch Cannot

Kaan Kaya
Level 1
Level 1

Hi,

 

I'm having trouble trying to get my switch to talk to an external network (192.168.1.0). Both my router and switch are on the 192.168.10.0 network. The 2800 series router is able to talk to the 192.168.1.0 network and access the internet through it, however, my 2950 series switch which is directly connected to the router cannot speak to the 192.168.1.0 network but can reach its own default-gateway at 192.168.10.1 as well as the port which connects to the other network on the router (192.168.1.251). I've been stuck on it for a while now and have a feeling its a simple fix but can't seem to find it. The configs for both are here:

 

R1:

 

Current configuration : 1347 bytes
!
! Last configuration change at 14:32:16 UTC Mon Jul 13 2020
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname KaanR1
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$C//X$osPk3kswi9N4FP2k5K90c1
!
no aaa new-model
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
!
ip domain name CiscoR1.com
login block-for 240 attempts 3 within 300
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO2811 sn FHK1211F1CD
username Kaan.Kaya1 privilege 15 password 7 08701E1D280C0202011F5E547A7F
!
!
ip ssh version 2
!
!
!
!
!
interface FastEthernet0/0
description KaanR1 - Gateway
ip address 192.168.1.251 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description KaanR1 - KaanS1
ip address 192.168.10.1 255.255.255.0
duplex auto
speed auto
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
control-plane
!
!
!
!
mgcp profile default
!
!
!
!
banner motd ^CC
:) ^C
!
line con 0
exec-timeout 5 0
password 7 132402151E1F10787B747C
logging synchronous
login
line aux 0
line vty 0 4
password 7 014254577A1E011A32581C594951
logging synchronous
login local
transport input ssh
!
scheduler allocate 20000 1000
end

 

 

 

S1:

 

Current configuration : 1811 bytes
!
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname KaanS1
!
enable secret 5 $1$KII8$ccDIRDngRuwJu9a9Jfq9f/
!
username Kaan.Kaya1 privilege 15 password 7 08701E1D280C0202011F5E547A7F
ip subnet-zero
!
ip domain-name CiscoS1.com
ip ssh time-out 120
ip ssh authentication-retries 3
ip ssh version 2
!
spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
description KaanS1 - WAP
!
interface FastEthernet0/2
description KaanS1 - Camera
!
interface FastEthernet0/3
description KaanS1 - KaanPC
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1

 description KaanS1 - KaanR1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.10.10 255.255.255.0
no ip route-cache
!
interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown
!
ip default-gateway 192.168.10.1
no ip http server
banner motd ^C
:) ^C
!
line con 0
exec-timeout 0 0
password 7 1436070C19173E79747867
logging synchronous
login
line vty 0 4
exec-timeout 0 0
password 7 040A59552E344B5B1A0D5747425F
no login
transport input ssh
line vty 5 15
exec-timeout 0 0
password 7 05080F1C22431F5B4A
no login
!
!
end

 

 

Thank you.

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Devices on the 192.168.1.0/24 subnet need to know how to reach 192.168.10.0/24. 

They need to have a routing entry directing traffic for 192.168.10.0/24 to go via 192.168.1.251 (your router).

 

cheers,

Seb.

View solution in original post

4 Replies 4

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Devices on the 192.168.1.0/24 subnet need to know how to reach 192.168.10.0/24. 

They need to have a routing entry directing traffic for 192.168.10.0/24 to go via 192.168.1.251 (your router).

 

cheers,

Seb.

Yeah had to configure a static route from 192.168.1.0 to 192.168.10.0 on the opposite router. Done this mistake before but still forget 😅.

 

Thank you.

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

interface Vlan1
ip address 192.168.10.10 255.255.255.0
no ip route-cache
!
interface Vlan10
ip address 192.168.10.10 255.255.255.0
shutdown

You have the same subnet assigned to 2 different vlans?

HTH

balaji.bandi
Hall of Fame
Hall of Fame

Let make below switch configuraion as Trunk :

 

interface GigabitEthernet0/1

description KaanS1 - KaanR1

switchport mode trunk

 

other option is

 

make Layer 3 interface (hope you do not like to do, since you have other vlan coming through).

Try and let us know.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help