8
ospf
[
process-id
]
router-id router-id
vpn-instance vpn-instance-name
Keywords
Usage guidelines
router-id
router-id
An OSPF process that is bound to a VPN instance does not use the
public network router ID configured in system view. Therefore, you must
specify a router ID when creating a process or configure an IP address
for a minimum of one interface in the VPN instance.
vpn-instance
vpn-instance-name
An OSPF process can belong to only one VPN instance.
If you delete a VPN instance, all OSPF processes of the VPN instance
are also deleted.
3.
Redistribute remote site routes advertised by the PE into OSPF.
import-route
protocol
[
as-number
] [
process-id
|
all-processes
]
[
allow-direct
|
cost
cost-value
|
nssa-only
|
route-policy
route-policy-name
|
tag tag
|
type
type
]
*
By default, no routes are redistributed into OSPF.
4.
Create an OSPF area and enter OSPF area view.
area
area-id
5.
Enable OSPF on the interface attached to the specified network in the area.
network ip-address wildcard-mask
By default, an interface neither belongs to any area nor runs OSPF.
Configuring routing between an MCE and a PE
About routing between an MCE and a PE
MCE-PE routing configuration includes these tasks:
•
Binding the MCE-PE interfaces to VPN instances.
•
Performing route configurations.
•
Redistributing VPN routes into the routing protocol running between the MCE and the PE.
Perform the following configurations on the MCE. For information about configuring the PE, see the
documentation for the PE.
Configuring static routing between an MCE and a PE
1.
Enter system view.
system-view
2.
Configure a static route for a VPN instance.
ip route-static
vpn-instance
s-vpn-instance-name
dest-address
{
mask-length
|
mask
}
{
interface-type
interface-number
[
next-hop-address
]
|
next-hop-address
[
public
]
|
vpn-instance
d-vpn-instance-name
next-hop-address
}
3.
(Optional.) Set the default preference for static routes.
ip route-static default-preference
default-preference
The default preference is 60.