SwitchC XGE 0/0/2 VLANIF 40 9.1.2.1/24
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure OSPF on SwitchB and SwitchC.
2. Create an EBGP peer relationship on SwitchA and SwitchB.
3. Configure BGP to interact with OSPF on SwitchB and check the routes.
4. Configure BGP route aggregation on SwitchB to simplify the BGP routing table.
Data Preparation
To complete the configuration, you need the following data:
l The VLAN ID of each interface is shown in Figure 7-6.
l The IP address of each VLANIF interface is shown in Figure 7-6.
l The router ID of SwitchA is 1.1.1.1 and the number of the AS where it resides is 65008.
l The router IDs of SwitchB and SwitchC are 2.2.2.2 and 3.3.3.3, and the number of the AS
where they reside is 65009.
Configuration Procedure
1. Create a VLAN to which each interface belongs.
The configuration details are not mentioned here.
2. Assign an IP address to each VLANIF interface.
The configuration details are not mentioned here.
3. Configure OSPF.
# Configure SwitchB.
[SwitchB] ospf 1
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[SwitchB-ospf-1-area-0.0.0.0] quit
[SwitchB-ospf-1] quit
# Configure SwitchC.
[SwitchC] ospf 1
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] network 9.1.2.0 0.0.0.255
[SwitchC-ospf-1-area-0.0.0.0] quit
[SwitchC-ospf-1] quit
4. Create an EBGP peer relationship.
Configure SwitchA.
[SwitchA] bgp 65008
[SwitchA-bgp] router-id 1.1.1.1
[SwitchA-bgp] peer 3.1.1.1 as-number 65009
[SwitchA-bgp] ipv4-family unicast
[SwitchA-bgp-af-ipv4] network 8.1.1.0 255.255.255.0
[SwitchA-bgp-af-ipv4] quit
[SwitchA-bgp] quit
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.
456