EIGRP非等价负载均衡

EIGRP非等价负载均衡

实验拓扑图:

 

实验过程

 

1.R1的预配置

Router>en

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host R1

R1(config)#interface f0/0

R1(config-if)#no shut

R1(config-if)#ip add 172.16.1.9 255.255.255.252

R1(config-if)#interface s2/0

R1(config-if)#no shut

R1(config-if)#ip add 172.16.1.1 255.255.255.252

R1(config-if)#exit

2.R2的预配置

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host R2

R2(config)#interface s2/0

R2(config-if)#no shut

R2(config-if)#ip add 172.16.1.2 255.255.255.252

R2(config-if)#interface s2/1

R2(config-if)#no shut

R2(config-if)#ip add 172.16.1.5 255.255.255.252

R2(config-if)#exit

3.R3的预配置

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#no ip domain-lookup

Router(config)#line console 0

Router(config-line)#no exec-timeout

Router(config-line)#loggin syn

Router(config-line)#exit

Router(config)#host R3

R3(config)#interface f0/0

R3(config-if)#no shut

R3(config-if)#ip add 172.16.1.10 255.255.255.252

R3(config-if)#interface s2/1

R3(config-if)#no shut

R3(config-if)#ip add 192.168.1.1 255.255.255.0

R3(config-if)#exit

4.配置R1EIGRP

R1(config)#router eigrp 50

R1(config-router)#network 172.16.1.0

R1(config-router)#no auto

R1(config-router)#end

5.配置R2EIGRP

R2(config)#router eigrp 50

R2(config-router)#network 172.16.1.0

*Jan  5 21:41:19.059: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 50: Neighbor 172.16.1.1 (Serial2/0) is up: new adjacency

R2(config-router)#no auto

R2(config-router)#end

6.配置R3EIGRP

R3(config)#router eigrp 50

R3(config-router)#network 172.16.1.0

*Jan  5 21:41:58.075: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 50: Neighbor 172.16.1.9 (FastEthernet0/0) is up: new adjacency

*Jan  5 21:41:58.079: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 50: Neighbor 172.16.1.5 (Serial2/1) is up: new adjacency

R3(config-router)#network 192.168.1.0

R3(config-router)#no auto

R3(config-router)#end

7.R1上观察到192.168.1.0/24网段的路由

R1#show ip route eigrp

     172.16.0.0/30 is subnetted, 3 subnets

D    172.16.1.4 [90/2172416] via 172.16.1.10, 00:04:31, FastEthernet0/0

D    192.168.1.0/24 [90/156160] via 172.16.1.10, 00:04:25, FastEthernet0/0

8.为了提高网络传输性能,需要同时使用下一跳为172.16.1.2的路由,即使用另外一条metric值不相等的路径做均衡负载。

 

9.如果需要使用另外一条路径,则需要确保R2成为R1到达192.168.1.0/24网络的可行后继(FS),要想成为FS,则需要满足可行条件(FC)

 

10.R1上查看EIGRP的拓扑表,没有发现R2出现在R1的拓扑表中。

R1#show ip eigrp to

IP-EIGRP Topology Table for AS(50)/ID(172.16.1.9)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 156160

        via 172.16.1.10 (156160/128256), FastEthernet0/0

P 172.16.1.8/30, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 172.16.1.4/30, 1 successors, FD is 2172416

        via 172.16.1.10 (2172416/2169856), FastEthernet0/0

        via 172.16.1.2 (2681856/2169856), Serial2/0

P 172.16.1.0/30, 1 successors, FD is 2169856

        via Connected, Serial2/0

11.配置R2EIGRP的度量,确保R2成为R1的可行后继者。

R2#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#interface s2/1

R2(config-if)#bandwidth 10000000  //修改带宽

R2(config-if)#delay 10  //修改延迟

R2(config-if)#exit

12.再次查看R1的拓扑表

R1#show ip eigrp to

IP-EIGRP Topology Table for AS(50)/ID(172.16.1.9)

 

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

       r - reply Status, s - sia Status

 

P 192.168.1.0/24, 1 successors, FD is 156160

        via 172.16.1.10 (156160/128256), FastEthernet0/0

        via 172.16.1.2 (2300416/130816), Serial2/0

P 172.16.1.8/30, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 172.16.1.4/30, 2 successors, FD is 2172416

        via 172.16.1.2 (2172416/2816), Serial2/0

        via 172.16.1.10 (2172416/2169856), FastEthernet0/0

P 172.16.1.0/30, 1 successors, FD is 2169856

        via Connected, Serial2/0

13.R1variance修改为19,然后查看路由表

R1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#router eigrp 50

R1(config-router)#variance 19

R1(config-router)#end

R1#show ip route eigrp

     172.16.0.0/30 is subnetted, 3 subnets

D       172.16.1.4 [90/2172416] via 172.16.1.10, 00:00:11, FastEthernet0/0

                 [90/2172416] via 172.16.1.2, 00:00:11, Serial2/0 //实现了非等价负载均衡

D       192.168.1.0/24 [90/156160] via 172.16.1.10, 00:00:11, FastEthernet0/0

                    [90/2300416] via 172.16.1.2, 00:00:11, Serial2/0

你可能感兴趣的:(负载均衡,职场,休闲,EIGRP)