Huawei S6700 Series Configuration Manual page 473

Ip routing
Hide thumbs Also See for S6700 Series:
Table of Contents

Advertisement

S6700 Series Ethernet Switches
Configuration Guide - IP Routing
l
l
Issue 01 (2012-03-15)
ip address 200.1.2.1 255.255.255.0
#
interface Vlanif10
ip address 200.1.4.1 255.255.255.0
#
interface Vlanif20
ip address 200.1.2.1 255.255.255.0
#
interface XGigabitEthernet0/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
interface XGigabitEthernet0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20
#
bgp 10
router-id 1.1.1.1
peer 200.1.4.2 as-number 30
peer 200.1.2.2 as-number 20
#
ipv4-family unicast
undo synchronization
import-route direct
peer 200.1.4.2 enable
peer 200.1.2.2 enable
#
return
Configuration file of Switch B
#
sysname SwitchB
#
vlan batch 20 30
#
interface Vlanif30
ip address 200.1.3.1 255.255.255.0
#
interface Vlanif20
ip address 200.1.2.2 255.255.255.0
#
interface XGigabitEthernet0/0/1
port hybrid pvid vlan 30
port hybrid untagged vlan 30
#
interface XGigabitEthernet0/0/2
port hybrid pvid vlan 20
port hybrid untagged vlan 20
#
bgp 20
router-id 2.2.2.2
peer 200.1.2.1 as-number 10
peer 200.1.3.2 as-number 30
#
ipv4-family unicast
undo synchronization
import-route direct
peer 200.1.2.1 enable
peer 200.1.2.1 as-path-filter 1 export
peer 200.1.3.2 enable
peer 200.1.3.2 as-path-filter 2 export
#
ip as-path-filter 1 deny _30_
ip as-path-filter 1 permit .*
ip as-path-filter 2 deny _10_
ip as-path-filter 2 permit .*
#
Return
Configuration file of Switch C
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
7 BGP Configuration
454

Advertisement

Table of Contents
loading

Table of Contents