ip ospf authentication-key
Assigns the password used for simple authentication on this interface.
Syntax: ip ospf authentication-key key
no ip ospf authentication-key
key
Character string of up to eight characters.
Description: All OSPF protocol exchanges are authenticated if authentication is enabled. Only trusted routers can participate in the autonomous system's routing.
The password assigned by this command is used by OSPF authentication to generate and verify the authentication field in the OSPF header. An authentication key can be configured for each interface.
With simple password authentication, each router must first be configured with the passwords of each of its attached networks before it can participate in routing with those networks.
When simple authentication is configured, a 64-bit field is configured for each network. All packets sent on that network must have this value in the header of their OSPF packets. In addition, the contents of each OSPF packet are checksummed to detect corruption.
Use the ip ospf authentication-key key command to assign the authentication password for this interface.
Use the no ip ospf authentication-key command to delete the authentication key.
Factory Default: No authentication key configured.
Command Mode: Interface configuration.
Example: In the following example:
- The router ospf command enables OSPF and specifies an OSPF process number
- The network area command enables OSPF on the specified network and assigns the network an OSPF area ID of 1
- The area area-id authentication command enables authentication for area 1
- The interface pos command specifies an interface and changes the command mode to Interface configuration
- The ip ospf authentication-key key command enables simple authentication and sets the password for the specified interface:
router(config)#router ospf 13
router(config-router)#network 10.1.1.0 0.0.0.255 area 1
router(config-router)#area 1 authentication
router(config-router)#interface pos 1/1/1
router(config-if)#ip ospf authentication-key IceCream
Related Commands: area authentication
interface
network area
router ospf
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: ospf.fm
HTML File Name: ospf7.html
Last Updated: 05/10/04 at 16:34:58