# Enable RIPng.
[SwitchB] ripng
# Display RIPng routing table information.
[SwitchB-ripng-1] display ripng 1 route
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer FE80::7D58:0:CA03:1
Dest 10::/32,
via FE80::7D58:0:CA03:1, cost
Dest 20::/32,
via FE80::7D58:0:CA03:1, cost
Dest 40::/32,
via FE80::7D58:0:CA03:1, cost
Applying a routing policy to filter received BGP routes
Network requirements
As shown in
switches.
Configure a routing policy on Switch D to reject routes from AS 200.
Figure 122 Network diagram
Configuration procedure
Configure IP addresses for the interfaces. (Details not shown.)
1.
Configure BGP:
2.
# Configure Switch A.
<SwitchA> system-view
[SwitchA] bgp 100
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 1.1.1.2 as-number 300
Figure
122, all the switches run BGP. Switch C establishes EBGP connections with other
on Vlan-interface 100
1, tag 0, A, 18 Sec
1, tag 0, A, 8 Sec
1, tag 0, A, 3 Sec
372