ospf
Use ospf to enable OSPF and enter OSPF view.
Use undo ospf to disable OSPF.
Syntax
ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] *
undo ospf [ process-id ]
Default
OSPF is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
router-id router-id: Specifies an OSPF router ID in dotted decimal notation.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the OSPF process runs on the public network.
Usage guidelines
You can enable multiple OSPF processes on a router and specify different router IDs for them.
Enable an OSPF process before performing other tasks.
For correct OSPF neighbor relationship establishment, do not bind an OSPF-enabled VLAN interface to an OpenFlow instance.
Examples
# Enable OSPF process 100 and specify router ID 10.10.10.1.
<Sysname> system-view [Sysname] ospf 100 router-id 10.10.10.1 [Sysname-ospf-100]