无论是身处学校还是步入社会,大家都尝试过写作吧,借助写作也可以提高我们的语言组织能力。写范文的时候需要注意什么呢?有哪些格式需要注意呢?以下是我为大家搜集的优质范文,仅供参考,一起来看看吧
eigrp协议配置命令篇一
我们在接口配置过程中,帧中继的dlci号和ip映射时也没有配置broadcast 参数,这类问题该如何解决?下面小编给你带来的内容回答以上疑问。
r1(config)#router eigrp 100
r1(config-router)#no auto-summary //关闭自动汇总
r1(config-router)#net 192.168.1.0 //宣告路由条目
r1(config-router)#end
r2(config)#router eigrp 100
r2(config-router)#no auto-summary
r2(config-router)#net 192.168.1.0
r2(config-router)#net 10.1.0.0 0.0.255.255 //宣告路由条目
r2(config-router)#end
r3(config)#router eigrp 100
r3(config-router)#no auto-summary
r3(config-router)#net 192.168.1.0
r3(config-router)#net 172.16.0.0 0.0.255.255
r3(config-router)#end
r1#show ip eigrp neighbors //查看eigrp 邻居表,发现并没有邻居
ip-eigrp neighbors for process 100
r1#show ip eigrp topology //查看eigrp 拓扑表,并没有学习到任何的路由
ip-eigrp topology table for as(100)/id(192.168.1.1)
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 2169856
via connected, serial0/0
因为帧中继默认为nbma 模式,也就是非广播的多路访问模式,它会阻止广播数据和组播数据,我们在接口配置过程中,帧中继的dlci 号和ip 映射时也没有配置broadcast 参数,而eigrp 路由协议通过组播地址224.0.0.10 来发送相应的路由信息(比如hello、update 等数据包),所以r1 并没有发现任何的邻居路由器。
为了能让eigrp的路由信息通过帧中继传播,在没有配置broadcast 参数的情况下,我们可以通过单播的形式来发送eigrp 数据包,我们对以上的配置进行改进:
r1(config)#router eigrp 100
r1(config-router)#neighbor 192.168.1.2 serial 0/0 //手工指定邻居,实现单播方式
r1(config-router)#neighbor 192.168.1.3 serial 0/0
r1(config-router)#end
r2(config)#router eigrp 100
r2(config-router)#neighbor 192.168.1.1 serial 0/0 //手工指定邻居,实现单播方式
r2(config-router)#end
r3(config)#router eigrp 100
r3(config-router)#neighbor 192.168.1.1 serial 0/0 //手工指定邻居,实现单播方式
r3(config-router)#end
*mar 1 00:29:18.955: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.2 (serial0/0) is up: new adjacency
*mar 1 00:29:19.115: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.3 (serial0/0) is up: new adjacency
r1#show ip eigrp neighbors
ip-eigrp neighbors for process 100
h address interface hold uptime srtt rto q seq
(sec) (ms) cnt num
1 192.168.1.3 se0/0 156 00:01:19 99 594 0 3
0 192.168.1.2 se0/0 154 00:01:19 137 822 0 3
r2#
*mar 1 00:29:18.979: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.1 (serial0/0) is up: new adjacency
r2#
r2#show ip eigrp neighbor
ip-eigrp neighbors for process 100
h address interface hold uptime srtt rto q seq
(sec) (ms) cnt num
0 192.168.1.1 se0/0 138 00:02:31 171 1026 0 7
r1#show ip route eigrp 100 //查看路由表,可以看到r1 能够学习到r2 和r3 相应的网络
172.16.0.0/24 is subnetted, 4 subnets
d 172.16.0.0 [90/2297856] via 192.168.1.3, 00:03:45, serial0/0
d 172.16.1.0 [90/2297856] via 192.168.1.3, 00:03:45, serial0/0
d 172.16.2.0 [90/2297856] via 192.168.1.3, 00:03:45, serial0/0
d 172.16.3.0 [90/2297856] via 192.168.1.3, 00:03:45, serial0/0
10.0.0.0/24 is subnetted, 4 subnets
d 10.1.3.0 [90/2297856] via 192.168.1.2, 00:03:45, serial0/0
d 10.1.2.0 [90/2297856] via 192.168.1.2, 00:03:45, serial0/0
d 10.1.1.0 [90/2297856] via 192.168.1.2, 00:03:45, serial0/0
d 10.1.0.0 [90/2297856] via 192.168.1.2, 00:03:45, serial0/0
r1#ping 10.1.0.1 //验证是否可以访问r2 的网络
type escape sequence to abort.
sending 5, 100-byte icmp echos to 10.1.0.1, timeout is 2 seconds:
!!!!!
success rate is 100 percent (5/5), round-trip min/avg/max = 20/56/104 ms
r1#ping 172.16.0.1 //验证是否可以访问r3 的网络
type escape sequence to abort.
sending 5, 100-byte icmp echos to 172.16.0.1, timeout is 2 seconds:
!!!!!
success rate is 100 percent (5/5), round-trip min/avg/max = 8/52/124 ms
查看r2 的路由表:
r2#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
10.0.0.0/24 is subnetted, 4 subnets
c 10.1.3.0 is directly connected, loopback3
c 10.1.2.0 is directly connected, loopback2
c 10.1.1.0 is directly connected, loopback1
c 10.1.0.0 is directly connected, loopback0
c 192.168.1.0/24 is directly connected, serial0/0
发现r2 并没有学习到r3 的172.16.0.0 网络, r1 通过s0/0 接口学习到r3 宣告的172.16.0.0网络,因为r1 s0/0 接口的水平分割机制导致r1 不会再由这个接口s0/0 发布出去,所以r2无法学习到r3 宣告的网络,同理,r3 也无法学习到r2 宣告的网络。
对帧中继配置进行修正,使用broadcast 参数:
r1(config)#router eigrp 100
r1(config-router)#no neighbor 192.168.1.2 s0/0 //取消手工指定邻居
*mar 1 00:42:29.807: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.2 (serial0/0) is down:
r1(config-router)#no neighbor 192.168.1.3 s0/0
*mar 1 00:42:32.623: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.3 (serial0/0) is down:
r1(config-router)#exit
r1(config)#int s0/0
r1(config-if)#no fram map ip 192.168.1.2 102 //取消之前不带broadcast 参数的静态映射
r1(config-if)#no fram map ip 192.168.1.3 103
r1(config-if)#frame map ip 192.168.1.2 102 broadcast
r1(config-if)#frame map ip 192.168.1.3 103 broadcast
r1(config-if)#end
r2(config)#router eigrp 100
r2(config-router)#no neighbor 192.168.1.1 serial0/0
r2(config-router)#int s0/0
r2(config-if)#no frame-relay map ip 192.168.1.1 201
r2(config-if)# frame-relay map ip 192.168.1.1 201 broadcast
r3(config)#router eigrp 100
r3(config-router)#no neighbor 192.168.1.1 serial0/0
r3(config-router)#int s0/0
r3(config-if)#no
*mar 1 00:47:58.943: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.1 (serial0/0) is up: new adjacency
r3(config-if)#no frame-relay map ip 192.168.1.1 301
r3(config-if)#frame-relay map ip 192.168.1.1 301 broadcast
r3(config-if)#end
可以看到添加了broadcast 后,帧中继可以正常的.传递组播数据了,r1 就可以和r2 和r3 建立邻居关系并正常学习到路由。
r1#show ip eigrp neighbors
ip-eigrp neighbors for process 100
h address interface hold uptime srtt rto q seq
(sec) (ms) cnt num
1 192.168.1.3 se0/0 178 00:00:03 906 5000 0 7
0 192.168.1.2 se0/0 178 00:01:57 1040 5000 0 6
r1#show ip route eigrp 100
172.16.0.0/24 is subnetted, 4 subnets
d 172.16.0.0 [90/2297856] via 192.168.1.3, 00:00:53, serial0/0
d 172.16.1.0 [90/2297856] via 192.168.1.3, 00:00:53, serial0/0
d 172.16.2.0 [90/2297856] via 192.168.1.3, 00:00:53, serial0/0
d 172.16.3.0 [90/2297856] via 192.168.1.3, 00:00:53, serial0/0
10.0.0.0/24 is subnetted, 4 subnets
d 10.1.3.0 [90/2297856] via 192.168.1.2, 00:02:46, serial0/0
d 10.1.2.0 [90/2297856] via 192.168.1.2, 00:02:46, serial0/0
d 10.1.1.0 [90/2297856] via 192.168.1.2, 00:02:46, serial0/0
d 10.1.0.0 [90/2297856] via 192.168.1.2, 00:02:46, serial0/0
查看r3 的路由表,发现r3 并没有学习到r2 的网络,这是因为r1 默认情况下接口有水平。
r3#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
172.16.0.0/24 is subnetted, 4 subnets
c 172.16.0.0 is directly connected, loopback0
c 172.16.1.0 is directly connected, loopback1
c 172.16.2.0 is directly connected, loopback2
c 172.16.3.0 is directly connected, loopback3
c 192.168.1.0/24 is directly connected, serial0/0
将r1 接口的水平分割关闭:
r1(config)#interface serial 0/0
r1(config-if)#no ip split-horizon eigrp 100
r1(config-if)#end
当r1 的水平分割关闭后,eigrp 进程会出现相应提示:
*mar 1 00:52:25.055: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.3 (serial0/0) is resync: split horizon changed
*mar 1 00:52:25.055: %dual-5-nbrchange: ip-eigrp(0) 100: neighbor 192.168.1.2 (serial0/0) is resync: split horizon changed
查看r1 接口s0/0 的情况:
r1#show ip int s0/0 | include split
split horizon is disabled
r2#show ip route eigrp 100
172.16.0.0/24 is subnetted, 4 subnets
d 172.16.0.0 [90/2809856] via 192.168.1.1, 00:08:03, serial0/0
d 172.16.1.0 [90/2809856] via 192.168.1.1, 00:08:03, serial0/0
d 172.16.2.0 [90/2809856] via 192.168.1.1, 00:08:03, serial0/0
d 172.16.3.0 [90/2809856] via 192.168.1.1, 00:08:03, serial0/0
虽然r2 路由表中有172.16.2.0/24 网络,但r2 并没有ping 通,这是什么原因?
因为r3 的串行口帧中继配置时,只做了ip 192.168.1.1 和dlci 号的对应,没有做ip 192。168.1.2 和dlci 号的映射,所以r2 ping 172.16.2.1 时,采用的源地址为192.168.1.2,通过路由表发现目的地址172.16.2.1 具有符合的条目,转发接口为192.168.1.1,于是由r1 转发到r3,r3 在回包过程时,源地址为172.16.2.1,而目标地址为192.168.1.2,但它不知道这个地址怎么转发于是就丢弃。
r3(config)#int s0/0
r3(config-if)#frame-relay map ip 192.168.1.2 301 broadcast
r2(config-if)#end
r2(config)#int s0/0
r2(config-if)#frame-relay map ip 192.168.1.3 201 broadcast
r2(config-if)#end
r2#ping 172.16.1.1
type escape sequence to abort.
sending 5, 100-byte icmp echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
success rate is 100 percent (5/5), round-trip min/avg/max = 44/88/160 ms
s("content_relate");
【eigrp路由协议的配置实例】相关文章:
1.
eigrp带宽实例配置
2.eigrp带宽实例配置详解
3.解析eigrp浮动汇总路由配置
4.路由器初始配置实例
5.eigrp实验配置过程解析
6.华为交换机路由器配置实例2016
7.h3c路由器nat配置实例
8.eigrp协议理论详解
【本文地址:http://www.pourbars.com/zuowen/2785785.html】