156
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 no VPN is specified, 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.
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]
ospf area
Use
ospf area
to enable OSPF on an interface.
Use
undo ospf area
to remove the configuration.
Syntax
ospf
process-id
area
area-id
[
exclude-subip
]
undo ospf
process-id
area
[
exclude-subip
]
Default
OSPF is not enabled on an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
process-id
: Specifies an OSPF process by its ID in the range of 1 to 65535.