11-24-2015 11:49 AM - edited 03-05-2019 02:48 AM
Hi All,
Can anyone help me on the issue which i am running on GNS3.But I am not able to ping gateway ip address from switch
I Have Router 1
Serial 1/0 ip address 192.168.10.1
Fa0/0 ip address 193.168.10.0
With Router on stick configuration
enable ip routing command on Switch ESW1
Router 1 is connected to LAN Switch network 10.10.10.0 through Fa0/1
Router 1 is configured EIGRP Protocol
But I am not able to ping default gateway ip address from switch
OUTPUT
Router 1 ip route output
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D 194.168.10.0/24 [90/554496] via 193.168.10.2, 00:19:22, FastEthernet0/0
C 192.168.10.0/24 is directly connected, Serial1/0
C 193.168.10.0/24 is directly connected, FastEthernet0/0
C 10.0.0.0/8 is directly connected, FastEthernet0/1.10
R1#
R1#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 193.168.10.1 YES NVRAM up up
Serial0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES manual up up
FastEthernet0/1.10 10.10.10.1 YES manual up up
Serial0/1 unassigned YES NVRAM administratively down down
Serial1/0 192.168.10.1 YES NVRAM up up
Serial1/1 unassigned YES NVRAM administratively down down
Serial1/2 unassigned YES NVRAM administratively down down
Serial1/3 unassigned YES NVRAM administratively down down
R1#
OUTPUT OF SWITCH
ESW1#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/97/136 ms
ESW1#ping 10.10.10.2 <------------------------------------------------------VLAN10 IP address
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
ESW1#ping 192.16.10.1 <---------------------------Gateway ip address which is advertise by EIGRP on ROUTER1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.16.10.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
ESW1#show interface trunk
Port Mode Encapsulation Status Native vlan
Fa1/0 on 802.1q trunking 1
Port Vlans allowed on trunk
Fa1/0 1-1005
Port Vlans allowed and active in management domain
Fa1/0 1,10
Port Vlans in spanning tree forwarding state and not pruned
Fa1/0 1,10
ESW1#
Can anyone help me plz
11-24-2015 06:52 PM
Hello,
Have you configured "IP default-gateway 10.10.10.1" on switch?
Please share your configuration on both swicth and router
Masoud
11-25-2015 12:50 AM
Hello
This is from the switch and not a device off the switch correct?
It also looks like you have a subinterface on the router for vlan 10 so you can apply a trunk interface on the switch
Have you created a L3 interface on the switch for it to ping?
int vlan 10
ip address 10.10.10.2 255.255.255.0
int x/x
Description Port to router
switchport trunk encapsulation dot
switchport mode trunk
no shut
ip default-gateway 10.10.10.1
no ip routing
res
Paul
12-01-2015 06:13 AM
Ty Paul.
I missed the command No ip routing and now i am able to ping my EIGRP prefix .Which i have advertise on My R1 router.
Can you please let me know what does No ip routing does.I know on the L3 device if have configured no ip routing and set default-gateway it act has host device like PC.
LOG:
ESW1#ping 192.168.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/64/92 ms
ESW1#
12-01-2015 06:32 AM
Hello,
If ip routing is enabled ip default-gateway command is ignored
Masoud
12-01-2015 07:16 AM
Hello
when you have ip routing enabled the switch will look in the routing table for prefixes not directly connected but see as your switch isn't performing any routing then it should be configured as a "host" device and provide it with a default-gateway for its next hop
lastly is you have ip routing and the default -gateway applied at the same time the default-gateway is ignored
Res
paul
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide