![Huawei S6700 Series Скачать руководство пользователя страница 483](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517483.webp)
7.20.5 Example for Configuring the BGP Community Attribute
Networking Requirements
As shown in
, Switch B creates EBGP connections with Switch A and Switch C. You
can configure the No_Export community attribute on Switch A. Thus, the routes advertised from
AS 10 to AS 20 are not advertised to other ASs.
Figure 7-8
Networking diagram for configuring the BGP community
XGE0/0/1
9.1.1.1/24
XGE0/0/2
200.1.2.1/24
SwitchA
AS 10
XGE0/0/2
200.1.2.2/24
SwitchB
AS 20
XGE0/0/3
200.1.3.2/24
SwitchC
AS 30
XGE0/0/3
200.1.3.1/24
EBGP
EBGP
Switch
Interface
VLANIF interface
IP address
SwitchA
XGigabitEthernet0/0/1
VLANIF 10
9.1.1.1/24
SwitchA
XGigabitEthernet0/0/2
VLANIF 20
200.1.2.1/24
SwitchB
XGigabitEthernet0/0/2
VLANIF 20
200.1.2.2/24
SwitchB
XGigabitEthernet0/0/3
VLANIF 30
200.1.3.1/24
SwitchC
XGigabitEthernet0/0/3
VLANIF 30
200.1.3.2/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure the EBGP connections between Switch A and Switch B, and between Switch B
and Switch C.
2.
Configure the routing policy on Switch A, and advertise No_Export community attribute.
Data Preparation
To complete the configuration, you need the following data:
l
The router ID of Switch A is 1.1.1.1 and its AS number is 10.
l
The router ID of Switch B is 2.2.2.2 and its AS number is 20.
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.
464