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

Can't Ping from router to router through Switch

mohabhanyahmed1
Level 1
Level 1

I'm using GNS3 emulator. The switche and PCs are just routers but I've change there display icon to make it look like a switch and two PCs

 

I can’t ping from R1 to R2 or from SW1 to R1

 

I can ping from SW1 to R2

I can ping from R3 to R2 interface F0/0 & S0/0

I still didn’t configure the path from R1 to the ISP

I’ve set the default-gateway for the switch to R1

Routing Protocol OSPF

 

I've tried nearly everything. I can't see any OSPF neighbors on R1

I've changed the duplex on routers and switch to half and full again. Same with speed 10 to 100

 

Attached are the config files for R1,R2,R3 & SW1.

 

Please check the attachment files and diagram.

-------------------------------------------------------------------------------------------

Router 1
========
R1#sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.24.0.1       YES NVRAM  up                    up
Serial0/0                  188.23.163.173  YES NVRAM  up                    down
FastEthernet0/1            unassigned      YES NVRAM  administratively down down
R1#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.24.0.1               -   c200.2064.0000  ARPA   FastEthernet0/0
R1#sh cdp ne
R1#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
SW1              Fas 0/0            123         R S I     3725      Fas 0/0
R1#sh ip ospf n
R1#sh ip ospf neighbor

R1#ping 10.24.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.2, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R1#ping 10.24.0.11

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.11, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R1#

----------------------------------------------------------------------------------------

Router 2
========
R2#sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.24.0.2       YES NVRAM  up                    up
Serial0/0                  10.15.1.13      YES NVRAM  up                    up
FastEthernet0/1            unassigned      YES NVRAM  administratively down down
R2#!
R2#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.24.0.2               -   c202.1ca8.0000  ARPA   FastEthernet0/0
R2#!
R2#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
SW1              Fas 0/0            132         R S I     3725      Fas 1/0
R3               Ser 0/0            139         R S I     3725      Ser 0/0
R2#!
R2#sh ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.15.1.14        0   FULL/  -        00:00:38    10.15.1.14      Serial0/0
R2#!
R2#ping 10.24.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R2#ping 10.24.0.11

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/56 ms
R2#

---------------------------------------------------------------------------------------------------------------

Switch
======
SW1#sh ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES NVRAM  up                    up
FastEthernet0/1            unassigned      YES NVRAM  up                    up
FastEthernet1/0            unassigned      YES unset  up                    up
FastEthernet1/1            unassigned      YES unset  up                    down
FastEthernet1/2            unassigned      YES unset  up                    down
FastEthernet1/3            unassigned      YES unset  up                    down
FastEthernet1/4            unassigned      YES unset  up                    down
FastEthernet1/5            unassigned      YES unset  up                    down
FastEthernet1/6            unassigned      YES unset  up                    down
FastEthernet1/7            unassigned      YES unset  up                    down
FastEthernet1/8            unassigned      YES unset  up                    down
FastEthernet1/9            unassigned      YES unset  up                    down
FastEthernet1/10           unassigned      YES unset  up                    down
FastEthernet1/11           unassigned      YES unset  up                    down
FastEthernet1/12           unassigned      YES unset  up                    down
FastEthernet1/13           unassigned      YES unset  up                    down
FastEthernet1/14           unassigned      YES unset  up                    down
FastEthernet1/15           unassigned      YES unset  up                    down
Vlan1                      10.24.0.11      YES NVRAM  up                    up
SW1#!
SW1#sh arp
Protocol  Address          Age (min)  Hardware Addr   Type   Interface
Internet  10.24.0.2               2   c202.1ca8.0000  ARPA   Vlan1
Internet  10.24.0.11              -   c206.1dc0.0000  ARPA   Vlan1
SW1#!
SW1#sh cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
R2               Fas 1/0            138         R S I     3725      Fas 0/0
R1               Fas 0/0            136         R S I     3725      Fas 0/0
SW1#!
SW1#ping 10.24.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
SW1#ping 10.24.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.24.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/40 ms
SW1#

******************************************************************************************

2 Replies 2

Zach S
Level 1
Level 1

It doesn't look like your SW1 ports have a VLAN configured. A router's ports don't default to VLAN membership, so you need to add:

encapsulation dot1Q <VLAN #>

This should make the router's ports act as switchports.

Hello Zach,

Thank you for your reply.

Currently I didn't configure any Vlans for my network so this means that all traffic should pass through, and I don't think this is the issue as R2 ports is not part of any Vlan and is pingable by switch and vice versa. 

Review Cisco Networking for a $25 gift card