您好,欢迎访问一九零五行业门户网

如何进行route-map解析

1、route-map解析
2、实验拓扑
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
此时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解析的详细内容。
其它类似信息

推荐信息