![Huawei S6700 Series Скачать руководство пользователя страница 468](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517468.webp)
l
Configuration file of SwitchD
#
sysname SwitchD
#
vlan batch 30 40
#
interface Vlanif30
ip address 9.1.1.2 255.255.255.0
#
interface Vlanif40
ip address 9.1.2.2 255.255.255.0
#
interface XGigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 30
#
interface XGigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 40
#
bgp 65009
router-id 4.4.4.4
peer 9.1.1.1 as-number 65009
peer 9.1.2.1 as-number 65009
#
ipv4-family unicast
undo synchronization
peer 9.1.1.1 enable
peer 9.1.2.1 enable
#
return
7.20.2 Example for Configuring AS-Path Filter
Networking Requirements
As shown in
, EBGP connections are set up between Switch A, Switch B, and Switch
C. Configure the AS-Path filter on Switch B. AS 20 thus does not advertises routes of AS 30 to
AS 10, or advertise routes of AS 10 to AS 30.
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.
449