cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
326
Views
2
Helpful
1
Replies

Inter-vlan routing issue. Ping time-out

jaytmcl97
Level 1
Level 1

Hello Guys, 

I set up a router on a stick intervlan in a testlab but i am having trouble pinging from different vlans to another. Below are the configurations of the router and the switch. I am probably missing something here. I have connected a laptop to vlan 10 and another laptop to vlan 20 on the switch. I am not able to ping each other. I am able to ping ip's in the same vlan

Configurations from switch 

Switch#show vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa1/0/2, Gi1/0/1, Gi1/0/2
5 marketing active Fa1/0/7, Fa1/0/8, Fa1/0/9
Fa1/0/10
10 management active Fa1/0/3, Fa1/0/4, Fa1/0/5
Fa1/0/6
15 HR active Fa1/0/11, Fa1/0/12, Fa1/0/13
Fa1/0/14
20 guest active Fa1/0/15, Fa1/0/16, Fa1/0/17
Fa1/0/18, Fa1/0/19, Fa1/0/20
Fa1/0/21, Fa1/0/22, Fa1/0/23
Fa1/0/24
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup


Switch#show run
Building configuration...

Current configuration : 4432 bytes
!
! Last configuration change at 17:14:13 UTC Mon Mar 15 1993
!
version 15.0
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
no service dhcp
!
hostname Switch
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
switch 1 provision ws-c3750v2-24ts
system mtu routing 1500
!
!
!
!
crypto pki trustpoint TP-self-signed-1334983936
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1334983936
revocation-check none
rsakeypair TP-self-signed-1334983936
!
!
crypto pki certificate chain TP-self-signed-1334983936
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31333334 39383339 3336301E 170D3933 30333031 30303031
34395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 33333439
38333933 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100CD8D 287484D3 425C5FDA D8FF8EAD EE4BE5BE 5C6C29B8 6CED14DD 79306190
CE8DB27F A117D490 A42C01ED CDCBAE8C F0DCF364 FBB79CB4 D526FB40 9A2C22D8
EA514C0C EE430D49 2FF17FE3 88B73E49 9359B710 69747B7D E27483FB 909803F4
13037877 D6588588 E2CC05DD C4F28F07 6674DB4C AF5B393A F387B0AB E278022F
C8A90203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 146772A7 8C55F5FD 283C200C 3DB5B6DD 52CE761F E7301D06
03551D0E 04160414 6772A78C 55F5FD28 3C200C3D B5B6DD52 CE761FE7 300D0609
2A864886 F70D0101 05050003 81810065 14D7D276 144791E5 86F3BFC2 36A51E47
18BE7746 31304108 CA964B56 9A930692 31F1EC0F 426FF9C1 6652003A 7633FB79
43628E77 8E8911AD 9DDE4F97 E255D1BA 1B2AED65 8EC669E9 11530865 32D7CC38
6CD26F1B 6A23C521 94ADB945 B27A08B0 097DE47C B5B25B50 C9DB31F5 C7D16D53
C825BA3E EFB3DE4E 9085524A 5DBF0A
quit
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
speed 100
duplex full
!
interface FastEthernet1/0/2
switchport trunk encapsulation dot1q
switchport mode trunk
speed 100
duplex full
!
interface FastEthernet1/0/3
switchport access vlan 10
switchport mode access
!
interface FastEthernet1/0/4
switchport access vlan 10
switchport mode access
!
interface FastEthernet1/0/5
switchport access vlan 10
switchport mode access
!
interface FastEthernet1/0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet1/0/7
switchport access vlan 5
switchport mode access
!
interface FastEthernet1/0/8
switchport access vlan 5
switchport mode access
!
interface FastEthernet1/0/9
switchport access vlan 5
switchport mode access
!
interface FastEthernet1/0/10
switchport access vlan 5
switchport mode access
!
interface FastEthernet1/0/11
switchport access vlan 15
switchport mode access
!
interface FastEthernet1/0/12
switchport access vlan 15
switchport mode access
!
interface FastEthernet1/0/13
switchport access vlan 15
switchport mode access
!
interface FastEthernet1/0/14
switchport access vlan 15
switchport mode access
!
interface FastEthernet1/0/15
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/16
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/17
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/19
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/20
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/21
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/22
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/23
switchport access vlan 20
switchport mode access
!
interface FastEthernet1/0/24
switchport access vlan 20
switchport mode access
!
interface GigabitEthernet1/0/1
!
interface GigabitEthernet1/0/2
!
interface Vlan1
no ip address
!
interface Vlan10
ip address 10.0.10.2 255.255.255.0
!
interface Vlan20
ip address 10.0.20.2 255.255.255.0
!
ip http server
ip http secure-server
!
!
!
vstack
!
line con 0
line vty 0 4
login
line vty 5 15
login
!
end

 

