我有一个华为 6851-48s6q,我有几个 vlanif 接口和 2 个连接到此交换机的 ip 传输,我在这些 vlanif 上设置了一些公共 ip,例如 213.xx1/29 和 213.xy33/29,这是我的bgp配置
route-policy DT-Blackhole permit node 10
apply local-preference 450
apply community 12345:666
apply preference 255
route-policy IPTRANSIT-OUT permit node 10
if-match community-filter Blackhole
apply community 98765:666
ip community-filter basic Blackhole index 10 permit 12345:666
bgp 12345
ipv4-family unicast
preference 120 110 255
network 213.x.x.1 255.255.255.255 route-policy DT-Blackhole
当我执行 display bgp routing 213.xx1/32 我可以看到,这是输出:
display bgp routing-table 213.x.x.1
BGP local router ID : 172.x.x.14
Local AS number : 12345
Paths: 2 available, 1 best, 1 select, 0 best-external, 0 add-path
BGP routing table entry information of 213.x.x.1/32:
Network route.
From: 0.0.0.0 (0.0.0.0)
Route Duration: 0d00h18m10s
Direct Out-interface: 40GE1/0/1
Original nexthop: 127.0.0.1
Qos information : 0x0
Community: <12345:666>
AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 0
Not advertised to any peer yet
这是接口vlan配置:
interface Vlanif684
ip address 213.x.x.1/29 255.255.255.248
我无法配置为什么 213.xx1/32 没有向我的 ip 传输通知,我多次检查了我的路由策略,其他前缀工作正常,只是分配给 vlanif 的 ip 没有被宣布,