EIGRP(2)
实验要求:
实现非等价负载均衡。
拓扑图如下:
对 R1 的配置过程:
对 R2 的配置
1 00:13:20.783: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
1 00:13:21.783: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int
*Mar
*Mar
changed state to up
R2(config-if)#int f1/0
R2(config-if)#ip add 23.1.1.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int
*Mar
*Mar
changed state to up
R2(config-if)#int lo0
R2(config-if)#ip
*Mar
changed state to up
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#router eigrp 90
R2(config-router)#no au
R2(config-router)#no auto-summary
R2(config-router)#net 12.1.1.2 255.255.255.0
R2(config-router)#
*Mar
(FastEthernet0/0) is up: new adjacency
R2(config-router)#net 23.1.1.2 255.255.255.0
R2(config-router)#no net 12.1.1.2 255.255.255.0
1 00:15:41.047: %DUAL-5-NBRCHANGE:
1 00:14:13.871: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
1 00:14:14.871: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0,
1 00:14:20.547: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0,
IP-EIGRP(0) 90: Neighbor 12.1.1.1
IP-EIGRP(0) 90: Neighbor 12.1.1.1
IP-EIGRP(0) 90: Neighbor 12.1.1.1
1 00:30:32.131: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
1 00:30:33.131: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
1 00:31:21.975: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up
1 00:31:22.975: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0,
1 00:31:26.927: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0,
1 00:18:29.015: %SYS-5-CONFIG_I: Configured from console by console
1 00:17:23.479: %DUAL-5-NBRCHANGE:
1 00:16:45.247: %DUAL-5-NBRCHANGE:
R2(config-router)#
*Mar
(FastEthernet0/0) is down: interface down
R2(config-router)#no net 23.1.1.2 255.255.255.0
R2(config-router)#net 12.1.1.2 0.0.0.255
R2(config-router)#
*Mar
(FastEthernet0/0) is up: new adjacency
R2(config-router)#net 23.1.1.2 0.0.0.255
R2(config-router)#net 2.2.2.2 0.0.0.0
R2(config-router)#end
R2#
*Mar
R2#
R3 的配置;
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int f0/0
R3(config-if)#ip add 23.1.1.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int f
*Mar
*Mar
changed state to up
R3(config-if)#int f1/0
R3(config-if)#ip add 34.1.1.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int lo
*Mar
*Mar
changed state to up
R3(config-if)#int lo0
R3(config-if)#ip
*Mar
changed state to up
R3(config-if)#ip 3.3.3.3 255.255.255.255
^
% Invalid input detected at '^' marker.
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#no sh
R3(config-if)#exit
错宣告了 13.1.1.3 0.0.0.255
所 以 后 面 no 掉 , 添 上 忘 了 的
23.1.1.3 0.0.0.255
R3(config)#router eigrp 90
R3(config-router)#au
R3(config-router)#auto-summary
R3(config-router)#net 3.3.3.3 0.0.0.0
R3(config-router)#net 13.1.1.3 0.0.0.255
R3(config-router)#net 34.1.1.3 0.0.0.255
R3(config-router)#end
R3#
*Mar
R3#router eigrp 90
1 00:34:23.155: %SYS-5-CONFIG_I: Configured from console by console
^
% Invalid input detected at '^' marker.
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router eigrp 90
R3(config-router)#no 13.1.1.3 0.0.0.255
% Invalid input detected at '^' marker.
^
R3(config-router)#no net 13.1.1.3 0.0.0.255
R3(config-router)#net 23.1.1.3 0.0.0.255
R3(config-router)#
*Mar
(FastEthernet0/0) is up: new adjacency
R3(config-router)#end
R3#
*Mar
R3#
1 00:36:46.831: %DUAL-5-NBRCHANGE:
IP-EIGRP(0) 90: Neighbor 23.1.1.2
建立邻居关系成功
1 00:36:52.807: %SYS-5-CONFIG_I: Configured from console by console
R4 的配置
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int f0/0
R4(config-if)#ip add 34.1.1.4 255.255.255.0
R4(config-if)#no sh
R4(config-if)#int
*Mar
*Mar
changed state to up
R4(config-if)#int e1/0
R4(config-if)#ip add 14.1.1.4 255.255.255.0
R4(config-if)#no sh
1 00:47:46.147: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
1 00:47:47.147: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0,
1 00:48:17.507: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up
1 00:48:18.507: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0,
1 00:48:21.847: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0,
R4(config-if)#int l
*Mar
*Mar
changed state to up
R4(config-if)#int lo0
R4(config-if)#ip
*Mar
changed state to up
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config-if)#no sh
R4(config-if)#exit
R4(config)#router eigrp 90
R4(config-router)#au
R4(config-router)#auto-summary
R4(config-router)#net 4.4.4.4 0.0.0.0
R4(config-router)#net 14.1.1.4 0.0.0.255
R4(config-router)#net 14.1.1.4 0.0.0.255
*Mar
(Ethernet1/0) is up: new adjacency
R4(config-router)#net 34.1.1.4 0.0.0.255
R4(config-router)#
*Mar
(FastEthernet0/0) is up: new adjacency
R4(config-router)#
1 00:50:02.487: %DUAL-5-NBRCHANGE:
1 00:50:17.483: %DUAL-5-NBRCHANGE:
IP-EIGRP(0) 90: Neighbor 14.1.1.1
IP-EIGRP(0) 90: Neighbor 34.1.1.3
实现非等价负载均衡:
1、 计算赔数
A、查看拓扑表,看看最小 FD 值(最优路径)与备胎路径的比值
R4#show ip ei topo
IP-EIGRP Topology Table for AS(90)/ID(4.4.4.4)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
412160/158720=2.59 取三倍
P 2.2.2.2/32, 1 successors, FD is 158720
via 34.1.1.3 (158720/156160), FastEthernet0/0
via 14.1.1.1 (412160/156160), Ethernet1/0
P 1.1.1.1/32, 1 successors, FD is 161280
via 34.1.1.3 (161280/158720), FastEthernet0/0
via 14.1.1.1 (409600/128256), Ethernet1/0
P 4.4.4.4/32, 1 successors, FD is 128256
via Connected, Loopback0
P 3.0.0.0/8, 1 successors, FD is 156160
via 34.1.1.3 (156160/128256), FastEthernet0/0
P 4.0.0.0/8, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 12.1.1.0/24, 1 successors, FD is 33280
via 34.1.1.3 (33280/30720), FastEthernet0/0
via 14.1.1.1 (284160/28160), Ethernet1/0
P 14.0.0.0/8, 1 successors, FD is 281600
via Summary (281600/0), Null0
P 14.1.1.0/24, 1 successors, FD is 281600
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
via Connected, Ethernet1/0
P 23.0.0.0/8, 1 successors, FD is 30720
via 34.1.1.3 (30720/28160), FastEthernet0/0
P 23.1.1.0/24, 1 successors, FD is 286720
via 14.1.1.1 (286720/30720), Ethernet1/0
P 34.1.1.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 34.0.0.0/8, 1 successors, FD is 28160
via Summary (28160/0), Null0
R4
B、对 R4 再进行配置
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#router eigrp 90
R4(config-router)#var
R4(config-router)#variance
R4(config-router)#end
3
C、查看结果
R4#show ip route
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
34.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
34.1.1.0/24 is directly connected, FastEthernet0/0
34.0.0.0/8 is a summary, 00:00:17, Null0
1.0.0.0/32 is subnetted, 1 subnets
1.1.1.1 [90/161280] via 34.1.1.3, 00:00:17, FastEthernet0/0
[90/409600] via 14.1.1.1, 00:00:17, Ethernet1/0
2.0.0.0/32 is subnetted, 1 subnets
2.2.2.2 [90/158720] via 34.1.1.3, 00:00:17, FastEthernet0/0
[90/412160] via 14.1.1.1, 00:00:17, Ethernet1/0
3.0.0.0/8 [90/156160] via 34.1.1.3, 00:00:19, FastEthernet0/0
4.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
4.4.4.4/32 is directly connected, Loopback0
4.0.0.0/8 is a summary, 00:00:19, Null0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
23.1.1.0/24 [90/286720] via 14.1.1.1, 00:00:25, Ethernet1/0
23.0.0.0/8 [90/30720] via 34.1.1.3, 00:00:25, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
12.1.1.0 [90/33280] via 34.1.1.3, 00:00:25, FastEthernet0/0
14.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
14.1.1.0/24 is directly connected, Ethernet1/0
14.0.0.0/8 is a summary, 00:00:25, Null0
C
D
D
D
D
C
D
D
D
D
C
D
R4#
#