267
Figure 65 AS number substitution configuration (in an IPv4 network)
As shown in Figure 65, CE 1 and CE 2 use the same AS number 800. To ensure bidirectional
communication between the two sites, configure AS number substitution on PE 2. PE 2 replaces AS
800 with AS 100 for the BGP route update originated from CE 1 before advertising it to CE 2. Perform
the same configuration on PE 1.
To configure AS number substitution for a peer or peer group (IPv4 unicast/multicast address family):
1. Enter system view.
system-view
N/A
2. Enter BGP instance view or
BGP-VPN instance view.
• Enter BGP instance view:
bgp as-number [ instance
instance-name ]
• Enter BGP-VPN instance
view:
a. bgp as-number
[ instance
instance-name ]
b. ip vpn-instance
N/A
3. Configure AS number
substitution for a peer or peer
group.
peer
{ group-name | ipv4-address
[ mask-length ] }
substitute-as
By default, AS number
substitution is not configured.
To configure AS number substitution for a peer or peer group (IPv6 unicast/multicast address family):
1. Enter system view.
N/A
2. Enter BGP instance view or
BGP-VPN instance view.
• Enter BGP instance view:
bgp as-number [ instance
instance-name ]
• Enter BGP-VPN instance
view:
a. bgp as-number
[ instance
instance-name ]
b. ip vpn-instance
N/A
3. Configure AS number
substitution for a peer or peer
group.
peer
{ group-name | ipv6-address
[ prefix-length ] }
substitute-as
By default, AS number
substitution is not configured.
MPLS backbone
VPNv
4_
Update
:
10
.1.0.0/16
RD
:
100:
1
AS
_PATH
:
800
EBGP
_Update
: 10
.
1.
0.
0
/16
AS
_
PATH
: 100,
100
PE
1 PE
2
AS
800
EBGP
_Update
:
10
.
1
.
0.
0/
16
AS
_PATH
: 800
AS
800
AS
100
CE
1
CE 2