R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
263
Use the undo ospf authentication-mode command to remove specified configuration.
By default, no authentication is available on an interface.
Interfaces attached to the same network segment must have the same authentication password and
mode.
This configuration is not supported on the null interface.
Related commands: authentication-mode.
Examples
# Configure the network 131.119.0.0/16 in Area 1 to support MD5 cipher authentication, and set the
interface key ID to 15, authentication password to abc, and password type to cipher.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Sysname-ospf-100-area-0.0.0.1] authentication-mode md5
[Sysname-ospf-100-area-0.0.0.1] quit
[Sysname-ospf-100] quit
[Sysname] interface gigabitethernet 0/0
[Sysname-GigabitEthernet0/0] ospf authentication-mode md5 15 cipher abc
# Configure the network 131.119.0.0/16 in Area 1 to support simple authentication, and set for the
interface the authentication password to abc, and password type to cipher.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 1
[Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Sysname-ospf-100-area-0.0.0.1] authentication-mode simple
[Sysname-ospf-100-area-0.0.0.1] quit
[Sysname-ospf-100] quit
[Sysname] interface GigabitEthernet 0/0
[Sysname-GigabitEthernet0/0] ospf authentication-mode simple cipher abc
ospf cost
Syntax
ospf cost value
undo ospf cost
View
Interface view
Default level
2: System level
Parameters
value: OSPF cost, in the range 0 to 65535 for a loopback interface and 1 to 65535 for other interfaces.
Description
Use the ospf cost command to set an OSPF cost for the interface.