![Huawei S6700 Series Configuration Manual Download Page 185](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517185.webp)
5.
Configure the OSPF process and configure BGP to import directly connected routes on
Switch D.
6.
Configure BGP on Switch E.
Data Preparation
To complete the configuration, you need the following data:
l
The router ID of Switch A is 1.1.1.1, the AS number is 10, the OSPF process number is 1,
and the network segments in Area 0 are 10.1.1.0/30 and 10.1.2.0/30.
l
The router ID of Switch B is 2.2.2.2, the AS number is 10, the OSPF process number is 1,
and the network segments in Area 0 are 10.1.1.0/30 and 10.1.3.0/30.
l
The router ID of Switch C is 3.3.3.3, the AS number is 10, the OSPF process number is 1,
and the network segments in Area 0 are 10.1.2.0/30 and 10.1.4.0/30.
l
The router ID of Switch D is 4.4.4.4, the AS number is 10, the OSPF process number is 1,
and the network segments in Area 0 are 10.1.3.0/30 and 10.1.4.0/30.
l
The router ID of Switch E is 5.5.5.5, and the AS number is 20.
Procedure
Step 1
Configure VLANs that interfaces belong to.
<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 SwitchB, SwitchC, SwitchD, SwitchE and SwitchF are similar to the
configuration of SwitchA, 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.1 30
[SwitchA-Vlanif10]
quit
[SwitchA]
interface vlanif 20
[SwitchA-Vlanif20]
ip address 10.1.2.1 30
[SwitchA-Vlanif20]
quit
The configurations of SwitchB, SwitchC, SwitchD, SwitchE and SwitchF are similar to the
configuration of SwitchA, and are not mentioned here.
Step 3
Configure basic OSPF functions.
The configuration details are not mentioned here.
Step 4
Configure an IBGP full connection.
# Configure Switch A.
<SwitchA>
system-view
[SwitchA]
interface LoopBack 0
[SwitchA-LoopBack0]
ip address 1.1.1.1 32
[SwitchA-LoopBack0]
quit
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
166