链路状态路由协议,调用分发列表的时候,作用分析,distribute-list
来源:互联网 发布:mac怎么下载歌 编辑:程序博客网 时间:2024/05/28 06:05
链路状态路由协议,调用分发列表的时候,作用分析,distribute-list
链路状态协议(IGP 特别指的是OSPF和ISIS),在这里我们讨论OSPF , 链路状态协议,in方向,分发列表只能在本地收到LSA后,生成路由的那一刹那进行路由的过滤,阻止路由条目进入路由表,执行分发列表的路由器自己路由表会被分发列表影响,(但本地LSDB仍然是有LSA的),而且该路由器仍会将LSDB中的LSA 发送给邻居。
由于R52的loopback52是通过重分布的形式进入到EIGRP中的,属于EIGRP的外部路由,因此AD值是170,而这条路由条目通过R53/R54传递给 R9/R10, R9/R10 把EIGRP路由重分布进入OSPF中,AD值是 110 ,所以R9/R10 其中一个就会选择通过彼此学到的 OSPF 路由,而不是选择EIGRP的外部路由,因此就有可能产生次优路径。
所以要在 R9/R10上面的OSPF进程下 做 入方向的分发列表,过滤掉eigrp的外部路由进入R9/R10的OSPF路由表,避免做双点双向重分发的边界路由产生次优路由。但是 LSDB 在 AS65001 还是全部一样的,所以其他的ospf内部路由器还是有eigrp的路由的。
-----------------------------
R09#show ip route | sec 52.52.52.52
D EX 52.52.52.52 [170/1536640] via 10.254.0.62, 02:56:04, Ethernet0/1
172.30.0.0/16 is variably subnetted, 6 subnets, 2 masks
R09# ---R9/R10没有次优路由产生,关于EIGRP内部路由。
D EX 52.52.52.52 [170/1536640] via 10.254.0.62, 02:56:04, Ethernet0/1
172.30.0.0/16 is variably subnetted, 6 subnets, 2 masks
R09# ---R9/R10没有次优路由产生,关于EIGRP内部路由。
R10#show ip route | sec 52.52.52.52
D EX 52.52.52.52 [170/1536640] via 10.254.0.66, 02:55:10, Ethernet0/1
172.30.0.0/16 is variably subnetted, 6 subnets, 2 masks
R10#
--------------------------------------------------
R9:
route-map odd-pe permit 10
match metric 21
set metric 1000 1 255 1 1500
route-map odd-pe permit 20
match metric 20
set metric 1000 1 255 1 1500
route-map odd-pe permit 30
match metric 1
set metric 1000 1 255 1 1500
route-map odd-pe permit 40
match metric 11
set metric 1000 1 255 1 1500
route-map odd-pe permit 999
set metric 100 10 255 1 1500
router eigrp CCIE
address-family ipv4 unicast autonomous-system 1
topology base
redistribute ospf 1 route-map odd-pe
route-map SET_TAG permit 10
match route-type external -----------OSPF重分发到EIGRP 的路由为外部路由,在这里匹配,打上 TAG 100 。
set tag 100
route-map SET_TAG permit 20
route-map DENY_TAG deny 10
match tag 172.172.172.172
route-map DENY_TAG deny 20
match tag 100 ---EIGRP重分发到OSPF 路由带有TAG 100就是原来的OSPF的内部路由,所以在这边匹配, 在调用到-OSPF 的分发列表的入方向,解决了R9/R10关于 EIGRP路由的次优路由,也防止了路由回灌。
D EX 52.52.52.52 [170/1536640] via 10.254.0.66, 02:55:10, Ethernet0/1
172.30.0.0/16 is variably subnetted, 6 subnets, 2 masks
R10#
--------------------------------------------------
R9:
route-map odd-pe permit 10
match metric 21
set metric 1000 1 255 1 1500
route-map odd-pe permit 20
match metric 20
set metric 1000 1 255 1 1500
route-map odd-pe permit 30
match metric 1
set metric 1000 1 255 1 1500
route-map odd-pe permit 40
match metric 11
set metric 1000 1 255 1 1500
route-map odd-pe permit 999
set metric 100 10 255 1 1500
router eigrp CCIE
address-family ipv4 unicast autonomous-system 1
topology base
redistribute ospf 1 route-map odd-pe
route-map SET_TAG permit 10
match route-type external -----------OSPF重分发到EIGRP 的路由为外部路由,在这里匹配,打上 TAG 100 。
set tag 100
route-map SET_TAG permit 20
route-map DENY_TAG deny 10
match tag 172.172.172.172
route-map DENY_TAG deny 20
match tag 100 ---EIGRP重分发到OSPF 路由带有TAG 100就是原来的OSPF的内部路由,所以在这边匹配, 在调用到-OSPF 的分发列表的入方向,解决了R9/R10关于 EIGRP路由的次优路由,也防止了路由回灌。
route-map DENY_TAG permit 30
router ospf 1
redistribute eigrp 1 subnets route-map SET_TAG
distribute-list route-map DENY_TAG in --解决了R9/R10关于EIGRP 路由的次优路由,也防止了路由回灌。
R10:
route-map even-pe permit 10
match metric 21
set metric 1000 1 255 1 1500
route-map even-pe permit 20
match metric 20
set metric 1000 1 255 1 1500
route-map even-pe permit 30
match metric 1
set metric 1000 1 255 1 1500
route-map even-pe permit 40
match metric 11
set metric 1000 1 255 1 1500
route-map even-pe permit 999
set metric 100 10 255 1 1500
router eigrp CCIE
address-family ipv4 unicast autonomous-system 1
topology base
redistribute ospf 1 route-map even-pe
route-map SET_TAG permit 10
match route-type external
set tag 100
route-map SET_TAG permit 20
route-map DENY_TAG deny 10
match tag 172.172.172.172
route-map DENY_TAG deny 20
match tag 100
route-map DENY_TAG permit 30
router ospf 1
redistribute eigrp 1 subnets route-map SET_TAG
distribute-list route-map DENY_TAG in
router ospf 1
redistribute eigrp 1 subnets route-map SET_TAG
distribute-list route-map DENY_TAG in --解决了R9/R10关于EIGRP 路由的次优路由,也防止了路由回灌。
R10:
route-map even-pe permit 10
match metric 21
set metric 1000 1 255 1 1500
route-map even-pe permit 20
match metric 20
set metric 1000 1 255 1 1500
route-map even-pe permit 30
match metric 1
set metric 1000 1 255 1 1500
route-map even-pe permit 40
match metric 11
set metric 1000 1 255 1 1500
route-map even-pe permit 999
set metric 100 10 255 1 1500
router eigrp CCIE
address-family ipv4 unicast autonomous-system 1
topology base
redistribute ospf 1 route-map even-pe
route-map SET_TAG permit 10
match route-type external
set tag 100
route-map SET_TAG permit 20
route-map DENY_TAG deny 10
match tag 172.172.172.172
route-map DENY_TAG deny 20
match tag 100
route-map DENY_TAG permit 30
router ospf 1
redistribute eigrp 1 subnets route-map SET_TAG
distribute-list route-map DENY_TAG in
===================================================
1 0
- 链路状态路由协议,调用分发列表的时候,作用分析,distribute-list
- distribute-list分发列表
- OSPF系列:distribute-list分发列表
- 距离矢量路由协议和链路状态路由协议
- distribute-list分发列表 和 不进行重分发LAS过滤方法area filter-list prefix、database-filter
- 链路状态和距离矢量路由协议的不同
- 链路状态路由选择协议
- 距离矢量路由协议(distance vector) VS 链路状态路由协议(link-state)
- 距离矢量与链路状态路由协议的联系…
- ospf与其他路由协议重分发的默认表现
- Cisco 路由过滤之 Route-map & Distribute-list
- Cisco 路由过滤之 Route-map & Distribute-list
- TinyOS网络协议---分发路由协议
- 链路状态路由:链路状态的工作过程
- TCP协议的状态分析
- aodv路由协议分析
- aodv路由协议分析
- aodv路由协议分析
- 在安卓项目中集成高德地图时,获取SHA1值
- windows下全志 A20 Android script.fex 调试工具
- 收集的35个 jQuery 小技巧/代码片段
- Linux常用命令整理
- UVA 1590
- 链路状态路由协议,调用分发列表的时候,作用分析,distribute-list
- PAT 1003 Emergency
- 【集成学习】scikit-learn随机森林调参小结
- 重拾CSS(1)CSS中的margin属性
- c++ 凌驾于字符串之上的string类
- android加固系列—2.加固前先要学会破解,调试内存值修改程序走向
- oracle分析函数技术详解(配上开窗函数over())
- 百练2801解题报告---填词
- pat-a1024. Palindromic Number (25