温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何进行route-map解析

发布时间:2022-01-10 09:20:05 来源:亿速云 阅读:126 作者:柒染 栏目:网络安全

这篇文章跟大家分析一下“如何进行route-map解析”。内容详细易懂,对“如何进行route-map解析”感兴趣的朋友可以跟着小编的思路慢慢深入来阅读一下,希望阅读后能够对大家有所帮助。下面跟着小编一起深入学习“如何进行route-map解析”的知识吧。

1、route-map解析

如何进行route-map解析

如何进行route-map解析

如何进行route-map解析

如何进行route-map解析

如何进行route-map解析

2、实验拓扑

如何进行route-map解析

3、实验配置

R1配置

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0

interface Serial0/1

 ip address 13.1.1.1 255.255.255.0

interface Serial0/2

 ip address 14.1.1.1 255.255.255.0

router eigrp 90

 redistribute ospf 110 metric 1500 100 255 1 1500

 network 14.1.1.0 0.0.0.255

 no auto-summary

router ospf 110

 router-id 1.1.1.1

 log-adjacency-changes

 redistribute rip subnets

 network 13.1.1.0 0.0.0.255 area 0

router rip

 version 2

 network 12.0.0.0

 no auto-summary

R2配置

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

interface Loopback22

 ip address 22.22.22.22 255.255.255.0

interface Loopback222

 ip address 222.222.222.222 255.255.255.0

interface Serial0/0

 ip address 12.1.1.2 255.255.255.0

router rip

 version 2

 network 2.0.0.0

 network 22.0.0.0

 network 222.222.222.0

 network 12.0.0.0

 no auto-summary

R3配置

interface Loopback0

 ip address 3.3.3.3 255.255.255.0

interface Serial0/0

 ip address 13.1.1.3 255.255.255.0

router ospf 110

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 13.1.1.0 0.0.0.255 area 0

R4配置

interface Loopback0

 ip address 4.4.4.4 255.255.255.0

interface Serial0/0

 ip address 14.1.1.4 255.255.255.0

router eigrp 90

 network 4.4.4.0 0.0.0.255

 network 14.1.1.0 0.0.0.255

 no auto-summary

如何进行route-map解析

此时R3学到4外部路由,我们希望作如下修改。

222.222.222.0/24    修改为E1

2.2.2.0/24          修改Default Seed Metrics为10

22.22.22.0/24       deny掉,permit any

R1配置

ip prefix-list 222 seq 5 permit 222.222.222.0/24

access-list 2 permit 2.2.2.0 0.0.0.255

access-list 22 permit 22.22.22.0 0.0.0.255

route-map RM permit 10

 match ip address prefix-list 222

 set metric-type type-1

route-map RM permit 20

 match ip address 2

 set metric 10

route-map RM deny 30

 match ip address 22

route-map RM permit 40

router ospf 110

 redistribute rip subnets route-map RM

如何进行route-map解析

可以看到结果与我们的需求一致。

关于如何进行route-map解析就分享到这里啦,希望上述内容能够让大家有所提升。如果想要学习更多知识,请大家多多留意小编的更新。谢谢大家关注一下亿速云网站!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI