R1配置
r1(config)#int lo0
r1(config-if)#ip ad 1.1.1.1 255.255.255.0
r1(config-if)#int s2/1
r1(config-if)#ip ad 192.168.0.1 255.255.255.0
r1(config-if)#no sh
r1(config-if)#int f0/0
r1(config-if)#ip ad 172.16.0.1 255.255.255.0
r1(config-if)#no sh
r1(config)#int lo2
r1(config-if)#ip ad 10.1.1.1 255.255.255.252
r1(config-if)#int lo3
r1(config-if)#ip ad 10.0.0.5 255.255.255.252
r1(config-if)#int lo4
r1(config-if)#ip ad 10.0.0.9 255.255.255.252
r1(config-if)#end
R2配置
r2(config)#int lo0
r2(config-if)#ip ad 2.2.2.2 255.255.255.0
r2(config-if)#int s2/1
r2(config-if)#ip ad 192.168.0.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#int s2/2
r2(config-if)#ip ad 23.0.0.2 255.255.255.0
r2(config-if)#no sh
r2(config-if)#int lo2
r2(config-if)#ip ad 10.1.2.1 255.255.255.252
r2(config-if)#int lo3
r2(config-if)#ip ad 10.1.2.5 255.255.255.252
r2(config-if)#int lo4
r2(config-if)#ip ad 10.1.2.9 255.255.255.252
r2(config-if)#end
R3配置
r3(config)#int lo0
r3(config-if)#ip ad 3.3.3.3 255.255.255.0
r3(config-if)#int f0/0
r3(config-if)#ip ad 172.16.0.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#int s2/1
r3(config-if)#ip ad 23.0.0.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#int lo2
r3(config-if)#ip ad 10.1.3.1 255.255.255.252
r3(config-if)#int lo3
r3(config-if)#ip ad 10.1.3.5 255.255.255.252
r3(config-if)#int lo4
r3(config-if)#ip ad 10.1.3.9 255.255.255.252
r3(config-if)#end
配置带宽与eigrp路由
r1(config)#int s2/1
r1(config-if)#ban
r1(config-if)#bandwidth 64
r1(config-if)#int f0/0
r1(config-if)#ban 64
r1(config-if)#exi
r1(config)#router ei 100
r1(config-router)#no au
r1(config-router)#net 10.0.0.0
r1(config-router)#net 172.16.0.0
r1(config-router)#net 192.168.0.0
r1(config-router)#net 1.1.1.1
r2(config)#int s2/1
r2(config-if)#ban 64
r2(config-if)#int f0/0
r2(config-if)#int s2/2
r2(config-if)#ban 64
r2(config-if)#exi
r2(config)#router ei 100
r2(config-router)#no au
r2(config-router)#net 10.0.0.0
r2(config-router)#net 2.2.2.2
r2(config-router)#net 23.0.0.0
r2(config-router)#net 192.168.0.0
r3(config)#int s2/1
r3(config-if)#ban 64
r3(config-if)#int f0/0
r3(config-if)#ban 64
r3(config-if)#exi
r3(config)#router ei 100
r3(config-router)#no au
r3(config-router)#net 10.0.0.0
r3(config-router)#net 3.3.3.3
r3(config-router)#net 172.16.0.0
r3(config-router)#net 23.0.0.0
查看R1路由表
r1#sh ip ro
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
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/40640000] via 192.168.0.2, 00:01:01, Serial2/1
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/40130560] via 172.16.0.3, 00:01:01, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
D 23.0.0.0 [90/40514560] via 172.16.0.3, 00:01:03, FastEthernet0/0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, FastEthernet0/0
10.0.0.0/30 is subnetted, 9 subnets
D 10.1.3.8 [90/40130560] via 172.16.0.3, 00:01:01, FastEthernet0/0
D 10.1.2.8 [90/40640000] via 192.168.0.2, 00:01:01, Serial2/1
C 10.0.0.8 is directly connected, Loopback4
D 10.1.3.0 [90/40130560] via 172.16.0.3, 00:01:02, FastEthernet0/0
D 10.1.2.0 [90/40640000] via 192.168.0.2, 00:01:02, Serial2/1
C 10.1.1.0 is directly connected, Loopback2
D 10.1.3.4 [90/40130560] via 172.16.0.3, 00:01:03, FastEthernet0/0
D 10.1.2.4 [90/40640000] via 192.168.0.2, 00:01:03, Serial2/1
C 10.0.0.4 is directly connected, Loopback3
C 192.168.0.0/24 is directly connected, Serial2/1
查看邻居关系
r1#sh ip ei nei
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 172.16.0.3 Fa0/0 13 01:02:12 51 2280 0 7
0 192.168.0.2 Se2/1 11 01:02:37 35 2280 0 6
r2#sh ip ei nei
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 23.0.0.3 Se2/2 11 01:02:53 68 2280 0 6
0 192.168.0.1 Se2/1 13 01:03:21 39 2280 0 8
r3#sh ip ei nei
IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 23.0.0.2 Se2/1 11 01:03:10 24 2280 0 5
0 172.16.0.1 Fa0/0 13 01:03:14 47 2280 0 7
查看R2路由表
r2#sh ip ro
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
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/40640000] via 192.168.0.1, 01:04:03, Serial2/1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/40640000] via 23.0.0.3, 01:04:03, Serial2/2
23.0.0.0/24 is subnetted, 1 subnets
C 23.0.0.0 is directly connected, Serial2/2
172.16.0.0/24 is subnetted, 1 subnets
D 172.16.0.0 [90/40514560] via 192.168.0.1, 01:04:03, Serial2/1
[90/40514560] via 23.0.0.3, 01:04:03, Serial2/2
10.0.0.0/30 is subnetted, 9 subnets
D 10.1.3.8 [90/40640000] via 23.0.0.3, 01:04:03, Serial2/2
C 10.1.2.8 is directly connected, Loopback4
D 10.0.0.8 [90/40640000] via 192.168.0.1, 01:04:04, Serial2/1
D 10.1.3.0 [90/40640000] via 23.0.0.3, 01:04:04, Serial2/2
C 10.1.2.0 is directly connected, Loopback2
D 10.1.1.0 [90/40640000] via 192.168.0.1, 01:04:05, Serial2/1
D 10.1.3.4 [90/40640000] via 23.0.0.3, 01:04:05, Serial2/2
C 10.1.2.4 is directly connected, Loopback3
D 10.0.0.4 [90/40640000] via 192.168.0.1, 01:04:05, Serial2/1
C 192.168.0.0/24 is directly connected, Serial2/1
查看R2拓扑表
r2#sh ip ei top
IP-EIGRP Topology Table for AS(100)/ID(10.1.2.9)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 10.1.3.8/30, 1 successors, FD is 40640000
via 23.0.0.3 (40640000/128256), Serial2/2
via 192.168.0.1 (40642560/40130560), Serial2/1
P 1.1.1.0/24, 1 successors, FD is 40640000
via 192.168.0.1 (40640000/128256), Serial2/1
via 23.0.0.3 (40642560/40130560), Serial2/2
P 10.1.2.8/30, 1 successors, FD is 128256
via Connected, Loopback4
P 10.0.0.8/30, 1 successors, FD is 40640000
via 192.168.0.1 (40640000/128256), Serial2/1
via 23.0.0.3 (40642560/40130560), Serial2/2
P 2.2.2.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 3.3.3.0/24, 1 successors, FD is 40640000
via 23.0.0.3 (40640000/128256), Serial2/2
via 192.168.0.1 (40642560/40130560), Serial2/1
P 10.1.3.0/30, 1 successors, FD is 40640000
via 23.0.0.3 (40640000/128256), Serial2/2
via 192.168.0.1 (40642560/40130560), Serial2/1
P 10.1.2.0/30, 1 successors, FD is 128256
via Connected, Loopback2
P 10.1.1.0/30, 1 successors, FD is 40640000
via 192.168.0.1 (40640000/128256), Serial2/1
via 23.0.0.3 (40642560/40130560), Serial2/2
P 10.1.3.4/30, 1 successors, FD is 40640000
via 23.0.0.3 (40640000/128256), Serial2/2
via 192.168.0.1 (40642560/40130560), Serial2/1
P 10.1.2.4/30, 1 successors, FD is 128256
via Connected, Loopback3
P 10.0.0.4/30, 1 successors, FD is 40640000
via 192.168.0.1 (40640000/128256), Serial2/1
via 23.0.0.3 (40642560/40130560), Serial2/2
P 23.0.0.0/24, 1 successors, FD is 40512000
via Connected, Serial2/2
P 192.168.0.0/24, 1 successors, FD is 40512000
via Connected, Serial2/1
P 172.16.0.0/24, 2 successors, FD is 40514560
via 23.0.0.3 (40514560/40002560), Serial2/2
via 192.168.0.1 (40514560/40002560), Serial2/1
r2#sh ip ei top 172.16.0.0/24
IP-EIGRP (AS 100): Topology entry for 172.16.0.0/24
State is Passive, Query origin flag is 1, 2 Successor(s), FD is 40514560
Routing Descriptor Blocks:
23.0.0.3 (Serial2/2), from 23.0.0.3, Send flag is 0x0
Composite metric is (40514560/40002560), Route is Internal
Vector metric:
Minimum bandwidth is 64 Kbit
Total delay is 20100 microseconds
Reliability is 255/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
192.168.0.1 (Serial2/1), from 192.168.0.1, Send flag is 0x0
Composite metric is (40514560/40002560), Route is Internal
Vector metric:
Minimum bandwidth is 64 Kbit
Total delay is 20100 microseconds
Reliability is 255/255
Load is 1/255
Minimum MTU is 1500
Hop count is 1
配置R3的非等价负载均衡
r3(config)#router ei 100
r3(config-router)#var
r3(config-router)#variance 2
r3(config-router)#end
r3#sh ip ro
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
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/40130560] via 172.16.0.1, 00:00:05, FastEthernet0/0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/40640000] via 23.0.0.2, 00:00:05, Serial2/1
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
23.0.0.0/24 is subnetted, 1 subnets
C 23.0.0.0 is directly connected, Serial2/1
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.0.0 is directly connected, FastEthernet0/0
10.0.0.0/30 is subnetted, 9 subnets
C 10.1.3.8 is directly connected, Loopback4
D 10.1.2.8 [90/40640000] via 23.0.0.2, 00:00:05, Serial2/1
D 10.0.0.8 [90/40130560] via 172.16.0.1, 00:00:06, FastEthernet0/0
C 10.1.3.0 is directly connected, Loopback2
D 10.1.2.0 [90/40640000] via 23.0.0.2, 00:00:06, Serial2/1
D 10.1.1.0 [90/40130560] via 172.16.0.1, 00:00:06, FastEthernet0/0
C 10.1.3.4 is directly connected, Loopback3
D 10.1.2.4 [90/40640000] via 23.0.0.2, 00:00:07, Serial2/1
D 10.0.0.4 [90/40130560] via 172.16.0.1, 00:00:07, FastEthernet0/0
D 192.168.0.0/24 [90/40514560] via 172.16.0.1, 00:00:07, FastEtherne