As announced in the previous post, here is the proof of concept of the IP Unnumbered command.
I will use here exactly the same architecture as in the previous post :
Also, 2 conditions will be fulfilled here in order to proove IP Unnumbered works :
- no routing protocol anywhere, just static routing (via serial interfaces)
- no IP unnumbered command, but 2 different static IP addresses put on the S0/0 of each router :
- on R1 : 184.108.40.206
- on R2 : 220.127.116.11
- As you can see, random IP addresses have been taken, on completely different network, although on the same link.
R1#sh run hostname R1 ! interface Ethernet0/0 ip address 18.104.22.168 255.0.0.0 half-duplex ! interface Serial1/0 ip address 22.214.171.124 255.255.255.0 serial restart-delay 0 clock rate 64000 ! ip route 10.0.0.0 255.0.0.0 Serial1/0 !
On R2 :
R2#sh run hostname R2 ! interface Ethernet0/0 ip address 10.0.0.1 255.0.0.0 half-duplex ! interface Serial1/0 ip address 126.96.36.199 255.0.0.0 serial restart-delay 0 clock rate 64000 ! ip route 188.8.131.52 255.0.0.0 Serial1/0 !
As you can see, there are static routes pointing to the other network, via the Interface and not the Next-Hop IP address, which is impossible on most of the non point-to-point link.
R1#sh ip route Gateway of last resort is not set S 10.0.0.0/8 is directly connected, Serial1/0 C 184.108.40.206/8 is directly connected, Ethernet0/0 C 220.127.116.11/24 is directly connected, Serial1/0 R2#sh ip route Gateway of last resort is not set C 10.0.0.0/8 is directly connected, Ethernet0/0 S 18.104.22.168/8 is directly connected, Serial1/0 C 22.214.171.124/8 is directly connected, Serial1/0
R1#ping Protocol [ip]: Target IP address: 10.0.0.1 Repeat count : Datagram size : Timeout in seconds : Extended commands [n]: y Source address or interface: 126.96.36.199 Type of service : Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds: Packet sent with a source address of 188.8.131.52 !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/24/56 ms
Now a traceroute, same deal for the source IP address. See the first hop’s IP address ? It’s the one on R2 S0/0 :
R1#traceroute Protocol [ip]: Target IP address: 10.0.0.1 Source address: 184.108.40.206 Numeric display [n]: y Timeout in seconds : Probe count : Minimum Time to Live : Maximum Time to Live : Port Number : Loose, Strict, Record, Timestamp, Verbose[none]: Type escape sequence to abort. Tracing the route to 10.0.0.1 1 220.127.116.11 40 msec * 104 msec R1#
Aaaaand… IT WORKS !