315
# 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
Connect Type: Indirect Running Up for: 00:00:05
Hold Time: 2243ms Auth mode: None
Detect Mode: Async Slot: 0
Protocol: BGP6
Diag Info: No Diagnostic
The output shows that a BFD session has been established between Router A and Router C.
# Display BGP peer information on Router C.