Configuration procedure – H3C Technologies H3C S12500 Series Switches User Manual

Page 405

Advertising
background image

389

Vlan-int200

2000::1/64

Vlan-int201 2001::3/64

Switch B

Vlan-int100

3000::2/64

Switch D

Vlan-int200

2000::2/64

Vlan-int101

3001::2/64

Vlan-int201 2001::2/64

Configuration procedure

1.

Configure IP addresses for interfaces. (Details not shown.)

2.

Configure OSPFv3 to make sure that Switch A and Switch C are reachable to each other. (Details
not shown.)

3.

Configure IPv6 BGP on Switch A:
# Establish two IBGP connections between Switch A and Switch C.

<SwitchA> system-view

[SwitchA] bgp 200

[SwitchA-bgp] ipv6-family

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

[SwitchA-bgp-af-ipv6] peer 3001::3 as-number 200

[SwitchA-bgp-af-ipv6] peer 2001::3 as-number 200

[SwitchA-bgp-af-ipv6] quit

# When the two links between Switch A and Switch C are both up, Switch C adopts the link Switch

A<—>Switch B<—>Switch C to exchange packets with network 1200::0/64. (Set a higher MED
value for route 1200::0/64 sent to peer 2001::3 on Switch A.)

{

Create IPv6 ACL 2000 to permit 1200::0/64 to pass.

[SwitchA] acl ipv6 number 2000

[SwitchA-acl6-basic-2000] rule permit source 1200::0 64

[SwitchA-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.

[SwitchA] route-policy apply_med_50 permit node 10

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

[SwitchA-route-policy] apply cost 50

[SwitchA-route-policy] quit

[SwitchA] route-policy apply_med_100 permit node 10

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

[SwitchA-route-policy] apply cost 100

[SwitchA-route-policy] quit

{

Apply routing policy apply_med_50 to routes outgoing to peer 3001::3, and apply routing

policy apply_med_100 to routes outgoing to peer 2001::3.

[SwitchA] bgp 200

[SwitchA-bgp] ipv6-family

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

[SwitchA-bgp-af-ipv6] peer 3001::3 route-policy apply_med_50 export

[SwitchA-bgp-af-ipv6] peer 2001::3 route-policy apply_med_100 export

# Configure BFD over the link to peer 3001::3 so that when the link Switch A<—>Switch

B<—>Switch C fails, BFD can quickly detect the failure and notify it to IPv6 BGP, and then the link

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

[SwitchA-bgp-af-ipv6] peer 3001::3 bfd

[SwitchA-bgp-af-ipv6] quit

Advertising