H3C Technologies H3C S12500-X Series Switches User Manual
Page 296
282
Switch A
Vlan-int100
3000::1/64
Switch C
Vlan-int101 3001::3/64
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
642B
Configuration procedure
1.
Configure IPv6 addresses for interfaces. (Details not shown.)
2.
Configure OSPFv3 so that Switch A and Switch C can reach each other. (Details not shown.)
3.
Configure IPv6 BGP on Switch A:
# Establish two IBGP connections to Switch C.
[SwitchA] bgp 200
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 3001::3 as-number 200
[SwitchA-bgp] peer 2001::3 as-number 200
[SwitchA-bgp] address-family ipv6
[SwitchA-bgp-ipv6] peer 3001::3 enable
[SwitchA-bgp-ipv6] peer 2001::3 enable
[SwitchA-bgp-ipv6] quit
# Create IPv6 ACL 2000 to permit 1200::0/64 to pass.
[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.