299
[RouterA] route-policy apply_med_50 permit node 10
[RouterA-route-policy-apply_med_50-10] if-match ip 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 ip 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 3.0.2.2, and apply routing
policy
apply_med_100
to routes outgoing to peer 2.0.2.2.
[RouterA] bgp 200
[RouterA-bgp] address-family ipv4 unicast
[RouterA-bgp-ipv4] peer 3.0.2.2 route-policy apply_med_50 export
[RouterA-bgp-ipv4] peer 2.0.2.2 route-policy apply_med_100 export
[RouterA-bgp-ipv4] quit
# Enable BFD for peer 3.0.2.2.
[RouterA-bgp] peer 3.0.2.2 bfd
[RouterA-bgp] quit
4.
Configure BGP on Router C:
# Establish two IBGP connections to Router A.
<RouterC> system-view
[RouterC] bgp 200
[RouterC-bgp] peer 3.0.1.1 as-number 200
[RouterC-bgp] peer 2.0.1.1 as-number 200
[RouterC-bgp] address-family ipv4 unicast
[RouterC-bgp-ipv4] peer 3.0.1.1 enable
[RouterC-bgp-ipv4] peer 2.0.1.1 enable
[RouterA-bgp-ipv4] quit
[RouterC-bgp] quit
# Enable BFD for peer 3.0.1.1.
[RouterC-bgp] peer 3.0.1.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
IPv4 Session Working Under Ctrl Mode:
Local Discr: 513 Remote Discr: 513
Source IP: 3.0.2.2 Destination IP: 3.0.1.1
Session State: Up Interface: N/A
Min Tx Inter: 500ms Act Tx Inter: 500ms
Min Rx Inter: 500ms Detect Inter: 2500ms
Rx Count: 135 Tx Count: 135