During network transfer or service identification, a device needs to be simulated as
multiple BGP devices logically. In this case, you can run the as-number command
to configure an AS number for each VPN instance.
NOTE
The AS number configured in the BGP-VPN instance view cannot be the same as the AS
number configured in the BGP view.
5. Run:
peer ipv4-address as-number as-number
The CE is specified as the peer of the VPN.
6. (Optional) Run:
peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]
The maximum number of hops is configured for the EBGP connection.
Generally, one or multiple directly-connected physical links exist between EBGP
peers. If the directly-connected physical link(s) are not available, you must run the
peer ebgp-max-hop command to ensure that the TCP connection can be set up
between the EBGP peers through multiple hops.
7. (Optional) When the direct route of the local CE needs to be imported to the VPN
routing table (for being advertised to the remote PE), you can choose either of the
following configurations:
– Run the import-route direct [ med med | route-policy route-policy-name ]*
command to import the direct routes of the local CE into the VPN routing table.
– Run the network ipv4-address [ mask | mask-length ] [ route-policy route-policy-
name ] command to import a specific direct route of the local CE into the VPN
routing table.
NOTE
The PE can automatically learn the direct route destined for the local CE, and the learnt
direct route has a higher priority than the direct route that is advertised by the local CE
based on EBGP. Therefore, if this step is not configured, the PE cannot advertise the direct
route to the remote PE based on MP-BGP.
8. (Optional) Run:
peer ip-address allow-as-loop [ number ]
The loop is allowed.
This Step is optional and used in the Hub and Spoke networking.
Generally, BGP uses the AS number to detect a loop. In the Hub and Spoke
networking, however, if EBGP runs between the PE and the CE at the Hub site, the
Hub-PE carries the local AS number when advertising routes to the Hub-CE.
Therefore, the PE denies the subsequent routing update from the Hub-CE. To ensure
the proper transmission of routes in the Hub and Spoke networking, you need to
configure all the BGP peers along the path, used for the Hub-CE to advertise private
network routes to the Spoke-CE, and to accept the routes with the AS number repeated
once.
9. (Optional) Run:
peer ip-address substitute-as
The AS number substitution is enabled for BGP.
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
109