Link to home
Start Free TrialLog in
Avatar of EESky
EESky

asked on

Cannot ping layer 3 switch

Hi Expert

The topology and config are below. R3 is layer 3 switch, R2 is layer 2 switch, and R1 is PC
R1(PC) can ping 12.0.0.2 and 12.0.0.3, but cannot ping 34.0.0.3. R2(layer 2 switch) can ping 34.0.0.3

Why cannot R1 ping 34.0.0.3 ? After I added command "ip routing" in R2, R2 became layer 3 switch and R3 can ping 34.0.0.3 Thank you

User generated image

===========================

R3#Show run

interface FastEthernet1/0
 switchport mode trunk
 no ip address
!
interface FastEthernet1/1
 switchport access vlan 40
 no ip address
!

!
interface Vlan10
 ip address 12.0.0.3 255.255.255.0
!
interface Vlan40
 ip address 34.0.0.3 255.255.255.0

==========================

R2#sh run

no ip routing
!
!
interface FastEthernet1/0
 switchport mode trunk
 no ip address
!
interface FastEthernet1/1
 switchport access vlan 10
 no ip address
!

!
interface Vlan10
 ip address 12.0.0.2 255.255.255.0
 no ip route-cache
!
!
interface Vlan40
 ip address 34.0.0.2 255.255.255.0
 no ip route-cache
!
ip default-gateway 34.0.0.3
no ip http server
ip classless

========================
R1(PC) ip address 12.0.0.1 255.255.255.0
SOLUTION
Avatar of Miftaul H
Miftaul H

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
EESky

ASKER

Thank you so much for your fast reply. and your question solved the problem.
ASKER CERTIFIED SOLUTION
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

If R1(PC) set default-gateway as 12.0.0.2, should the PC be able to ping 34.0.0.3 ?
SOLUTION
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

Yes, I also think so. but in the previous test where I set default-gateway as 12.0.0.2 in PC, the PC could not ping 34.0.0.3. After you posted your first comment, I changed the default-gate to 34.0.0.3 or 34.0.0.2, and then the PC is able to ping 34.0.0.3

I tried these several time. and i got the same result. i do not know why
SOLUTION
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

Thank you,