R2(config)#route-map ospf 10 //定义名字ospf的route-map,序号10 R2(config-route-map)#match ip add 3 //匹配地址3(即ACL3) R2(config-route-map)#set metric 2 //执行动作,metric为2 R2(config-route-map)#exit R2(config)#route-map ospf 20 R2(config-route-map)#ma ip add 4 R2(config-r...
1.路由重发布时关联route-map 在上图中,我们将OSPF路由注入到RIP,而传统的做法只能对所有注入进来的路由统一设置metric,但有了route-map,在配置重发布命令时,可关联一个已经定义好的route-map,在route-map中,通过创建多个序列号语句来对不同的路由设置不同的属性或动作。 如果希望OSPF路由注入到RIP后,192.168.1.0...
4)Route-Map 其中的顺序序列号将用来指定route map 的顺序,可以增加或者更改某条特定的语句 四、Route Map语句设计 1)route-map my-map permit 10 { match statements}{set statements} 2) route-map my-map deny 20 { match statements}{set statements} 3)route-map my-map permit 30 { match statements...
Route-map用在重分布中,Route-Map的逻辑语句:利用 ACL 抓取路由条目,Access-list 1 permit 12.1.1.1 0.0.0.0(路由条目)配置 route-maproute-map test permit/deny 10 ( 创建route-map 名字为test 允许或拒绝序号为10match x1(ip address access-list 1)match x2,x3set Yroute-map test permit/deny 20match...
route-map cisco permit 10match ip address 2set metric 1!route-map cisco permit 20match ip address 1set metric 2 5 R4:!interface Serial0/0ip address 4.4.4.1 255.255.255.0!interface Serial0/1ip address 3.3.3.2 255.255.255.0!router ospf 1log-adjacency-changesnetwork 3.3.3.0 0...
1.在重发布的过程中做route-map,重发布过程中可以改变路由的属性;(次要作用) 例如希望在路由被注入RIP后,192.168.1.0路由的metric为1,2.0的metric为2如此这般呢?传统的重发布是没办法做到的。 那么就可以使用route-map这个工具,也就是说,我们可以在执行重发布的时候,关联一个route-map,来实现刚才的这个功能。
R2(config)#route-map ospf 10 //定义名字ospf的route-map,序号10 R2(config-route-map)#match ip add 3 //匹配地址3(即ACL3) R2(config-route-map)#set metric 2 //执行动作,metric为2 R2(config-route-map)#exit R2(config)#route-map ospf 20 ...
R3(config-route-map)#set metric-type type-1 R3(config)#router ospf 110 R3(config-router)#redistribute eigrp 90 subnets route-map liuqing 此时,查看R1的路由表 R1#show ip route ospf 34.0.0.0/24 is subnetted, 1 subnets O E1 34.1.1.0 [110/148] via 12.1.1.2, 00:02:42, Serial0/0 ...
route-map ospf-to-ospf permit 10 set metric +2 ! This configuration appears to redistribute all routes from one OSPF process to another, while it increases the metric of all routes by two. Yet, it actually sets the metric of all routes to be the same, equal to 2. This is unexpected ...
route-map test permit 10 match tag 100 set metric 100 Redistribution among other protocols can be configured similarly. Table Map A table map is a unique feature of NX-OS that allows the network administrator to filter routes or selectively modify the distance of the routes before the routes ...