Operation Manual – Routing Protocol 
Quidway S5600 Series Ethernet Switches-Release 1510  Chapter 5  BGP Configuration
 
Huawei Technologies Proprietary 
5-42 
II. Network diagram 
VLAN 4
194.1.1.2/24
VLAN 2
192.1.1.1/24
VLAN 3
193.1.1.1/24
VLAN 3
193.1.1.2/24
VLAN 5
195.1.1.2/24
VLAN 2
192.1.1.2/24
2.2.2.2
4.4.4.4
3.3.3.3
1.1.1.1
AS100
AS200
VLAN 4
194.1.1.1/24
VLAN 5
195.1.1.1/24
IBGP
IBGP
EBGP
EBGP
To network
1.0.0.0
To network
2.0.0.0
To network
4.0.0.0
To network
3.0.0.0
Switch A
Switch B
Switch C
Switch D
 
Figure 5-15 Diagram for BGP routing 
III. Configuration procedure 
(1) 
Configure SwitchA. 
[SwitchA] interface Vlan-interface 2 
[SwitchA-Vlan-interface2] ip address 192.1.1.1 255.255.255.0 
[SwitchA] interface Vlan-interface 3 
[SwitchA-Vlan-interface3] ip address 193.1.1.1 255.255.255.0 
# Enable BGP 
[SwitchA] bgp 100 
# Specify the destination network for BGP routes. 
[SwitchA-bgp] network 1.0.0.0 
# Configure BGP peers. 
[SwitchA-bgp] group ex192 external 
[SwitchA-bgp] peer 192.1.1.2 group ex192 as-number 200 
[SwitchA-bgp] group ex193 external 
[SwitchA-bgp] peer 193.1.1.2 group ex193 as-number 200 
[SwitchA-bgp] quit 
# Configure the MED attribute of SwitchA. 
Create an access control list to permit routing information sourced from the network 
1.0.0.0.  
[SwitchA] acl number 2000 
[SwitchA-acl-basic-2000] rule permit source 1.0.0.0 0.255.255.255 
[SwitchA-acl-basic-2000] rule deny source any