[SwitchA] vlan batch 10 30 100
[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 30
[SwitchA-XGigabitEthernet0/0/2] port hybrid untagged vlan 30
[SwitchA-XGigabitEthernet0/0/2] quit
[SwitchA] interface xgigabitethernet 0/0/3
[SwitchA-XGigabitEthernet0/0/3] port hybrid pvid vlan 100
[SwitchA-XGigabitEthernet0/0/3] port hybrid untagged vlan 100
[SwitchA-XGigabitEthernet0/0/3] quit
The configurations of Switch B, Switch C, Switch D, Switch E, Switch F, Switch G, and Switch
H are the same as the configuration of Switch A, and are not mentioned here.
Step 2 Assign an IP address to each VLANIF interface.
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] ip address 10.1.1.2 24
[SwitchA-Vlanif10] quit
[SwitchA] interface vlanif 30
[SwitchA-Vlanif30] ip address 10.1.3.2 24
[SwitchA-Vlanif30] quit
[SwitchA] interface vlanif 100
[SwitchA-Vlanif100] ip address 9.1.1.1 24
[SwitchA-Vlanif100] quit
Step 3 Establish IBGP connections between the clients and the RR, and between the non-clients and
the RR. The configuration details are not mentioned here.
Step 4 Configure Switch A to advertise the local network route 9.1.1.0/24. The configuration details
are not mentioned here.
Step 5 Configure the RR.
# Configure Switch B.
[SwitchB] bgp 65010
[SwitchB-bgp] router-id 2.2.2.2
[SwitchB-bgp] group in_rr internal
[SwitchB-bgp] peer 10.1.4.2 group in_rr
[SwitchB-bgp] peer 10.1.5.2 group in_rr
[SwitchB-bgp] ipv4-family unicast
[SwitchB-bgp-af-ipv4] peer in_rr reflect-client
[SwitchB-bgp-af-ipv4] undo reflect between-clients
[SwitchB-bgp-af-ipv4] reflector cluster-id 1
[SwitchB-bgp-af-ipv4] quit
[SwitchB-bgp] quit
# Configure Switch C.
[SwitchC] bgp 65010
[SwitchC-bgp] router-id 3.3.3.3
[SwitchC-bgp] group in_rr internal
[SwitchC-bgp] peer 10.1.7.2 group in_rr
[SwitchC-bgp] peer 10.1.8.2 group in_rr
[SwitchC-bgp] peer 10.1.9.2 group in_rr
[SwitchC-bgp] ipv4-family unicast
[SwitchC-bgp-af-ipv4] peer in_rr reflect-client
[SwitchC-bgp-af-ipv4] reflector cluster-id 2
[SwitchC-bgp-af-ipv4] quit
[SwitchC-bgp] quit
# Check the routing table of Switch D.
[SwitchD] display bgp routing-table 9.1.1.0
S6700 Series Ethernet Switches
Configuration Guide - IP Routing 7 BGP Configuration
Issue 01 (2012-03-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
470