我不是 100% 确定标签是否包含在 BGP 更新中,但这是我很快整理的内容:

路由器“静态”:
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
interface Ethernet0/1
ip address 172.16.0.1 255.255.255.0
half-duplex
ip route 0.0.0.0 0.0.0.0 172.16.0.2
路由器 R1:
interface Ethernet0/0
ip address 10.0.0.1 255.255.255.252
half-duplex
interface Ethernet0/1
ip address 172.16.0.2 255.255.255.0
half-duplex
ip route 172.16.1.0 255.255.255.0 172.16.0.1 tag 20
ip route 172.16.2.0 255.255.255.0 172.16.0.1 tag 20
router eigrp 100
redistribute static route-map MyRouteMap
network 10.0.0.0 0.0.0.3
no auto-summary
route-map MyRouteMap permit 10
match tag 20
路由器 R2:
interface Ethernet0/0
ip address 10.0.0.2 255.255.255.252
half-duplex
interface Ethernet0/1
ip address 10.0.0.5 255.255.255.252
half-duplex
router eigrp 100
network 10.0.0.0 0.0.0.3
no auto-summary
router bgp 65000
no synchronization
bgp log-neighbor-changes
redistribute eigrp 100 route-map MyRouteMap
neighbor 10.0.0.6 remote-as 65000
neighbor 10.0.0.6 next-hop-self
no auto-summary
route-map MyRouteMap permit 10
match tag 20
R2#show ip route 172.16.1.0
Routing entry for 172.16.1.0/24
Known via "eigrp 100", distance 170, metric 307200
Tag 20, type external
路由器 R3:
interface Ethernet0/1
ip address 10.0.0.6 255.255.255.252
half-duplex
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.0.0.5 remote-as 65000
no auto-summary
R3#show ip bgp 172.16.1.0
BGP routing table entry for 172.16.1.0/24, version 3
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
10.0.0.5 from 10.0.0.5 (10.0.0.2)
Origin incomplete, metric 307200, localpref 100, valid, internal, best
我希望这就是你所要求的。