peer 200.1.1.2 as-number 100
peer 20.1.1.2 as-number 65002
peer 20.1.2.2 as-number 65003
peer 20.1.3.2 as-number 65001
peer 20.1.4.2 as-number 65001
#
ipv4-family unicast
undo synchronization
peer 200.1.1.2 enable
peer 20.1.1.2 enable
peer 20.1.1.2 next-hop-local
peer 20.1.2.2 enable
peer 20.1.2.2 next-hop-local
peer 20.1.3.2 enable
peer 20.1.3.2 next-hop-local
peer 20.1.4.2 enable
peer 20.1.4.2 next-hop-local
#
return
l
Configuration file of Router B
#
sysname RouterB
#
interface Pos1/0/0
link-protocol ppp
undo shutdown
ip address 20.1.1.2 255.255.255.0
#
bgp 65002
router-id 2.2.2.2
confederation id 200
confederation peer-as 65001
peer 20.1.1.1 as-number 65001
#
ipv4-family unicast
undo synchronization
peer 20.1.1.1 enable
#
return
NOTE
The configuration file of Router C is similar to that of Router B, and is not provided here.
l
Configuration file of Router D
#
sysname RouterD
#
interface Pos1/0/0
link-protocol ppp
undo shutdown
ip address 20.1.3.2 255.255.255.0
#
interface Pos2/0/0
link-protocol ppp
undo shutdown
ip address 20.1.5.1 255.255.255.0
#
bgp 65001
router-id 4.4.4.4
confederation id 200
peer 20.1.3.1 as-number 65001
peer 20.1.5.2 as-number 65001
#
ipv4-family unicast
undo synchronization
peer 20.1.3.1 enable
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
8 BGP Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1006