Home / Network / Routing / NHR / When A Gateway Says: “Not A Good Gateway… Set Redirection!”

When A Gateway Says: “Not A Good Gateway… Set Redirection!”

A “debug ip cef input” on R2 shows how forwarding is done (not only routing information if we debug RIB. An added routing information does not necessary hint on the effective forwarding of the packet itself). We check that the packet (ping echo) send by PC1 (ip address 12.0.0.1) towards PC2 (ip address 23.0.0.1)

The same debug on R3 shows that received the same packet from PC1 to PC2

The same thing done on R1 shows that the packets from R2 and R3 are being received by R1 too

the debug commands showed us CEF in action and that packets from PC1 to PC2 were processed but does not hint on the order. We have two possibilities: 1) the packet travelled from R2 to R1 and then to R3 doing 3 hops, or 2) the packet travelled from R2 to R1 and R3 before it reaches PC2 doing only 2 hops. Let’s confirm using a packet capture tool (Wireshark)

Packet capture

we need to know more details about this traffic to answer the previous question whether the packet from PC1 to PC2 has done 2 or 3 hops before reaching its destination. For this purpose let’s find what ethernet mac addresses were used.

in vlan204, in the packet from PC1, the source mac address is set to R1

in the packet from pc-2, the destination mac is set to R1 too

The ARP table of R1 shows the mac address ip address correspondence in vlan 204 and confirms our findings that the packet goes through R1 and thus our first scenario. Let’s recall that ARP is the procedure in Ethernet network by which hosts, routers, etc. learns the MAC addresses match to the IP addresses they use to reach their destinations. This information is crucial to encapsulate at layer two the IP packet into the Ethernet frame.

Pages: 1 2 3 4 5 6

Leave a Reply

802.11 (4) application (2) architecture (4) asm (4) automatisation (2) cagd (3) chd (2) checkpoint (2) cisco (6) command (5) cost (6) coverage (5) debug (10) distance (6) dtls (2) dynamic rrm (5) firewall (2) fortinet (2) gns3 (2) ieee (4) igmp (5) igp (8) interference (2) internet (3) ip (2) logique (2) loop (5) mac (3) machine learning (3) model (2) mpls (3) mroute (4) multicast (5) nat (2) ndp (2) network (3) next-hop (5) nurbs (3) osi (6) pat (2) pim (4) poisoning (6) policy (2) projet (2) qos (2) radio (5) rib (5) rip (5) route (6) router (6) routing (15) rpf (4) rrm (10) security (3) security gateway (2) show (5) simulation (2) snr (2) solution (2) split-horizon (5) ssl (2) ssm (4) static (6) stp (2) summarization (5) tcp (2) travail (2) udp (2) vpn (3) vrf (3) wifi (11) windows (2) wireshark (2) wlan (7) wlc (5)

October 2025
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  
Table of Contents
Copied!