Router configurations

MainRouter#show ip route
Default gateway is 10.0.0.1

Host Gateway Last Use Total Uses Interface
ICMP redirect cache is empty
MainRouter#show run
Building configuration...

Current configuration : 2520 bytes
!
! Last configuration change at 20:32:32 UTC Thu May 18 2023
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname MainRouter
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
dot11 syslog
ip source-route
no ip routing
!
!
!
ip dhcp excluded-address 172.18.5.1 172.18.5.15
ip dhcp excluded-address 172.18.15.1 172.18.15.15
ip dhcp excluded-address 10.0.20.1 10.0.20.15
ip dhcp excluded-address 10.0.10.1 10.0.10.15
!
ip dhcp pool marketing
network 172.18.5.0 255.255.255.0
default-router 172.18.5.1
dns-server 8.8.8.8
!
ip dhcp pool management
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 8.8.8.8
!
ip dhcp pool technicians
network 172.18.15.0 255.255.255.0
default-router 172.18.15.1
dns-server 8.8.8.8
!
ip dhcp pool guest
network 10.0.20.0 255.255.255.0
dns-server 8.8.8.8
default-router 10.0.20.1
!
!
no ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
crypto pki token default removal timeout 0
!
!
!
!
license udi pid CISCO1841 sn FHK124024ZB
archive
log config
hidekeys
!
redundancy
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
no ip route-cache
speed 100
full-duplex
!
interface FastEthernet0/0.5
encapsulation dot1Q 5
ip address 172.18.5.1 255.255.255.0
no ip route-cache
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.0.10.1 255.255.255.0
no ip route-cache
!
interface FastEthernet0/0.15
encapsulation dot1Q 15
ip address 172.18.15.1 255.255.255.0
no ip route-cache
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.0.20.1 255.255.255.0
no ip route-cache
!
interface FastEthernet0/1
no ip address
no ip route-cache
speed 100
full-duplex
!
interface FastEthernet0/1.5
encapsulation dot1Q 5
ip address 172.18.5.2 255.255.255.0
no ip route-cache
!
interface FastEthernet0/1.10
encapsulation dot1Q 10
ip address 10.0.10.1 255.255.255.0
no ip route-cache
!
interface FastEthernet0/1.15
encapsulation dot1Q 15
ip address 172.18.15.2 255.255.255.0
no ip route-cache
!
interface FastEthernet0/1.20
encapsulation dot1Q 20
ip address 10.0.20.1 255.255.255.0
no ip route-cache
!
interface Serial0/0/0
ip address 10.10.10.2 255.255.255.0
no ip route-cache
!
ip default-gateway 10.0.0.1
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
!
!
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end

MainRouter#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES manual up up
FastEthernet0/0.5 172.18.5.1 YES manual up up
FastEthernet0/0.10 10.0.10.1 YES manual up up
FastEthernet0/0.15 172.18.15.1 YES manual up up
FastEthernet0/0.20 10.0.20.1 YES manual up up
FastEthernet0/1 unassigned YES manual up down
FastEthernet0/1.5 172.18.5.2 YES manual up down
FastEthernet0/1.10 10.0.10.1 YES manual up down
FastEthernet0/1.15 172.18.15.2 YES manual up down
FastEthernet0/1.20 10.0.20.1 YES manual up down
Serial0/0/0 10.10.10.2 YES NVRAM down down

 

 

 

1 Reply 1

router need ip routing 
I see you disable it 

Review Cisco Networking for a $25 gift card