cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7119
Views
0
Helpful
2
Replies

Inter-VLAN routing - Packet Tracer

it7119
Level 1
Level 1

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

 

 

 

 

1 Accepted Solution

Accepted Solutions

InayathUlla Sharieff
Cisco Employee
Cisco Employee

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**

View solution in original post

2 Replies 2

InayathUlla Sharieff
Cisco Employee
Cisco Employee

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**

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.  

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card