cisco学习笔记

      CCIE之路中。。。。其实我是一个天才,可惜天妒英才!o(∩_∩)o...哈哈

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  39 随笔 :: 5 文章 :: 36 评论 :: 0 Trackbacks

EIGRP不等价负载均衡实验

拓扑图:

 

R1R2会走那条路呢,是直接到R2还是经过R3再到R2呢,应该是直接到R2,因为花费小

次优路径:R1R2的下一跳是R3

Router>en

Router#conf t

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

Router(config)#host R1

R1(config)#no ip do lo

R1(config)#line cons 0

R1(config-line)#no exec-t

R1(config-line)#logg sync

R1(config-line)#end

R1#conf t

R1(config)#int s1/1

R1(config-if)#ip add 10.1.1.1 255.255.255.0           

R1(config-if)#no sh

R1(config-if)#int fa0/0

R1(config-if)#ip add 10.3.3.1 255.255.255.0

R1(config-if)#no sh

R1(config)#int lo 0

R1(config-if)#ip add 1.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#router ei 100

R1(config-router)#no auto

R1(config-router)#net 10.1.1.0 0.0.0.255   eigrp的标准配置)

R1(config-router)#net 1.1.1.0 0.0.0.255

R1(config-router)#net 10.3.3.0 0.0.0.255

R1(config-router)#exi

*Sep 11 03:04:12.759: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.1.1.2 (Serial1/1) is up: new adjacency(邻居建立完毕)

R1(config-if)#

*Sep 11 03:08:27.067: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.3.3.2 (FastEthernet0/0) is up: new adjacency

 

查看路由表,在没做不等价负载均衡时,R1R2的下一跳直接是R2

R1#sh 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

 

     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/2297856] via 10.1.1.2, 00:03:29, Serial1/1

     3.0.0.0/24 is subnetted, 1 subnets

D       3.3.3.0 [90/156160] via 10.3.3.2, 00:03:25, FastEthernet0/0

     10.0.0.0/24 is subnetted, 3 subnets

C       10.3.3.0 is directly connected, FastEthernet0/0

D       10.2.2.0 [90/2172416] via 10.3.3.2, 00:03:29, FastEthernet0/0

C       10.1.1.0 is directly connected, Serial1/1

做做不等价负载均衡,

R1(config)#router ei 100

R1(config-router)#v

R1(config-router)#variance 2

2=2300416/2297856取整+1

R1#show ip eigrp topology all-links

IP-EIGRP Topology Table for AS(100)/ID(10.3.3.1)

 

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

       r - reply Status, s - sia Status

 

P 1.1.1.0/24, 1 successors, FD is 128256, serno 2

        via Connected, Loopback0

P 2.2.2.0/24, 1 successors, FD is 2297856, serno 6

        via 10.1.1.2 (2297856/128256), Serial1/1

        via 10.3.3.2 (2300416/2297856), FastEthernet0/0

P 3.3.3.0/24, 1 successors, FD is 156160, serno 9

        via 10.3.3.2 (156160/128256), FastEthernet0/0

        via 10.1.1.2 (2809856/2297856), Serial1/1

P 10.2.2.0/24, 1 successors, FD is 2172416, serno 8

        via 10.3.3.2 (2172416/2169856), FastEthernet0/0

        via 10.1.1.2 (2681856/2169856), Serial1/1

P 10.1.1.0/24, 1 successors, FD is 2169856, serno 3

        via Connected, Serial1/1

P 10.3.3.0/24, 1 successors, FD is 28160, serno 1

        via Connected, FastEthernet0/0

在看路由表:

R1#sh ip route

 

     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/2297856] via 10.1.1.2, 00:25:15, Serial1/1

     3.0.0.0/24 is subnetted, 1 subnets

D       3.3.3.0 [90/156160] via 10.3.3.2, 00:25:15, FastEthernet0/0

     10.0.0.0/24 is subnetted, 3 subnets

C       10.3.3.0 is directly connected, FastEthernet0/0

D       10.2.2.0 [90/2172416] via 10.3.3.2, 00:25:15, FastEthernet0/0

                 [90/2681856] via 10.1.1.2, 00:25:15, Serial1/1(多了一条)

C       10.1.1.0 is directly connected, Serial1/1

但是发现没有到达2.2.2.0的网络下一条还是只有一个,可在R3上修改延时来影响下一跳

先看原来的延时

R3#sh int s1/0

Serial1/0 is up, line protocol is up

  Hardware is M4T

  Internet address is 10.2.2.2/24

  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, 2000×10

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation HDLC, crc 16, loopback not set

  Keepalive set (10 sec)

  Restart-Delay is 0 secs

  Last input 00:00:03, output 00:00:00, output hang never

  Last clearing of "show interface" counters never

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/1/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

     Available Bandwidth 1158 kilobits/sec

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     886 packets input, 56360 bytes, 0 no buffer

     Received 349 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     864 packets output, 54665 bytes, 0 underruns

     0 output errors, 0 collisions, 1 interface resets

     0 output buffer failures, 0 output buffers swapped out

     2 carrier transitions     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

修改:

R3(config)#int s1/0

R3(config-if)#delay 1999

再查看R1路由表

R1#sh 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

 

     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/2297856] via 10.1.1.2, 00:00:02, Serial1/1

                [90/2300160] via 10.3.3.2, 00:00:02, FastEthernet0/0

(有了吧)

     3.0.0.0/24 is subnetted, 1 subnets

D       3.3.3.0 [90/156160] via 10.3.3.2, 00:00:02, FastEthernet0/0

     10.0.0.0/24 is subnetted, 3 subnets

C       10.3.3.0 is directly connected, FastEthernet0/0

D       10.2.2.0 [90/2172160] via 10.3.3.2, 00:00:02, FastEthernet0/0

                 [90/2681856] via 10.1.1.2, 00:00:02, Serial1/1

C       10.1.1.0 is directly connected, Serial1/1

posted on 2008-09-11 04:12 cisco交流平台 阅读(1386) 评论(3)  编辑 收藏 引用 所属分类: EIGRP

评论

# re: EIGRP不等价负载均衡实验 2012-09-23 15:47 路人王
查看路由表,在没做不等价负载均衡时,R1到R2的下一跳直接是R2
D 10.2.2.0 [90/2172416] via 10.3.3.2, 00:03:29, FastEthernet0/0

以上你是用红字标注的
是不是表错了?
应该是标记
D 2.2.2.0 [90/2297856] via 10.1.1.2, 00:03:29, Serial1/1

  回复  更多评论
  

# re: EIGRP不等价负载均衡实验 2014-03-13 20:38 在那个夏季
我做的怎么不通 啊 天才是不是坑我们啊
  回复  更多评论
  

只有注册用户登录后才能发表评论。