After BGP ORF is enabled, Router C sends only two routes based on the prefix-based import
policy provided by Router A, and Router A accepts only the two routes.
----End
Configuration Files
l
Configuration file of Router A
#
sysname
RouterA
#
interface
Pos1/0/0
link-protocol
ppp
ip address 20.2.1.2
255.255.255.252
#
interface
Pos1/0/1
link-protocol
ppp
ip address 20.1.1.1
255.255.255.252
#
interface
LoopBack1
ip address 1.1.1.1
255.255.255.255
#
bgp
100
router-id
1.1.1.1
peer 20.1.1.2 as-number
200
peer 20.2.1.1 as-number
100
#
ipv4-family
unicast
undo
synchronization
import-route
direct
peer 20.1.1.2
enable
peer 20.1.1.2 ip-prefix 1
import
peer 20.1.1.2 capability-advertise orf ip-prefix
both
peer 20.2.1.1
enable
#
ip ip-prefix 1 index 10 permit 20.3.1.0 24 greater-equal 24 less-equal
32
#
return
l
Configuration file of Router B
#
sysname
RouterB
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.
1016