CCNP-2 EIGRP实验2(BSCI)51CTO博客 - 威尼斯人

CCNP-2 EIGRP实验2(BSCI)51CTO博客

2019-03-06 10:47:49 | 作者: 子昂 | 标签: 实验,负载,均衡 | 浏览: 2690

CCNP-2 EIGRP实验2 实验拓扑:
实验要求:1-R1到R4悉数起EIGRP路由协议,装备bandwidth,调查EIGRP的等价负载均衡和非等价负载均衡。 实验意图:把握EIGRP等价负载均衡和非等价负载均衡的根本装备。
实验装备: R1: R1(config)#int s1/0 R1(config-if)#ip add 199.99.1.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shu R1(config-if)#bandwidth 56 R1(config-if)#exit R1(config)#int s1/1 R1(config-if)#ip add 199.99.2.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#bandwidth 56 R1(config-if)#no shu R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#net R1(config-router)#network 199.99.1.0 R1(config-router)#network 199.99.2.0   R2: R2(config)#int s1/0 R2(config-if)#ip add 199.99.1.2 255.255.255.0 R2(config-if)#no shu R2(config-if)#bandwidth 56 R2(config-if)#exit R2(config)#int s1/1 R2(config-if)#ip add 199.99.3.1 255.255.255.0 R2(config-if)#no shu R2(config-if)#bandwidth 56 R2(config-if)#exit R2(config)#router eigrp 100 R2(config-router)#net 199.99.1.0 R2(config-router)#net 199.99.3.0   R3: R3(config)#int s1/0 R3(config-if)#ip add 199.99.2.2 255.255.255.0 R3(config-if)#bandwidth 56 R3(config-if)#no shu R3(config-if)#exit R3(config)#int s1/1 R3(config-if)#ip add 199.99.4.1 255.255.255.0 R3(config-if)#no shu  R3(config-if)#bandwidth 56 R3(config-if)#exit R3(config)#router eigrp 100 R3(config-router)#net 199.99.2.0 R3(config-router)#net 199.99.4.0   R4: R4(config)#int s1/0 R4(config-if)#ip add 199.99.3.2 255.255.255.0 R4(config-if)#bandwidth 56 R4(config-if)#clock rate 64000 R4(config-if)#no shu R4(config-if)#exit R4(config)#int s1/1 R4(config-if)#ip add 199.99.4.2 255.255.255.0 R4(config-if)#bandwidth 56 R4(config-if)#clock rate 64000 R4(config-if)#no shu R4(config-if)#exit R4(config)#int loop0 R4(config-if)#ip add 100.100.100.100 255.255.255.0 R4(config-if)#exit R4(config)#router eigrp 100 R4(config-router)#net 199.99.3.0 R4(config-router)#net 199.99.4.0 R4(config-router)#net 100.100.100.0 以上是根本装备,咱们在没个接口上都用到了一条指令bandwidth 56来指定带宽为56Kbps,下面咱们在R1上show ip route检查路由表: R1#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   D    100.0.0.0/8 [90/46866176] via 199.99.2.2, 00:00:02, Serial1/1                  [90/46866176] via 199.99.1.2, 00:00:02, Serial1/0 D    199.99.3.0/24 [90/46738176] via 199.99.1.2, 00:00:04, Serial1/0 C    199.99.2.0/24 is directly connected, Serial1/1 C    199.99.1.0/24 is directly connected, Serial1/0 D    199.99.4.0/24 [90/46738176] via 199.99.2.2, 00:00:04, Serial1/1 能够看到有两条到100.0.0.0/8的路由(EIGRP主动汇总),再用show ip eigrp topology检查拓扑表: R1#show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(199.99.2.1)   Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,        r - reply Status, s - sia Status   P 100.0.0.0/8, 2 successors, FD is 46866176         via 199.99.1.2 (46866176/46354176), Serial1/0         via 199.99.2.2 (46866176/46354176), Serial1/1 P 199.99.4.0/24, 1 successors, FD is 46738176         via 199.99.2.2 (46738176/46226176), Serial1/1 P 199.99.1.0/24, 1 successors, FD is 46226176         via Connected, Serial1/0 P 199.99.2.0/24, 1 successors, FD is 46226176         via Connected, Serial1/1 P 199.99.3.0/24, 1 successors, FD is 46738176         via 199.99.1.2 (46738176/46226176), Serial1/0 能够发现到100.0.0.0/8的两条途径的FD都是46354176,这样就能够完成等价负载均衡的意图,留意:EIGRP等价负载均衡默许启用,而且支撑4条不同的等价途径,能够运用路由协议装备形式下的maximum-paths指令修正,最多支撑6条;下面在R1上起loopback接口,并用eigrp宣告接口IP地址,再进行ping测验: R1(config)#int loop0 R1(config-if)#ip add 200.200.200.200 255.255.255.0 R1(config)#end R1#ping Protocol [ip]: Target IP address: 100.100.100.100 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 200.200.200.200 Type of service [0]: Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: r Number of hops [ 9 ]: Loose, Strict, Record, Timestamp, Verbose[RV]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.100.100.100, timeout is 2 seconds: Packet sent with a source address of 200.200.200.200 Packet has IP options:  Total option bytes= 39, padded length=40  Record route: <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)   Reply to request 0 (136 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 1 (232 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.1.1)    (199.99.3.1)    (100.100.100.100)    (199.99.3.2)    (199.99.1.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 2 (88 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 3 (232 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.1.1)    (199.99.3.1)    (100.100.100.100)    (199.99.3.2)    (199.99.1.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 4 (136 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Success rate is 100 percent (5/5), round-trip min/avg/max = 88/164/232 ms 留意成果顶用赤色符号的部分说明晰经过两条途径都能够抵达意图 下面咱们把R1到R3的带宽修正为55: R1(config)#int s1/1 R1(config-if)#bandwidth 55 过一会咱们能够发现R1到100.0.0.0/8的路由就剩余1条了,就是经过R2的路由,为了完成非等价负载均衡,咱们需求用到variance指令在路由协议装备形式下修正(有关非等价负载均衡的计算办法这儿略),如下: R1(config-router)#variance 2 修正完等一会后,运用指令show ip route检查路由表: R1#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   C    200.200.200.0/24 is directly connected, Loopback0 D    100.0.0.0/8 [90/47697408] via 199.99.2.2, 00:00:03, Serial1/1                  [90/46866176] via 199.99.1.2, 00:00:03, Serial1/0 D    199.99.3.0/24 [90/46738176] via 199.99.1.2, 00:00:03, Serial1/0 C    199.99.2.0/24 is directly connected, Serial1/1 C    199.99.1.0/24 is directly connected, Serial1/0 D    199.99.4.0/24 [90/47569408] via 199.99.2.2, 00:00:03, Serial1/1                    [90/47250176] via 199.99.1.2, 00:00:03, Serial1/0 能够看到有两条到100.0.0.0/8的路由,而且它们的metric值是不相等的,经过199.99.2.2的路由得metric要比经过199.99.1.2的路由的metric大,由于咱们把出口带宽改成了55,在看一下show ip eigrp topology R1#show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(200.200.200.200)   Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,        r - reply Status, s - sia Status   P 100.0.0.0/8, 1 successors, FD is 46866176         via 199.99.1.2 (46866176/46354176), Serial1/0         via 199.99.2.2 (47697408/46354176), Serial1/1 P 199.99.4.0/24, 1 successors, FD is 47250176         via 199.99.1.2 (47250176/46738176), Serial1/0         via 199.99.2.2 (47569408/46226176), Serial1/1 P 199.99.1.0/24, 1 successors, FD is 46226176         via Connected, Serial1/0 P 199.99.2.0/24, 1 successors, FD is 47057408         via Connected, Serial1/1 P 199.99.3.0/24, 1 successors, FD is 46738176         via 199.99.1.2 (46738176/46226176), Serial1/0 P 200.200.200.0/24, 1 successors, FD is 128256         via Connected, Loopback0 然后进行ping测验: R1#ping Protocol [ip]: Target IP address: 100.100.100.100 Repeat count [5]: Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 200.200.200.200 Type of service [0]: Set DF bit in IP header? [no]: Validate reply data? [no]: Data pattern [0xABCD]: Loose, Strict, Record, Timestamp, Verbose[none]: r Number of hops [ 9 ]: Loose, Strict, Record, Timestamp, Verbose[RV]: Sweep range of sizes [n]: Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 100.100.100.100, timeout is 2 seconds: Packet sent with a source address of 200.200.200.200 Packet has IP options:  Total option bytes= 39, padded length=40  Record route: <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)   Reply to request 0 (236 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 1 (280 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.3.2)    (199.99.1.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 2 (112 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 3 (112 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.3.2)    (199.99.1.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Reply to request 4 (160 ms).  Received packet has options  Total option bytes= 40, padded length=40  Record route:    (199.99.2.1)    (199.99.4.1)    (100.100.100.100)    (199.99.4.2)    (199.99.2.2)    (200.200.200.200) <*>    (0.0.0.0)    (0.0.0.0)    (0.0.0.0)  End of list   Success rate is 100 percent (5/5), round-trip min/avg/max = 112/180/280 ms 咱们能够与前面等价负载均衡的ping成果相比较,发现走的途径不同。 特别留意:在EIGRP进行负载均衡的时分,如果是PROCESS-SWITCHING的话,那么是依据每个数据包来进行负载均衡的,如果是FAST-SWITCHING的话,则是依据意图地进行负载均衡的!   实验总结:经过本实验能够把握在EIGRP中进行等价负载均衡和非等价负载均衡的根本装备办法。还应该知道EIGRP的metric的计算是根自己接口的带宽和链路上总的推迟计算出来的。(书上说带宽是链路上的最小带宽,但是在做实验的时分发现实验成果与书上说的有抵触,请读者自己证明!)。

版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表威尼斯人立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章