全网可达
要求1和要求2
分别用抑制列表和route-map来解决
抑制列表
[R2]ip ip-prefix xx permit 192.168.1.0 24
[R2]route-policy yy permit node 10
[R2-route-policy]if-match ip-prefix xx
[R2]bgp 100
[R2-bgp]aggregate 192.168.0.0 22 detail-suppressed suppress-policy yy
route-map
[R2]ip ip-prefix vv permit 192.168.1.0 24
[R2]route-policy ii deny node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix vv
[R2-route-policy]quit
[R2]route-policy ii permit node 20
[R2]bgp 100
[R2-bgp]peer 23.1.1.2 route-policy ii export