Download Print this page

Huawei Quidway NetEngine80E Configuration Manual page 959

Universal service router, ip routing
Hide thumbs Also See for Quidway NetEngine80E:

Advertisement

HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
replace_asn to routes to be advertised to 10.1.3.1.
#
route-policy replace_asn permit node 10
replace_asn.
if-match as-path-filter filter1
named filter1.
apply as-path 65002 65004 65005 overwrite
the route that matches filter1 with 65002, 65004, 65005.
#
route-policy replace_asn permit node 20
replace_asn to permit all other routes.
#
ip as-path-filter filter1 permit ^65003
named filter1 to match all the routes learned from AS 65003.
#
Run the display bgp routing-table [ ip-address ] command to check the configurations.
# Display the routing table of Router A.
[RouterA] display bgp routing-table
BGP Local router ID is 10.1.1.1
Status codes: * - valid, > - best, d - damped,
Total Number of Routes: 6
*>
65005?
*
65005?
*>
65005?
*
65005?
*>
65005?
*
65005?
The preceding command output shows that the AS_Path of the route received from AS 65003
has been replaced, after which the routes received from AS 65002 and AS 65003 have the same
AS_Path. Run the maximum load-balancing 2 command on Router A to set the maximum
number of routes for load balancing to 2. Then, check the detailed route information. The route
172.16.1.0/24 is used in the following example:
[RouterA] display bgp routing-table 172.16.1.0
BGP local router ID : 10.1.1.1
Local AS number : 65001
Paths:
BGP routing table entry information of 172.16.1.0/24:
From: 10.1.1.2 (10.1.1.2)
Route Duration: 19h57m51s
Direct Out-interface: GigabitEthernet0/0/1
Original nexthop: 10.1.1.2
Qos information : 0x0
AS-path 65002 65004 65005, origin incomplete, pref-val 0, valid, external, best,
select, active, pre 255
Advertised to such 2 peers:
Issue 02 (2014-09-30)
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
172.16.1.0/24
172.16.2.0/24
172.16.3.0/24
2 available, 1 best, 2 select
10.1.1.2
10.1.3.2
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i - internal, s - suppressed, S - Stale
NextHop
MED
10.1.1.2
10.1.3.2
10.1.1.2
10.1.3.2
10.1.1.2
10.1.3.2
8 BGP Configuration
//Define the first node of
//Configure AS_Path filter
//Replace the AS_Path of
//Define the second node of
//Define AS_Path filter
LocPrf
PrefVal Path/Ogn
0
65002 65004
0
65002 65004
0
65002 65004
0
65002 65004
0
65002 65004
0
65002 65004
934

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Quidway netengine40eNe40eNe80e