314
Configure BFD over the path. Then if the path fails, BFD can quickly detect the failure and notify it to IPv6
BGP. Then the path Router A<—>Router D<—>Router C takes effect immediately.
Figure 75
Network diagram
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure OSPFv3 so that Router A and Router C can reach each other. (Details not shown.)
3.
Configure IPv6 BGP on Router A:
# Establish two IBGP connections to Router C.
<RouterA> system-view
[RouterA] bgp 200
[RouterA-bgp] router-id 1.1.1.1
[RouterA-bgp] peer 2002::2 as-number 200
[RouterA-bgp] peer 3002::2 as-number 200
[RouterA-bgp] address-family ipv6
[RouterA-bgp-ipv6] peer 2002::2 enable
[RouterA-bgp-ipv6] peer 3002::2 enable
[RouterA-bgp-ipv6] quit
# Create IPv6 ACL 2000 to permit 1200::0/64 to pass.
[RouterA] acl ipv6 number 2000
[RouterA-acl6-basic-2000] rule permit source 1200:: 64
[RouterA-acl6-basic-2000] quit
# Create two routing policies to set the MED for route 1200::0/64. The policy
apply_med_50
sets
the MED to 50, and the policy
apply_med_100
sets the MED to 100.
[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
GE1/0
2001::1/64
GE2/0
2002::2/64
Router A
Router C
AS 200
Router D
GE1/0
2001::2/64
GE2/0
2002::1/64
GE2/0
3001::1/64
GE2/0
3001::2/64
GE1/0
3002::1/64
GE1/0
3002::2/64
Router B
AS 100
AS 300
1200::0/64