289
[RouterA] route-policy apply_med_50 permit node 10
[RouterA-route-policy-apply_med_50-10] if-match ipv6 address acl 2000
[RouterA-route-policy-apply_med_50-10] apply cost 50
[RouterA-route-policy-apply_med_50-10] quit
[RouterA] route-policy apply_med_100 permit node 10
[RouterA-route-policy-apply_med_100-10] if-match ipv6 address acl 2000
[RouterA-route-policy-apply_med_100-10] apply cost 100
[RouterA-route-policy-apply_med_100-10] quit
# Apply routing policy
apply_med_50
to routes outgoing to peer 3002::2, and apply routing
policy
apply_med_100
to routes outgoing to peer 2002::2.
[RouterA] bgp 200
[RouterA-bgp] address-family ipv6 unicast
[RouterA-bgp-ipv6] peer 3002::2 route-policy apply_med_50 export
[RouterA-bgp-ipv6] peer 2002::2 route-policy apply_med_100 export
[RouterA-bgp-ipv6] quit
# Enable BFD for peer 3002::2.
[RouterA-bgp] peer 3002::2 bfd
[RouterA-bgp] quit
4.
Configure IPv6 BGP on Router C:
# Establish two IBGP connections to Router A.
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] router-id 3.3.3.3
[RouterC-bgp] peer 3001::1 as-number 200
[RouterC-bgp] peer 2001::1 as-number 200
[RouterC-bgp] address-family ipv6
[RouterC-bgp-ipv6] peer 3001::1 enable
[RouterC-bgp-ipv6] peer 2001::1 enable
[RouterC-bgp-ipv6] quit
# Enable BFD for peer 3001::1.
[RouterC-bgp] peer 3001::1 bfd
[RouterC-bgp] quit
[RouterC] quit
Verifying the configuration
# Display detailed BFD session information on Router C.
<RouterC> display bfd session verbose
Total Session Num: 1 Up Session Num: 1 Init Mode: Active
IPv6 Session Working Under Ctrl Mode:
Local Discr: 513 Remote Discr: 513
Source IP: 3002::2
Destination IP: 3001::1
Session State: Up Interface: N/A
Min Tx Inter: 500ms Act Tx Inter: 500ms
Min Rx Inter: 500ms Detect Inter: 2500ms
Rx Count: 13 Tx Count: 14