要求:将R1上EIGRP 10 重发布到R2上EIGRP 10 ,将R1上EIGRP 20 重发布到R2上EIGRP 20
route-map tag
原创
©著作权归作者所有:来自51CTO博客作者hc5864006的原创作品,请联系作者获取转载授权,否则将追究法律责任
R1
en
conf t
hos r1
int e0/0
ip add 192.168.12.1 255.255.255.0
no shu
exi
int lo 0
ip add 10.1.1.1 255.255.255.0
exi
int lo 1
ip add 20.1.1.1 255.255.255.0
exi
router eigrp 10
no au
net 10.1.1.0
exi
router eigrp 20
no au
net 20.1.1.0
exi
router ospf 1
net 192.168.12.0 0.0.0.255 ar 0
exi
route-map 111 permit 10
set tag 10
exi
route-map 222 permit 20
set tag 20
exi
router ospf 1
redistribute eigrp 10 route-map 111 subnets
redistribute eigrp 20 route-map 222 subnets
R2
en
conf t
hos r2
int e0/0
ip add 192.168.12.2 255.255.255.0
no shu
exi
int lo 0
ip add 10.2.1.1 255.255.255.0
exi
int lo 1
ip add 20.2.1.1 255.255.255.0
exi
router eigrp 10
no au
net 10.2.1.0
exi
router eigrp 20
no au
net 20.2.1.0
exi
router ospf 1
net 192.168.12.0 0.0.0.255 ar 0
exi
route-map 111 permit 10
match tag 10
exi
route-map 222 permit 20
match tag 20
exi
router eigrp 10
redistribute ospf 1 metric 10000 1000 255 1 1500 route-map 111
exi
router eigrp 20
redistribute ospf 1 metric 10000 1000 255 1 1500 route-map 222
exi
r2#sho ip eigrp topology
IP-EIGRP Topology Table for AS(10)/ID(20.2.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 10.2.1.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 10.1.1.0/24, 1 successors, FD is 512000, tag is 10
via Redistributed (512000/0)
IP-EIGRP Topology Table for AS(20)/ID(20.2.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 20.1.1.0/24, 1 successors, FD is 512000, tag is 20
via Redistributed (512000/0)
P 20.2.1.0/24, 1 successors, FD is 128256
via Connected, Loopback1
下一篇:Offset-list

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
cisco route-map
实验拓扑图
cisco 职场 休闲 -
Route-map 初解
Route-map 结合路由重分布在两种协议之间做重分布的时候,有的时候我们需要把一些
源地址 可执行 访问控制列表 -
Route-Map 的使用
Route-Map 的使用
route-map