Link to home
Start Free TrialLog in
Avatar of EESky
EESky

asked on

Question about Vlan connection in Layer 2 switch

Any expert can explain the vlan routing to me?

Here is topology: PC3 ------ SW1-----PC5. The switch (SW1) is layer 2 switch which connect PC3 and PC5, which are assigned to two vlan, vlan 13 and vlan 15, respectively. At SW1, I created SVI and configured vlan 13 and vlan 15, which are assigned to the SW1 port. The question is that PC3 and PC5 are in different vlan in the Layer 2 switch, why the two PC can ping each other ? Thank you.
Avatar of Soulja
Soulja
Flag of United States of America image

At SW1, I created SVI and configured vlan 13 and vlan 15, which are assigned to the SW1 port.

Can you better explain this part. You lost me here. If you have each computer is assigned to a different vlan, they should not be able to ping each other.

Can you post the switch config?
Avatar of EESky
EESky

ASKER

Thank you for your fast reply

Here is some brief config:

SW1#show run

interface FastEthernet0/3
 switchport access vlan 30
 no ip address
!
interface FastEthernet0/5
 switchport access vlan 50
 no ip address
!
interface Vlan30
 ip address 13.0.0.1 255.255.255.0
!
interface Vlan50
 ip address 15.0.0.1 255.255.255.0
!



SW1#sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES unset  administratively down down    
FastEthernet0/1            unassigned      YES unset  administratively down down    
FastEthernet0/2            unassigned      YES unset  administratively down down    
FastEthernet0/3            unassigned      YES unset  up                    up      
FastEthernet0/4            unassigned      YES unset  administratively down down    
FastEthernet0/5            unassigned      YES unset  up                    up      
Vlan30                     13.0.0.1        YES manual up                    up      
Vlan50                     15.0.0.1        YES manual up                    up    



PC1 and PC2 default gateway is 13.0.0.1 and 15.0.0.1 respectively
ASKER CERTIFIED SOLUTION
Avatar of Soulja
Soulja
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of EESky

ASKER

SW1#sh ip route

Gateway of last resort is not set

     13.0.0.0/24 is subnetted, 1 subnets
C       13.0.0.0 is directly connected, Vlan30
     15.0.0.0/24 is subnetted, 1 subnets
C       15.0.0.0 is directly connected, Vlan50

I think this is a reason


Thank you
Yep, it's in layer 3 mode.
You probably already know, but just in case:

no ip routing


to disable layer 3 mode.
Avatar of EESky

ASKER

Thank you !