cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
903
Views
5
Helpful
3
Replies

ROAS: Inter-vlan routing works on all but one vlan

efr
Level 1
Level 1

Hello, I am practicing setting up inter-vlan routing on a simple multi-switch network and have run into a strange issue. I am able to ping to and from all vlans execpt vlan 10. I have the three switches configured with an ip address on vlan 10 and the default gateway for the vlan 10 subinterface on router 1. I can ping between the switches themselves, however, cannot ping them from any other device and they cannot ping the default gateway. All other devices can ping the vlan 10 subinterface on router 1. Thanks in advance for any insight you may be able to provide.

Capture.PNG

Router1#show running-config
Building configuration...

Current configuration : 1288 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/0.10
encapsulation dot1Q 10
ip address 200.121.10.30 255.255.255.224
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20
ip address 200.121.20.30 255.255.255.224
!
interface GigabitEthernet0/0/0.30
encapsulation dot1Q 30
ip address 200.121.30.30 255.255.255.224
!
interface GigabitEthernet0/0/0.40
encapsulation dot1Q 40
ip address 200.121.40.30 255.255.255.224
!
interface GigabitEthernet0/0/0.50
encapsulation dot1Q 50
ip address 200.121.50.30 255.255.255.224
!
interface GigabitEthernet0/0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 200.121.0.2 255.255.255.252
clock rate 2000000
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip default-gateway 200.121.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 200.121.0.1
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

Switch0#show running-config
Building configuration...

Current configuration : 1594 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch0
!
!
!
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,20,30,40,50 priority 24576
!
interface Port-channel1
switchport trunk native vlan 10
switchport mode trunk
!
interface FastEthernet0/1
switchport trunk native vlan 10
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/2
switchport trunk native vlan 10
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/3
!
interface FastEthernet0/4
switchport trunk native vlan 10
switchport mode trunk
!
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
switchport trunk native vlan 10
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 200.121.10.1 255.255.255.224
!
ip default-gateway 200.121.10.30
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end

1 Accepted Solution

Accepted Solutions

 

You have vlan 10 as the native vlan on the trunk but the router is expecting a tag. 

 

Just pick an unused vlan (or create new one if needed) and set that to be the native vlan on your trunk link and it should work. 

 

Jon

View solution in original post

3 Replies 3

Jon Marshall
Hall of Fame
Hall of Fame

 

Post the configuration for the router and the switch that connects to router. 

 

Jon

Router#show running-config
Building configuration...

Current configuration : 1288 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0/0.10
encapsulation dot1Q 10
ip address 200.121.10.30 255.255.255.224
!
interface GigabitEthernet0/0/0.20
encapsulation dot1Q 20
ip address 200.121.20.30 255.255.255.224
!
interface GigabitEthernet0/0/0.30
encapsulation dot1Q 30
ip address 200.121.30.30 255.255.255.224
!
interface GigabitEthernet0/0/0.40
encapsulation dot1Q 40
ip address 200.121.40.30 255.255.255.224
!
interface GigabitEthernet0/0/0.50
encapsulation dot1Q 50
ip address 200.121.50.30 255.255.255.224
!
interface GigabitEthernet0/0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/1/0
ip address 200.121.0.2 255.255.255.252
clock rate 2000000
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip default-gateway 200.121.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 200.121.0.1
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

Switch#show running-config
Building configuration...

Current configuration : 1594 bytes
!
version 15.0
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
!
!
!
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
spanning-tree vlan 10,20,30,40,50 priority 24576
!
interface Port-channel1
switchport trunk native vlan 10
switchport mode trunk
!
interface FastEthernet0/1
switchport trunk native vlan 10
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/2
switchport trunk native vlan 10
switchport mode trunk
channel-group 1 mode active
!
interface FastEthernet0/3
!
interface FastEthernet0/4
switchport trunk native vlan 10
switchport mode trunk
!
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
switchport trunk native vlan 10
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
ip address 200.121.10.1 255.255.255.224
!
ip default-gateway 200.121.10.30
!
!
!
!
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
!
end

 

You have vlan 10 as the native vlan on the trunk but the router is expecting a tag. 

 

Just pick an unused vlan (or create new one if needed) and set that to be the native vlan on your trunk link and it should work. 

 

Jon