實驗拓撲以下:ide
R2 Loopback :2.2.2.2oop
R3 Loopback :3.3.3.3測試
配置以下:spa
(1)各路由器ip地址debug
R1#c
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES NVRAM up up
FastEthernet0/1 192.168.2.1 YES NVRAM up up blog
R2#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.1 YES NVRAM up up
FastEthernet0/1 192.168.1.2 YES NVRAM up up
Loopback0 2.2.2.2 YES NVRAM up up ip
R3#C
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.2 YES NVRAM up up
FastEthernet0/1 192.168.2.2 YES NVRAM up up
Loopback0 3.3.3.3 YES NVRAM up up 路由
(2)配置靜態路由get
R1it
ip route 2.2.2.0 255.255.255.0 192.168.1.2
ip route 3.3.3.0 255.255.255.0 192.168.2.2
R2
ip route 3.3.3.0 255.255.255.0 192.168.3.2
ip route 3.3.3.0 255.255.255.0 192.168.1.1
R3
ip route 2.2.2.0 255.255.255.0 192.168.2.1
ip route 2.2.2.0 255.255.255.0 192.168.3.1
(3)測試
打開R2上的debug ip packet,用擴展ping來看報的send和receive狀況便可是否實現了負載
R2#ping
Protocol [ip]:
Target IP address: 3.3.3.3
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 2.2.2.2
Type of service [0]:
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 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/12/16 ms
R2#
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/0), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/1), d=2.2.2.2, len 100, rcvd 4
00:10:17: IP: s=2.2.2.2 (local), d=3.3.3.3 (FastEthernet0/1), len 100, sending
00:10:17: IP: s=3.3.3.3 (FastEthernet0/0), d=2.2.2.2, len 100, rcvd 4
R3上同理,這裏就不貼出來了。要全通只需在各路由器上加到未知網段的靜態路由便可,寫的比較粗糙只寫出了主要的步驟,嘿嘿!!!