07-20-2024 03:11 PM
Hi,
I have two switches with GRE tunnel between them.
When I ping SVI on sw2 from sw1, everything works.
When I ping the host behind that SVI on sw2, ping fails.
However, when I enable ip routing on sw2, ping to host works.
How is this possible?
Sw1 has enabled IP routing, however, I am only using static routes to rute the traffic through the tunnel.
07-20-2024 03:19 PM
Do you config GW in client?
If yes and it not work share config in both SW
MHM
07-20-2024 03:45 PM
Yes, client has correct def. gw.
07-20-2024 03:49 PM
Share traceroute from both clients in both side
MHM
07-21-2024 03:55 AM
When tracerouting to SVI (host def. gw.) everything is OK. When tracerouting host itself, it seems like nothing hapens but the switch has static route through the tunnel towards host subnet and the output of show ip cef confirms this, too.
07-21-2024 03:58 AM
Cleint1-SW-GRE-SW-Cleint2
I need to see traceroute from client1 to clinet2
and see traceroute from cleint2 to cleint1
share here
thanks
MHM
07-20-2024 03:19 PM
Hi
If you run ip routing on the switch you are enabling the routing table on it. This is required for a switch to perform routing otherwise it will act as Layer2 device only
07-20-2024 03:46 PM
And that is why is this even more confusing.
07-21-2024 08:45 AM
This is required in order for switch be able to perform routing. If you use a router instead you dont need to worry with that.
07-21-2024 12:02 PM
There is much that we do not know about this environment and that makes it difficult to give good advice. So posting the configuration of both switches would be helpful.
But based on the little that we know I have this comment: if sw2 does not have ip routing enabled then a host in vlan x can only communicate with other hosts in that vlan. It seems a pretty safe assumption that anything on sw1 is not in the vlan of the host on sw2. So to be able to effectively use the GRE tunnel sw2 requires that ip routing be enabled.
07-22-2024 11:15 AM
On sw2, I pinged the host in vlan A from SVI B (on sw2) with ip routing disabled.
I will try to get the configs.
07-23-2024 03:31 PM
I am not clear when you say "On sw2, I pinged the host in vlan A". Was this access while you were on the console? On a telnet/SSH connection on sw2? Of from a host on sw2? If sw2 has the configuration statement ip default-gateway then the switch (and connections through console or telnet/SSH should be able to reach remote addresses. The real question is how hosts connected to vlans on sw2 would reach any remote destination.
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