• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

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

aa

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

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
0
EESky
Asked:
EESky
  • 4
  • 4
4 Solutions
 
MiftaulCommented:
What is the default gateway of the pc
0
 
EESkyAuthor Commented:
Thank you so much for your fast reply. and your question solved the problem.
0
 
MiftaulCommented:
Good that it worked.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
EESkyAuthor Commented:
If R1(PC) set default-gateway as 12.0.0.2, should the PC be able to ping 34.0.0.3 ?
0
 
MiftaulCommented:
Yes, it will. Because once r2 SVI gets the packets, it forwards them to its default gateway R3, are intervlan is happening in R3.
0
 
EESkyAuthor Commented:
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
0
 
MiftaulCommented:
Please recreate the issue and post the config, this time include the pc R1 config(gns3) as well.

It will work, thats for sure.
0
 
EESkyAuthor Commented:
Thank you,
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now