Lab not working: inter-VLAN routing with SVI

James777James777 Member Posts: 20 ■□□□□□□□□□
trying to do this lab with inter-VLAN routing with SVI, but I can't get it to work and can't figure out whats missing.

PC 1 and 2 are in VLAN 10 (10.10.10.1/24)
PC 3 and 4 are in VLAN 20 (10.20.20.1/24)

I've configured L3 switch in both Packet Tracer and GNS3 with these commands:
ip routing
int vlan 10
ip address 10.10.10.1 255.255.255.0
int vlan 20
ip address 10.20.20.1 255.255.255.0


int range f0/1-2
switchport mode access
switchport access vlan 10


int range f0/3-4
switchport mode access
switchport access vlan 20


show ip int brief
10 VLAN0010 active Fa0/1, Fa0/2
20 VLAN0020 active Fa0/3, Fa0/4


show vlan brief
FastEthernet0/1 unassigned YES unset up up
FastEthernet0/2 unassigned YES unset up up
FastEthernet0/3 unassigned YES unset up up
FastEthernet0/4 unassigned YES unset up up
Vlan1 unassigned YES unset administratively down down
Vlan10 10.10.10.1 YES manual up up
Vlan20 10.20.20.1 YES manual up up


ping within VLAN works:
PC1 can ping PC2 and 10.10.10.1
PC2 can ping PC1 and 10.10.10.1
PC3 can ping PC4 and 10.20.20.1
PC4 can ping PC3 and 10.20.20.1

but inter-VLAN pings fail:
PC1 cannot ping PC3/4/10.20.20.1
PC2 cannot ping PC3/4/10.20.20.1
PC3 cannot ping PC1/2/10.10.10.1
PC4 cannot ping PC1/2/10.10.10.1

sames results in packet tracer and GNS3.

is something missing? thanks for reading.
svi.jpg 16.2K

Comments

  • CryptoQueCryptoQue Member Posts: 204 ■■■□□□□□□□
    1. Can you provide the output of your "show ip route" from the L3 switch?
    2. Can you double check the mask and DFGW on the PC's?
    3. Even though your VLAN 10 & 20 are up up, your interface vlan 10 & 20 being down down could prevent your 2 VLANs from routing. Can you make sure your interface vlan 10 & 20 are up up? If not then you need to issue the no shut command on them.
  • James777James777 Member Posts: 20 ■□□□□□□□□□
    hi CryptoQue,

    show
    ip route
    Gateway of last resort is not set
    10.0.0.0/24 is subnetted, 2 subnets
    C 10.10.10.0 is directly connected, Vlan10
    C 10.20.20.0 is directly connected, Vlan20

    int vlan 10 is up & up
    int vlan 20 is up & up

    IP masks are correct
    DFGW is..... empty

    set PC1 and 2 DFGW to 10.10.10.1
    set PC3 and 4 DFGW to 10.20.20.1

    and inter-VLAN pinging worked!

    I missed the DFGW during configuration (I'm a newbie), but thanks for the awesome feedback. I think this is something I will well remember.

    Thanks again.
  • CryptoQueCryptoQue Member Posts: 204 ■■■□□□□□□□
    Glad you were able to find the fix!
Sign In or Register to comment.