10-19-2016 01:28 PM - edited 03-08-2019 07:51 AM
I am using packet tracer to configure inter-vlan routing using a L3 switch and 2 access switches
VLAN 10 - 10.0.0.1 /24
VLAN 20 - 20.0.0.1 /24
Laptops - 10.0.0.2 /24 - VLAN 10
DG - 10.0.0.1
Desktops - 20.0.0.2 /24 - VLAN 20
DG - 20.0.0.1
I am unable to ping the devices between the same VLAN's.
Access L2 switch configuration:
Switch 1:
1#s
hostname 1
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
!
!
interface GigabitEthernet0/1
switchport trunk allowed vlan 10,20
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
!
Access Switch 2:
2>en
2#sh run
Building configuration...
Current configuration : 1202 bytes
!
version 12.2
hostname 2
!
!
!
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
interface GigabitEthernet0/1
switchport trunk allowed vlan 10,20
switchport mode trunk
!
interface GigabitEthernet0/2
!
interface Vlan1
no ip address
shutdown
line con 0
!
line vty 0 4
login
line vty 5 15
login
!
!
!
End
L3 switch configuration:
L3 switch:
L3#sh run
Building configuration...
Current configuration : 1549 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname L3
!
ip routing
!
!
spanning-tree mode pvst
!
!
interface GigabitEthernet0/1
switchport trunk allowed vlan 10,20
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet0/2
switchport trunk allowed vlan 10,20
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface Vlan1
no ip address
shutdown
!
interface Vlan10
mac-address 000c.cf42.6c01
ip address 10.0.0.1 255.255.255.0
!
interface Vlan20
mac-address 000c.cf42.6c02
ip address 20.0.0.1 255.255.255.0
!
ip classless
!
ip flow-export version 9
!
!
end
Solved! Go to Solution.
10-19-2016 09:30 PM
Hi,
Some strange behaviour. I too saw the same issue originally then I configure " ip routing" couple of times on the core device and it started working fine .
Let me attach my .pkt file to this as I am able to ping end to end between the vlans.
Few things:-
1- PC -- check the Default gateway and make sure you are able to ping the DG.
2- from Core device you should be able to ping all the pcs.
HTH
Regards
Inayath
**Please do not forget to rate this post if helpfull**
10-19-2016 09:30 PM
Hi,
Some strange behaviour. I too saw the same issue originally then I configure " ip routing" couple of times on the core device and it started working fine .
Let me attach my .pkt file to this as I am able to ping end to end between the vlans.
Few things:-
1- PC -- check the Default gateway and make sure you are able to ping the DG.
2- from Core device you should be able to ping all the pcs.
HTH
Regards
Inayath
**Please do not forget to rate this post if helpfull**
10-20-2016 01:51 AM
The only command i missed in the access switch was the spanning-tree portfast
Rest seemed same. Might be an issue with packet tracer. Thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide