CCIE-05-EIGRP-CFG

实验条件

网络拓朴

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

实验目的

  1. SW3和SW4之间的E2/0-3为trunk,使用dot1q进行封装,关闭动态协商功能
  2. 按照逻辑图配置vlan,使得设备间直连能够通信
  3. 配置EIGRP,AS号为34567
  4. 在一台交换机上使用一条命令使得R8去往SW4的lo0、VLAN411、R11的lo0形成等价负载均衡
  5. 在一台交换机上使用一条命令使得R9去往SW3的lo0、VLAN310、R10的lo0形成等价负载均衡

开始配置

从逻辑拓扑图上,一共有VLAN7个。

1. SW3和SW4之间的E2/0-3为trunk,使用dot1q进行封装,关闭动态协商功能

SW3:
	vlan 38,49,89,310,411,111,34
	int vlan 38
		ip address 123.10.2.6 255.255.255.252
		no sh
	interface vlan 310
		ip address 123.10.2.17 255.255.255.252
		no sh
	interface vlan 34
		ip address 123.10.2.13 255.255.255.252
	no sh
	interface range e2/0-3
		switchport trunk encapsulation dot1q
		switchport mode trunk
	interface range e0/0-3
		switchport mode access
	!下面的接口按顺序配置e0/0-3,对应从R8-R11E0/1口,记住这个对应关系,
	!打开逻辑拓扑图,按顺序找R8-11对应E0/1所在VLAN,直接配置就可以了
	interface e0/0
		switchport access vlan 89
	interface e0/1
		switchport access vlan 49
	interface e0/2
		switchport access vlan 111
	interface e0/3
		switchport access vlan 411
SW4:
	vlan 38,49,89,310,411,111,34
	interface vlan 34
		ip address 123.10.2.14 255.255.255.252
		no sh
	interface vlan 49
		ip address 123.10.2.10 255.255.255.252
		no sh
	interface vlan 411
		ip address 123.10.2.21 255.255.255.252
	no sh
	interface range e2/0-3
		switchport trunk encapsulation dot1q
		switchport mode trunk
	interface range e0/0-3
		switchport mode access
	!下面的接口按顺序配置e0/0-3,对应从R8-R11E0/2口,记住这个对应关系,
	!打开逻辑拓扑图,按顺序找R8-11对应E0/2所在VLAN,直接配置就可以了
	interface e0/0
		switchport access vlan 38
	interface e0/1
		switchport access vlan 89
	interface e0/2
		switchport access vlan 310
	interface e0/3
		switchport access vlan 111

Trunk配置完成

2. 按照逻辑图配置vlan,使得设备间直连能够通信

Vlan上面也已经配置完成,直连口连通性检测

R8-R9:

R8>ping 123.10.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

R8-SW3:

R8>ping 123.10.2.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.6, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

R9-SW4R9>ping 123.10.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/3 ms

R10-R11R10>ping 123.10.2.26
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.26, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/2 ms

R10-SW3R10>ping 123.10.2.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.17, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

R11-SW4R11>ping 123.10.2.21
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 123.10.2.21, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

3. 配置等价负载均衡

6台设备全配置好EIGRP,

SW4:
	router eigrp 34567
		router-id 123.204.4.4
		network 123.10.2.8 255.255.255.252
		network 123.10.2.12 255.255.255.252
		network 123.10.2.20 255.255.255.252
		network 123.204.4.4 255.255.255.255
SW3:
	router eigrp 34567
		router-id 123.203.3.3
		network 123.10.2.4 255.255.255.252
		network 123.10.2.16 255.255.255.252
		network 123.10.2.12 255.255.255.252
		network 123.203.3.3 255.255.255.255
R8:
	router eigrp 34567
		router-id 123.8.8.8
		network 123.10.2.0 0.0.0.3
		network 123.10.2.5 0.0.0.3
		network 123.8.8.8 0.0.0.0
R9:
	router eigrp 34567
		router-id 123.9.9.9
		network 123.10.2.2 0.0.0.3
		network 123.10.2.9 0.0.0.3
		network 123.6.6.6 0.0.0.0
R10:
	router eigrp 34567
		router-id 123.10.10.10
		network 123.10.2.18 0.0.0.3
		network 123.10.2.25 0.0.0.3
		network 123.10.10.10 0.0.0.0
R11:
	router eigrp 34567
		router-id 123.11.11.11
		network 123.10.2.22 0.0.0.3
		network 123.10.2.26 0.0.0.3
		network 123.11.11.11 0.0.0.0

1. 在一台交换机上使用一条命令使得R8去往SW4的lo0、VLAN411、R11的lo0形成等价负载均衡

去往SW4的Lo0和VLAN411、R11 的lo0形成等价负载均衡,其实就是R8到SW4之间(经过R9或是SW3要形成等价负载均衡)

