R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)
161
<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.
area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295
that is translated into the IP address format.
exclude-subip: Excludes secondary IP addresses. Without this keyword, the command enables OSPF
also on secondary IP addresses.
Usage guidelines
The ospf area command has a higher priority than the network command.
If the specified process and area do not exist, the command creates the process and area. Disabling an
OSPF process on an interface does not delete the OSPF process or the area.
Examples
# Enable OSPF process 1 on GigabitEthernet 2/1/2 that is in Area 2 and exclude secondary IP
addresses.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/2
[Sysname-GigabitEthernet2/1/2] ospf 1 area 2 exclude-subip
ospf authentication-mode
Use ospf authentication-mode to set the authentication mode and key on an interface.
Use undo ospf authentication-mode to remove specified configuration.
Syntax
For MD5/HMAC-MD5 authentication:
ospf authentication-mode { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string }