Configuring a bgp pw – H3C Technologies H3C S6800 Series Switches User Manual
Page 343
330
Step Command
Remarks
4.
Configure an LDP PW and
enter cross-connect PW view.
peer ip-address pw-id pw-id
[ pw-class class-name |
tunnel-policy tunnel-policy-name ] *
By default, no LDP PW is
configured.
After an LDP PW is created, the
local PE automatically sends a
targeted hello to create an LDP
session to the peer PE. Then, the PE
exchanges the PW ID FEC and PW
label mapping with the peer.
Configuring a BGP PW
To configure a BGP PW, perform the following configurations on PEs:
•
Configure BGP to advertise MPLS L2VPN label block information.
•
Create a BGP PW.
Configuring BGP to advertise MPLS L2VPN label block information
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable BGP and enter BGP
view.
bgp as-number
By default, BGP is not
enabled.
3.
Configure the remote PE as a
BGP peer.
peer { group-name | ip-address
[ mask-length ] } as-number
as-number
By default, no BGP peer is
configured.
4.
Create the BGP L2VPN address
family and enter BGP L2VPN
address family view.
address-family l2vpn
By default, the BGP L2VPN
address family is not created.
5.
Enable BGP to exchange BGP
L2VPN information with the
specified peer or peer group.
peer { group-name | ip-address
[ mask-length ] } enable
By default, BGP cannot
exchange BGP L2VPN
information with any peer or
peer group.
6.
Enable BGP to exchange label
block information with the
specified peer or peer group.
peer { group-name | ip-address
[ mask-length ] } signaling
[ non-standard ]
By default, BGP can
exchange label block
information with a BGP
L2VPN peer or peer group by
using RFC 4761
MP_REACH_NLRI.
7.
(Optional.) Permit the local AS
number to appear in routes from
the specified peer or peer group
and specify the appearance
times.
peer { group-name | ip-address
[ mask-length ] } allow-as-loop
[ number ]
By default, the local AS
number is not allowed in
routes from a peer or peer
group.
8.
(Optional.) Enable route
target-based filtering of
incoming BGP L2VPN
information.
policy vpn-target
By default, route target-based
filtering of incoming BGP
L2VPN information is
enabled.