Data Preparation
To complete the configuration, you need the following data:
l The ASs are AS 100 and AS 200.
l The router IDs of Switch A, Switch B, Switch C, and Switch D are 1.1.1.1, 2.2.2.2, 3.3.3.3,
and 4.4.4.4.
Procedure
Step 1 Add interfaces to VLANs.
<Quidway> system-view
[Quidway] sysname SwitchA
[SwitchA] vlan batch 10 20
[SwitchA] interface xgigabitethernet 0/0/1
[SwitchA-XGigabitEthernet0/0/1] port hybrid pvid vlan 10
[SwitchA-XGigabitEthernet0/0/1] port hybrid untagged vlan 10
[SwitchA-XGigabitEthernet0/0/1] quit
[SwitchA] interface xgigabitethernet 0/0/2
[SwitchA-XGigabitEthernet0/0/2] port hybrid pvid vlan 20
[SwitchA-XGigabitEthernet0/0/2] port hybrid untagged vlan 20
[SwitchA-XGigabitEthernet0/0/2] quit
The configurations of Switch B, Switch C, Switch D are similar to the configuration of Switch
A and are not mentioned here.
Step 2 Enable the IPv6 forwarding capability, and assign an IPv6 address for each interface. The
following is the configuration of Switch A. The configurations of other Switches are similar to
the configuration of Switch A and are not mentioned here.
<Quidway> system-view
[Switch A] ipv6
[Switch A] interface vlanif 10
[Switch A-Vlanif10] ipv6 enable
[Switch A-Vlanif10] ipv6 address 1::1/64
[Switch A] interface vlanif 20
[Switch A-Vlanif20] ipv6 enable
[Switch A-Vlanif20] ipv6 address 100::1/96
Step 3 Configure the basic BGP4+ functions.
# Configure Switch A.
[Switch A] bgp 100
[Switch-A-bgp] router-id 1.1.1.1
[Switch A-bgp] peer 100::2 as-number 200
[Switch A-bgp] ipv6-family unicast
[Switch A-bgp-af-ipv6] peer 100::2 enable
[Switch A-bgp-af-ipv6] network 1:: 64
[Switch A-bgp-af-ipv6] network 100:: 96
[Switch A-bgp-af-ipv6] quit
# Configure Switch B.
[Switch B] bgp 200
[Switch B-bgp] router-id 2.2.2.2
[Switch B-bgp] peer 100::1 as-number 100
[Switch B-bgp] peer 101::1 as-number 200
[Switch B-bgp] ipv6-family unicast
[Switch B-bgp-af-ipv6] peer 100::1 enable
[Switch B-bgp-af-ipv6] peer 101::1 enable
[Switch B-bgp-af-ipv6] network 100:: 96
[Switch B-bgp-af-ipv6] network 101:: 96
# Configure Switch C.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 8 BGP4+ Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
549