354
Figure 119
Network diagram
Device Interface
IP
address
Device
Interface IP
address
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
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] 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.