10.1.1.0/24 EBGP 255 0 RD 1.1.1.9 GigabitEthernet2/0/0
10.1.1.1/32 EBGP 255 0 RD 1.1.1.9 GigabitEthernet2/0/0
10.1.1.2/32 EBGP 255 0 RD 1.1.1.9 GigabitEthernet2/0/0
10.2.1.0/24 Direct 0 0 D 10.2.1.2 GigabitEthernet1/0/0
10.2.1.1/32 Direct 0 0 D 10.2.1.1 GigabitEthernet1/0/0
10.2.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
100.1.1.0/24
EBGP 255 0 RD 1.1.1.9 GigabitEthernet2/0/0
200.1.1.0/24 EBGP 255 0 D 10.2.1.1 GigabitEthernet1/0/0
Run the
display bgp routing-table peer received-routes
command on CE2. It shows that CE2
does not receive 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,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.0/24 10.2.1.2 0 100?
*> 10.1.1.1/32 10.2.1.2 0 100?
* 10.2.1.0/24 10.2.1.2 0 0 100?
*> 10.2.1.1/32 10.2.1.2 0 0 100?
Step 2
Substitute the BGP AS number.
# Substitute the BGP AS number on the PEs.
Consider PE2 as an example.
[PE2]
bgp 100
[PE2-bgp]
ipv4-family vpn-instance vpn1
[PE2-bgp-vpn1]
peer 10.2.1.1 substitute-as
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: 6
BGP Local router ID is 10.2.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.0/24 10.2.1.2 0 100?
*> 10.1.1.1/32 10.2.1.2 0 100?
*> 10.1.1.2/32 10.2.1.2 0 100 100?
* 10.2.1.0/24 10.2.1.2 0 0 100?
* 10.2.1.1/32 10.2.1.2 0 0 100?
*>
100.1.1.0/24
10.2.1.2 0 100 100?
[CE2]
display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 EBGP 255 0 D 10.2.1.2 GigabitEthernet1/0/0
10.1.1.1/32 EBGP 255 0 D 10.2.1.2 GigabitEthernet1/0/0
10.2.1.0/24 Direct 0 0 D 10.2.1.1 GigabitEthernet1/0/0
10.2.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.2.1.2/32 Direct 0 0 D 10.2.1.2 GigabitEthernet1/0/0
100.1.1.1/24
EBGP 255 0 D 10.2.1.2 GigabitEthernet1/0/0
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
200.1.1.0/24 Direct 0 0 D 127.0.0.1
GigabitEthernet2/0/0
200.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Configure the BGP AS number substitution function on the PE1. The GigabitEthernet interfaces
of CE1 and CE2 can then ping through each other.
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
163