l
The router IDs of SwitchB, SwitchC, and SwitchD are 2.2.2.2, 3.3.3.3. and 4.4.4.4, 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.
Create IBGP peer relationships.
# Configure SwitchB.
[SwitchB]
bgp 65009
[SwitchB-bgp]
router-id 2.2.2.2
[SwitchB-bgp]
peer 9.1.1.2 as-number 65009
[SwitchB-bgp]
peer 9.1.3.2 as-number 65009
# Configure SwitchC.
[SwitchC]
bgp 65009
[SwitchC-bgp]
router-id 3.3.3.3
[SwitchC-bgp]
peer 9.1.3.1 as-number 65009
[SwitchC-bgp]
peer 9.1.2.2 as-number 65009
[SwitchC-bgp]
quit
Configure SwitchD
[SwitchD]
bgp 65009
[SwitchD-bgp]
router-id 4.4.4.4
[SwitchD-bgp]
peer 9.1.1.1 as-number 65009
[SwitchD-bgp]
peer 9.1.2.1 as-number 65009
[SwitchD-bgp]
quit
4.
Create an EBGP peer relationship.
# Configure SwitchA
[SwitchA]
bgp 65008
[SwitchA-bgp]
router-id 1.1.1.1
[SwitchA-bgp]
peer 200.1.1.1 as-number 65009
# Configure SwitchB.
[SwitchB]
bgp 65009
[SwitchB-bgp]
peer 200.1.1.2 as-number 65008
[SwitchB-bgp]
quit
# Check the status of BGP connections.
[SwitchB]
display bgp peer
BGP local router ID : 2.2.2.2
Local AS number : 65009
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
9.1.1.2 4 65009 49 62 0 00:44:58 Established 0
9.1.3.2 4 65009 56 56 0 00:40:54 Established 0
200.1.1.2 4 65008 49 65 0 00:44:03 Established 1
You can view that the BGP connections between SwitchB and all the other switches are
set up.
5.
Configure SwitchA to advertise the route 8.0.0.0/8.
Configure SwitchA to advertise routes.
[SwitchA]
bgp 65008
[SwitchA-bgp]
ipv4-family unicast
[SwitchA-bgp-af-ipv4]
network 8.0.0.0 255.0.0.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.
445