Download Print this page

Huawei Quidway NetEngine80E Configuration Manual page 931

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

Advertisement

HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
The preceding command output shows that the PrefVal value of the route learned from ISP1 is
greater than that of the route learned from ISP2 and that the route learned from ISP1 is selected
as the optimal route.
Scenario 3: The expected configurations of the administrator of AS 65001 are as follows:
l
l
To meet the preceding requirements, ensure that Router A selects the route 10.11.0.0/16 learned
from ISP1 and the route 10.22.0.0/16 learned from ISP2. In this situation, the peer preferred-
value command can no longer be used because different PrefVal values are required for the
routes learned from the same ISP. To allow different PrefVal values for the routes learned from
the same ISP, configure import policies. Detailed configurations are as follows:
#
bgp 65001
#
ipv4-family unicast
peer 10.1.2.2 route-policy for_isp1_in import
for_isp1_in to the routes learned from 10.1.2.2 and use for_isp1_in to modify the
PrefVal value.
peer 10.1.3.2 route-policy for_isp2_in import
for_isp2_in to the routes learned from 10.1.3.2 and use for_isp2_in to modify the
PrefVal value.
#
route-policy for_isp1_in permit node 10
for_isp1_in and set the PrefVal value of the route 10.11.0.0/16 to 80.
if-match ip-prefix for_isp1
apply preferred-value 80
#
route-policy for_isp1_in permit node 20
for_isp1_in and allow for_isp1_in to permit all routes.
#
route-policy for_isp2_in permit node 10
for_isp2_in and set the PrefVal value of the route 10.22.0.0/16 to 120.
if-match ip-prefix for_isp2
apply preferred-value 120
#
route-policy for_isp2_in permit node 20
for_isp2_in and allow for_isp2_in to permit all routes.
#
ip ip-prefix for_isp1 index 10 permit 10.11.0.0 16
list to match the route 10.11.0.0/16.
ip ip-prefix for_isp2 index 10 permit 10.22.0.0 16
list to match the route 10.22.0.0/16.
#
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.2.1
Status codes: * - valid, > - best, d - damped,
Total Number of Routes: 4
*>
Issue 02 (2014-09-30)
For the traffic destined to 10.11.0.0/16, ISP1 is active and ISP2 is backup.
For the traffic destined to 10.22.0.0/16, ISP2 is active and ISP1 is backup.
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
10.11.0.0/16
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
i - internal, s - suppressed, S - Stale
NextHop
MED
10.1.2.2
8 BGP Configuration
//Apply import policy named
//Apply import policy named
//Define the first node of
//Define the second node of
//Define the first node of
//Define the second node of
//Configure an IP prefix
//Configure an IP prefix
LocPrf
PrefVal Path/Ogn
80
300 100?
906

Hide quick links:

Advertisement

loading

This manual is also suitable for:

Quidway netengine40eNe40eNe80e