![Huawei S6700 Series Скачать руководство пользователя страница 469](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517469.webp)
Figure 7-5
Networking diagram for configuring the AS-Path filter
XGE0/0/2
200.1.2.1/24
EBGP
AS 10
SwitchA
XGE0/0/2
200.1.2.2/24
AS 20
SwitchB
XGE0/0/1
200.1.3.1/24
EBGP
XGE0/0/2
200.1.3.2/24
SwitchC
AS 30
XGE0/0/1
200.1.4.1/24
EBGP
XGE0/0/1
200.1.4.2/24
Switch
Interface
VLANIF interface
IP address
SwitchA
XGigabitEthernet0/0/1
VLANIF 10
200.1.4.1/24
SwitchA
XGigabitEthernet0/0/2
VLANIF 20
200.1.2.1/24
SwitchB
XGigabitEthernet0/0/1
VLANIF 30
200.1.3.1/24
SwitchB
XGigabitEthernet0/0/2
VLANIF 20
200.1.2.2/24
SwitchC
XGigabitEthernet0/0/2
VLANIF 30
200.1.3.2/24
SwitchC
XGigabitEthernet0/0/1
VLANIF 10
200.1.4.2/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure EBGP connections between Switch A and Switch B, Switch B and Switch C,
and Switch C and Switch A, and import direct routes.
2.
Configure the AS-Path on Switch B, and apply the filtering rule.
Data Preparation
To complete the configuration, you need the following data:
l
The router ID of Switch A is1.1.1.1, and the number of its AS is 10.
l
The router ID of Switch B is 2.2.2.2, and the number of its AS is 20.
l
The router ID of Switch C is 3.3.3.3, and the number of its AS is 30.
Procedure
Step 1
Configure VLANs that interfaces belong to.
<Quidway>
system-view
[Quidway]
sysname SwitchA
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.
450