266
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enter BGP-VPNv4 subaddress
family view.
ipv4-family vpnv4
N/A
4.
Enable the exchange of
BGP-VPNv4 routing
information with a peer.
peer
{
group-name
|
ip-address
}
enable
N/A
5.
Specify a BGP peer or peer
group as the UPE.
peer
{
group-name
|
ip-address
}
upe
The default route of a VPN instance
can be advertised to only a BGP
peer or peer group that is UPE.
6.
Advertise routes to the UPE.
•
(Approach 1) Advertise a
default VPN route:
peer
{
group-name
|
ip-address
}
default-route-advertise
vpn-instance
vpn-instance-name
•
(Approach 2) Advertise routes
permitted by a routing policy:
peer
{
group-name
|
ip-address
}
upe route-policy
route-policy-name
export
Use either approach.
By default, BGP does not advertise
routes to a VPNv4 peer.
With the
peer
default-route-advertise
vpn-instance
command
configured, the SPE always
advertises a default route using the
local address as the next hop
address to the UPE, regardless of
whether the default route is present
in the local routing table or not.
Configuring an OSPF sham link
The sham link is considered an OSPF intra-area route. It is used to make sure that the VPN traffic is
transmitted over the backbone instead of the backdoor link between two CEs.
The source and destination addresses of the sham link must be loopback interface addresses with 32-bit
masks. Besides, the loopback interfaces must be bound to the VPN instances and be advertised through
BGP.
Before you configure an OSPF sham link, complete the following tasks:
•
Configure basic MPLS L3VPN (OSPF is used between PEs and CEs)
•
Configure OSPF in the LAN where CEs reside
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
N/A
3.
Bind the loopback interface to
a VPN instance.
ip binding vpn-instance
vpn-instance-name
By default, an interface is
associated with no VPN instance.