191
Redistributing the loopback interface route
1. Enter system view.
system-view
N/A
2. Enter BGP view.
bgp
as-number N/A
3. Enter BGP-VPN instance
view.
ip vpn-instance
vpn-instance-name
N/A
4. Enter BGP-VPN IPv4
unicast address family
view.
address-family ipv4
[
unicast
]
N/A
5. Redistribute direct routes
into BGP (including the
route).
import-route direct
By default,
redistributed into BGP.
Creating a sham link
1. Enter system view.
system-view
N/A
2. Enter OSPF view.
ospf
[ process-id |
router-id
router-id |
vpn-instance
vpn-instance-name ] *
As a best practice, specify a router
ID.
3. Configure the external route
tag for imported VPN routes.
route-tag
tag-value
If
backbone, and the BGP AS
number is not greater than 65535,
the first two octets of the external
route tag are 0xD000 and the last
two octets are the local BGP AS
number.
greater than 65535, the external
route tag is 0.
4. Enter OSPF area view.
area
area-id
N/A
5. Configure a sham link.
sham-link
source-ip-address
destination-ip-address
[
cost
cost
|
dead
dead-interval |
hello
hello-interval |
{ {
hmac-md5
|
md5
} key-id {
cipher
cipher-string |
plain
plain-string } |
simple
{
cipher
cipher-string |
plain
plain-string } } |
retransmit
retrans-interval |
trans-delay
delay ] *
By default, no sham link is
configured.
Specifying the VPN label processing mode on the
egress PE
An egress PE can process VPN labels in either POPGO or POP mode:
• POPGO forwarding—Pops the label and forwards the packet out of the egress interface
corresponding to the label.