在R8上查询到SW4Lo0的路由信息

R8#do show ip route 
......
      101.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        101.1.34.0/30 is directly connected, Ethernet0/0
L        101.1.34.2/32 is directly connected, Ethernet0/0
      123.0.0.0/8 is variably subnetted, 14 subnets, 2 masks
C        123.8.8.8/32 is directly connected, Loopback0
C        123.10.2.0/30 is directly connected, Ethernet0/1
L        123.10.2.1/32 is directly connected, Ethernet0/1
C        123.10.2.4/30 is directly connected, Ethernet0/2
L        123.10.2.5/32 is directly connected, Ethernet0/2
D        123.10.2.8/30 [90/282112] via 123.10.2.6, 00:01:27, Ethernet0/2
D        123.10.2.12/30 [90/281856] via 123.10.2.6, 00:01:27, Ethernet0/2
D        123.10.2.16/30 [90/281856] via 123.10.2.6, 00:01:27, Ethernet0/2
D        123.10.2.20/30 [90/282112] via 123.10.2.6, 00:01:27, Ethernet0/2
D        123.10.2.24/30 [90/307456] via 123.10.2.6, 00:01:09, Ethernet0/2
D        123.10.10.10/32 [90/409856] via 123.10.2.6, 00:01:10, Ethernet0/2
D        123.11.11.11/32 [90/410112] via 123.10.2.6, 00:01:08, Ethernet0/2
D        123.203.3.3/32 [90/409600] via 123.10.2.6, 00:01:27, Ethernet0/2
D        123.204.4.4/32 [90/409856] via 123.10.2.6, 00:01:27, Ethernet0/2
R8#show ip eigrp topology 123.204.4.4/32
EIGRP-IPv4 Topology Entry for AS(34567)/ID(123.8.8.8) for 123.204.4.4/32
  State is Passive, Query origin flag is 1, 1 Successor(s), FD is 409856
  Descriptor Blocks:
  123.10.2.6 (Ethernet0/2), from 123.10.2.6, Send flag is 0x0
      Composite metric is (409856/130816), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 6010 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 2
        Originating router is 123.204.4.4
  123.10.2.2 (Ethernet0/1), from 123.10.2.2, Send flag is 0x0
      Composite metric is (435200/409600), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 7000 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 2
        Originating router is 123.204.4.4
R8#

发现已经有两条路由了,并且所有 EIGRP都采用默认的K值,Metric的计算只采用了最小带宽和累积的延迟总数来计算, 因此要形成等价的负载均衡就要把这两个参数修改一致,如果修改的是最小带宽,则需要整条链路中带宽最小的都要增高(也可以找一段调低,要比最小带宽低才有效),比较麻烦,所以可以调整延迟总和,可以在R9上调小也可以在SW3上调大延迟,不过要求是在交换机上修改,所以调整VLAN34入方向上接口延迟就可以,也就是调大SW3的int vlan 34的延迟

SW3(config-if)#do show int vlan 34   
Vlan34 is up, line protocol is up 
  Hardware is Ethernet SVI, address is aabb.cc80.1000 (bia aabb.cc80.1000)
  Internet address is 123.10.2.13/30
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec, 
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
 ......

现在的值是10usec, 目标是让路径上总的延迟达到7000,则需要配置当前接口的延迟值为:
(7000-6010+10)/10=100(delay后面的参数值的单位是:10usec)

SW3(config-if)#delay 100
SW3(config-if)#do show int vlan 34
Vlan34 is up, line protocol is up 
  Hardware is Ethernet SVI, address is aabb.cc80.1000 (bia aabb.cc80.1000)
  Internet address is 123.10.2.13/30
  MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 1000 usec, 
     reliability 255/255, txload 1/255, rxload 1/255

再次检查R8上的路由表

R8#show ip route 
Codes: L - local, 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, H - NHRP, l - LISP
       a - application route
       + - replicated route, % - next hop override, p - overrides from PfR

Gateway of last resort is not set

      101.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        101.1.34.0/30 is directly connected, Ethernet0/0
L        101.1.34.2/32 is directly connected, Ethernet0/0
      123.0.0.0/8 is variably subnetted, 14 subnets, 2 masks
C        123.8.8.8/32 is directly connected, Loopback0
C        123.10.2.0/30 is directly connected, Ethernet0/1
L        123.10.2.1/32 is directly connected, Ethernet0/1
C        123.10.2.4/30 is directly connected, Ethernet0/2
L        123.10.2.5/32 is directly connected, Ethernet0/2
D        123.10.2.8/30 [90/307200] via 123.10.2.2, 00:00:35, Ethernet0/1
D        123.10.2.12/30 [90/307200] via 123.10.2.6, 00:00:35, Ethernet0/2
D        123.10.2.16/30 [90/281856] via 123.10.2.6, 00:14:46, Ethernet0/2
D        123.10.2.20/30 [90/307456] via 123.10.2.6, 00:00:35, Ethernet0/2
                        [90/307456] via 123.10.2.2, 00:00:35, Ethernet0/1
