Huawei Quidway S9300 Configuration Manual page 186

Terabit routing switch
Table of Contents

Advertisement

3 BGP/MPLS IP VPN Configuration
Enable debugging of the BGP Update packets on PE2. The debugging information shows that
PE2 advertises the route to 100.1.1.0/24 and the AS path information is "100 600".
<PE2> terminal monitor
<PE2> terminal debugging
<PE2> debugging bgp update vpn-instance vpn1 peer 10.2.1.1 verbose
<PE2> refresh bgp vpn-instance vpn1 all export
*0.4402392 PE2 RM/7/RMDEBUG:
Run the display bgp routing-table peer received-routes command on CE2, and you can see
that CE2 does not accept the route to 100.1.1.0/24.
[CE2] display bgp routing-table peer 10.2.1.2 received-routes
Total Number of Routes: 4
BGP Local router ID is 10.2.1.1
Status codes: * - valid, > - best, d - damped,
*>
*
*
Step 2 Configure BGP ASN substitution.
Configure BGP ASN substitution on PEs.
# Take PE2 for example.
[PE2] bgp 100
[PE2-bgp] ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1] peer 10.2.1.1 substitute-as
In the route advertised to CE2 by PE2, you can see that the AS path information of 100.1.1.0/24
changes from "100 600" to "100 100".
*0.13498737 PE2 RM/7/RMDEBUG:
Display the routing information and routing table received by CE2.
[CE2] display bgp routing-table peer 10.2.1.2 received-routes
Total Number of Routes: 5
BGP Local router ID is 10.2.1.1
Status codes: * - valid, > - best, d - damped,
*>
*
*
*>
[CE2] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
3-82
10.2.1.2/32
Direct 0
100.1.1.0/24
BGP
200.1.1.0/24
BGP
BGP.vpn1: Send UPDATE to 10.2.1.1 for following destinations :
Origin
: Incomplete
AS Path
: 100 600
Next Hop
: 10.2.1.2
100.1.1.0/24,
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
NextHop
10.1.1.0/24
10.2.1.2
10.2.1.0/24
10.2.1.2
10.2.1.1/32
10.2.1.2
BGP.vpn1: Send UPDATE to 10.2.1.1 for following destinations :
Origin
: Incomplete
AS Path
: 100 100
Next Hop
: 10.2.1.2
100.1.1.0/24
h - history,
Origin : i - IGP, e - EGP, ? - incomplete
Network
NextHop
10.1.1.0/24
10.2.1.2
10.2.1.0/24
10.2.1.2
10.2.1.1/32
10.2.1.2
100.1.1.0/24
10.2.1.2
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
0
D
255
0
RD
255
0
D
i - internal, s - suppressed, S - Stale
MED
0
0
i - internal, s - suppressed, S - Stale
MED
0
0
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
127.0.0.1
InLoopBack0
1.1.1.9
Vlanif30
10.2.1.1
Vlanif40
LocPrf
PrefVal Path/Ogn
0
100?
0
100?
0
100?
LocPrf
PrefVal Path/Ogn
0
100?
0
100?
0
100?
0
100 100!
Issue 03 (2009-08-20)

Advertisement

Table of Contents
loading

Table of Contents