Verifying the configuration – H3C Technologies H3C S5560 Series Switches User Manual

Page 331

Advertising
background image

315

[SwitchA] acl ipv6 number 2000

[SwitchA-acl6-basic-2000] rule permit source 1200:: 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-apply_med_50-10] if-match ipv6 address acl 2000

[SwitchA-route-policy-apply_med_50-10] apply cost 50

[SwitchA-route-policy-apply_med_50-10] quit

[SwitchA] route-policy apply_med_100 permit node 10

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

[SwitchA-route-policy-apply_med_100-10] apply cost 100

[SwitchA-route-policy-apply_med_100-10] 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] address-family ipv6 unicast

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

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

[SwitchA-bgp-ipv6] quit

# Enable BFD for peer 3001::3.

[SwitchA-bgp] peer 3001::3 bfd

[SwitchA-bgp] quit

4.

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

<SwitchC> system-view

[SwitchC] bgp 200

[SwitchC-bgp] router-id 3.3.3.3

[SwitchC-bgp] peer 3000::1 as-number 200

[SwitchC-bgp] peer 2000::1 as-number 200

[SwitchC-bgp] address-family ipv6

[SwitchC-bgp-ipv6] peer 3000::1 enable

[SwitchC-bgp-ipv6] peer 2000::1 enable

[SwitchC-bgp-ipv6] quit

# Enable BFD for peer 3001::1.

[SwitchC-bgp] peer 3000::1 bfd

[SwitchC-bgp] quit

[SwitchC] quit

Verifying the configuration

# Display detailed BFD session information on Switch C.

<SwitchC> 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

Advertising
This manual is related to the following products: