215
Step Command
Remarks
peer group.
peer.
6.
Specify the BGP peer or peer
group as a UPE.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
upe
By default, no peer is a UPE.
7.
Advertise routes to the UPE.
•
Advertise a default VPN
route to the UPE:
peer
{
group-name
|
ipv4-address
[
mask-length
] }
default-route-advertise
vpn-instance
vpn-instance-name
•
Advertise routes permitted
by a routing policy to the
UPE:
peer
{
group-name
|
ipv4-address
[
mask-length
] }
upe
route-policy
route-policy-name export
By default, no route is advertised
to the UPE.
Do not configure both commands.
The
peer
default-route-advertise
vpn-instance
command
advertises a default route using
the local address as the next hop
to the UPE, regardless of whether
the default route exists in the local
routing table. However, if the
specified peer is not a UPE, the
command does not advertise a
default route.
8.
Return to BGP instance view.
quit
N/A
9.
Create a BGP-VPN instance,
and enter BGP-VPN
instance view.
ip vpn-instance
vpn-instance-name
By default, no BGP-VPN
instances exist.
95B
Configuring an OSPF sham link
When a backdoor link exists between the two sites of a VPN, you can create a sham link between
PEs to forward VPN traffic through the sham link on the backbone rather than the backdoor link. A
sham link is considered an OSPF intra-area route.
The source and destination addresses of the sham link must be loopback interface addresses with
32-bit masks. The loopback interfaces must be bound to VPN instances, and their addresses are
advertised through BGP.
Before you configure an OSPF sham link, perform the following tasks:
•
Configure basic MPLS L3VPN (OSPF is used between PE and CE).
•
Configure OSPF in the LAN where customer CEs reside.
242B
Configuring a loopback interface
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a loopback interface
and enter loopback interface
view.
interface loopback
interface-number
By default, no loopback interfaces
exist.
3.
Associate the loopback
interface with a VPN
instance.
ip binding vpn-instance
vpn-instance-name
By default, the interface is
associated with no VPN instance.
4.
Configure an IP address for
the loopback interface.
ip address ip-address
{
mask-length
|
mask
}
By default, no IP address is
configured for the loopback
interface.