Configuring ospf authentication, Configuring ospf area authentication, Configuring ospf interface authentication – H3C Technologies H3C S5560 Series Switches User Manual

Page 104

Advertising
background image

88

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter OSPF view.

ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *

N/A

3.

Configure the router as a

stub router.

stub-router [ external-lsa
[ max-metric-value ] | include-stub |

on-startup { seconds | wait-for-bgp
[ seconds ] } | summary-lsa

[ max-metric-value ] ] *

By default, the router is not
configured as a stub router.
A stub router is not related to a stub
area.

Configuring OSPF authentication

Perform this task to configure OSPF area and interface authentication.
OSPF adds the configured password into sent packets, and uses the password to authenticate received

packets. Only packets that pass the authentication can be received. If a packet fails the authentication,

the OSPF neighbor relationship cannot be established.
If you configure OSPF authentication for both an area and an interface in that area, the interface uses the

OSPF authentication configured on it.

Configuring OSPF area authentication

You must configure the same authentication mode and password on all the routers in an area.
To configure OSPF area authentication:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter OSPF view.

ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *

N/A

3.

Enter area view.

area area-id N/A

4.

Configure area authentication
mode.

Configure MD5 authentication:

authentication-mode { hmac-md5 |
md5 } key-id { cipher | plain } password

Configure simple authentication:

authentication-mode simple { cipher |
plain } password

By default, no
authentication is

configured.

Configuring OSPF interface authentication

You must configure the same authentication mode and password on both the local interface and its peer

interface.
To configure OSPF interface authentication:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view.

interface interface-type interface-number N/A

Advertising
This manual is related to the following products: