Configuration Files
l
Configuration file of Router A
#
sysname RouterA
#
interface Pos1/0/0
ip address 20.1.1.1 255.255.255.0
#
interface Pos2/0/0
ip address 20.2.1.1 255.255.255.0
#
bgp 100
router-id 1.1.1.1
peer 20.1.1.2 as-number 200
peer 20.2.1.2 as-number 200
#
ipv4-family unicast
auto-frr
#
return
l
Configuration file of Router B
#
sysname RouterB
#
interface Pos1/0/0
ip address 20.1.1.2 255.255.255.0
#
interface Pos2/0/0
ip address 20.3.1.1 255.255.255.0
#
bgp 200
router-id 2.2.2.2
peer 20.1.1.1 as-number 100
peer 20.3.1.2 as-number 200
#
ipv4-family unicast
peer 20.1.1.1 route-policy rtb export
#
route-policy rtb permit node 10
apply cost 80
#
return
l
Configuration file of Router C
#
sysname RouterC
#
interface Pos1/0/0
ip address 20.2.1.2 255.255.255.0
#
interface Pos2/0/0
ip address 20.4.1.1 255.255.255.0
#
bgp 200
router-id 3.3.3.3
peer 20.2.1.1 as-number 100
peer 20.4.1.2 as-number 200
#
ipv4-family unicast
peer 20.2.1.1 route-policy rtc export
#
route-policy rtc permit node 10
apply cost 120
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.
1034