H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 BGP Configuration
6-29
II. Network diagram
Switch A
AS 100
Vlan-int101
Switch C
AS 200
Switch B
Switch D
VLAN-int2
VLAN-int4
VLAN-int5
VLAN -int3
VLAN -int2
VLAN -int3
Device Interface IP interface AS
Switch A Vlan-int 101 1.1.1.1/8
Vlan-int 2 192.1.1.1/24
Vlan-int 3 193.1.1.1/24
100
Switch B Vlan-int 2 192.1.1.2/24
Vlan-int 4 194.1.1.2/24
Switch C Vlan-int 3 193.1.1.2/24
Vlan-int 5 195.1.1.2/24
Switch D Vlan-int 4 194.1.1.1/24
Vlan-int 5 195.1.1.1/24
200
Figure 6-7 Diagram for BGP routing
III. Configuration procedure
1) Configure Switch A.
[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 Switch A.
Create an access control list to permit routing information sourced from the network
1.0.0.0.
[SwitchA] acl number 2000