D        123.10.2.24/30 [90/307456] via 123.10.2.6, 00:14:28, Ethernet0/2
D        123.10.10.10/32 [90/409856] via 123.10.2.6, 00:14:29, Ethernet0/2
D        123.11.11.11/32 [90/435456] via 123.10.2.6, 00:00:35, Ethernet0/2
                         [90/435456] via 123.10.2.2, 00:00:35, Ethernet0/1
D        123.203.3.3/32 [90/409600] via 123.10.2.6, 00:14:46, Ethernet0/2
D        123.204.4.4/32 [90/435200] via 123.10.2.6, 00:00:35, Ethernet0/2
                        [90/435200] via 123.10.2.2, 00:00:35, Ethernet0/1
R8#

R8去往SW4的lo0、VLAN411、R11的lo0都形成了等价负载均衡。

2. 在一台交换机上使用一条命令使得R9去往SW3的lo0、VLAN310、R10的lo0形成等价负载均衡

一样的逻辑,去往SW3的Lo0和VLAN310、R10 的lo0形成等价负载均衡,其实就是R9到SW3之间(经过R8或是SW4要形成等价负载均衡)
在R9上查询到SW3Lo0的路由信息

R9#show ip route 
......
D        123.203.3.3/32 [90/409856] via 123.10.2.10, 00:15:43, Ethernet0/1
D        123.204.4.4/32 [90/409600] via 123.10.2.10, 00:01:32, Ethernet0/1
R9#show ip eigrp topology 123.203.3.3
EIGRP-IPv4 Topology Entry for AS(34567)/ID(123.9.9.9)
%Entry 123.203.3.3/8 not in topology table
R9#show ip eigrp topology 123.203.3.3/32
EIGRP-IPv4 Topology Entry for AS(34567)/ID(123.9.9.9) for 123.203.3.3/32
  State is Passive, Query origin flag is 1, 1 Successor(s), FD is 409856
  Descriptor Blocks:
  123.10.2.10 (Ethernet0/1), from 123.10.2.10, Send flag is 0x0
      Composite metric is (409856/130816), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 6010 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 2
        Originating router is 123.203.3.3
  123.10.2.1 (Ethernet0/2), from 123.10.2.1, Send flag is 0x0
      Composite metric is (435200/409600), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 7000 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 2
        Originating router is 123.203.3.3
R9#

调整SW4的VLAN34接口的延迟值

SW4(config)#interface vlan 34
SW4(config-if)#delay 100
R9#show ip route                        
......
      123.0.0.0/8 is variably subnetted, 15 subnets, 2 masks
D        123.8.8.8/32 [90/409600] via 123.10.2.1, 00:00:13, Ethernet0/2
C        123.9.9.9/32 is directly connected, Loopback0
C        123.10.2.0/30 is directly connected, Ethernet0/2
L        123.10.2.2/32 is directly connected, Ethernet0/2
D        123.10.2.4/30 [90/307200] via 123.10.2.1, 00:00:13, Ethernet0/2
C        123.10.2.8/30 is directly connected, Ethernet0/1
L        123.10.2.9/32 is directly connected, Ethernet0/1
D        123.10.2.12/30 [90/307200] via 123.10.2.10, 00:00:13, Ethernet0/1
D        123.10.2.16/30 [90/307456] via 123.10.2.10, 00:00:13, Ethernet0/1
                        [90/307456] via 123.10.2.1, 00:00:13, Ethernet0/2
D        123.10.2.20/30 [90/281856] via 123.10.2.10, 00:03:45, Ethernet0/1
D        123.10.2.24/30 [90/307456] via 123.10.2.10, 00:17:38, Ethernet0/1
D        123.10.10.10/32 [90/435456] via 123.10.2.10, 00:00:13, Ethernet0/1
                         [90/435456] via 123.10.2.1, 00:00:13, Ethernet0/2
D        123.11.11.11/32 [90/409856] via 123.10.2.10, 00:03:45, Ethernet0/1
D        123.203.3.3/32 [90/435200] via 123.10.2.10, 00:00:13, Ethernet0/1
                        [90/435200] via 123.10.2.1, 00:00:13, Ethernet0/2
D        123.204.4.4/32 [90/409600] via 123.10.2.10, 00:03:45, Ethernet0/1
R9#

R9去往SW3的lo0、VLAN310、R10的lo0都形成了等价负载均衡

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

烈火蜓蜻

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值