route-map tag

 要求:将R1上EIGRP 10 重发布到R2上EIGRP 10 ,将R1上EIGRP 20 重发布到R2上EIGRP 20

route-map tag_第1张图片

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

你可能感兴趣的:(职场,tag,休闲,route-map)