beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 397

background image

381

[RouterA-acl6-basic-2000] quit

{

Create two route policies, apply_med_50 and apply_med_100. Policy apply_med_50 sets the

MED for route 1200::0/64 to 50. Policy apply_med_100 sets that to 100.

[RouterA] route-policy apply_med_50 permit node 10

[RouterA-route-policy] if-match ipv6 address acl 2000

[RouterA-route-policy] apply cost 50

[RouterA-route-policy] quit

[RouterA] route-policy apply_med_100 permit node 10

[RouterA-route-policy] if-match ipv6 address acl 2000

[RouterA-route-policy] apply cost 100

[RouterA-route-policy] 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] ipv6-family

[RouterA-bgp-af-ipv6] network 1200:: 64

[RouterA-bgp-af-ipv6] peer 3002::2 route-policy apply_med_50 export

[RouterA-bgp-af-ipv6] peer 2002::2 route-policy apply_med_100 export

# Configure BFD over the link to peer 3002::2 so that when the link Router A<—>Router
B<—>Router C fails, BFD can quickly detect the failure and notify it to IPv6 BGP, and then the link

Router A<—>Router D<—>Router C takes effect immediately.

[RouterA-bgp-af-ipv6] peer 3002::2 bfd

[RouterA-bgp-af-ipv6] quit

[RouterA-bgp] quit

4.

Configure IPv6 BGP on Router C:

system-view

[RouterC] bgp 200

[RouterC-bgp] ipv6-family

[RouterC-bgp-af-ipv6] peer 3001::1 as-number 200

[RouterC-bgp-af-ipv6] peer 3001::1 bfd

[RouterC-bgp-af-ipv6] peer 2001::1 as-number 200

[RouterC-bgp-af-ipv6] quit

[RouterC-bgp] quit

5.

Configure BFD parameters (you can use default BFD parameters instead):
# Configure Router A.

[RouterA] bfd session init-mode active

[RouterA] interface GigabitEthernet 3/1/2

{

Configure the minimum interval for transmitting BFD control packets as 500 milliseconds.

[RouterA-GigabitEthernet3/1/2] bfd min-transmit-interval 500

{

Configure the minimum interval for receiving BFD control packets as 500 milliseconds.

[RouterA-GigabitEthernet3/1/2] bfd min-receive-interval 500

{

Configure the detect multiplier as 7.

[RouterA-GigabitEthernet3/1/2] bfd detect-multiplier 7

# Configure Router C.

[RouterC] bfd session init-mode active

[RouterC] interface GigabitEthernet 3/1/1