cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
596
Views
0
Helpful
7
Replies

vlan routing

jessica jestol
Level 1
Level 1

I have a 4506 connected via fiber to a 2960. The interface on the 4506 is switchport access vlan 9. The interface on the 2960 is switchport access vlan 10. They are both on the same subnet. vlan 9 on the 4506 is 10.20.2.1 and vlan 10 on the 2960 is 10.20.2.2. How are these two talking? I tried to change the interface on the 4506 to a trunk and I wasn't able to ping the 2960s vlan interface anymore.

 

4506

interface GigabitEthernet2/48
 switchport access vlan 9
 switchport mode access
interface Vlan9
 ip address 10.20.2.1 255.255.255.0

2960

interface GigabitEthernet0/1
 switchport access vlan 10
 switchport mode access
interface Vlan10
 ip address 10.20.2.2 255.255.255.0
 no ip route-cache
1 Accepted Solution

Accepted Solutions

Reza Sharifi
Hall of Fame
Hall of Fame

As long as the 2 switches are in access mode (untagged), you can use different vlan ids on each switch (9 and 10 or 100 and 200) and use the same IP segment  just like your scenario. If you trunk the interfaces than the vlans tags have to match.

HTH

View solution in original post

7 Replies 7