H3C Technologies H3C S5560 Series Switches User Manual

Page 255

Advertising
background image

239

For example, as shown in

Figure 60

, 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):

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN
instance view.

Enter BGP view:

bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ip vpn-instance

vpn-instance-name

N/A

3.

Configure AS number
substitution for a peer or peer

group.

peer { group-name | ip-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):

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN
instance view.

Enter BGP view:

bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ip vpn-instance

vpn-instance-name

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.

Removing private AS numbers from updates sent to an EBGP peer or peer group

Private AS numbers are typically used in test networks, and should not be transmitted in public networks.

The range of private AS numbers is from 64512 to 65535.
To remove private AS numbers from updates sent to an EBGP peer or peer group (IPv4):

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter BGP view or BGP-VPN
instance view.

Enter BGP view:

bgp as-number

Enter BGP-VPN instance view:

a.

bgp as-number

b.

ip vpn-instance

vpn-instance-name

N/A

Advertising
This manual is related to the following products: