Connectivity Guide

Table Of Contents
ip ospf area
Attaches an interface to an OSPF area.
Syntax
ip ospf process-id area area-id
Parameters
process-id — Set an OSPF process ID for a specic OSPF process, from 1 to 65535.
area area-id — Enter the OSPF area ID in dotted decimal A.B.C.D format or enter an area ID number,
from 1 to 65535.
Default Not congured
Command Mode INTERFACE
Usage Information The no version of this command removes an interface from an OSPF area.
Example
OS10(conf-if-vl-10)# ip ospf 10 area 5
Supported Releases 10.2.0E or later
ip ospf authentication-key
Congures a text authentication key to enable OSPF trac on an interface.
Syntax
ip ospf authentication-key key
Parameters key — Enter an eight-character string for the authentication key.
Defaults Not congured
Command Mode INTERFACE
Usage Information To exchange OSPF information, all neighboring routers in the same network must use the same authentication key.
The no version of this command deletes the authentication key.
Example
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# ip ospf authentication-key sample
Supported Releases 10.3.0E or later
ip ospf cost
Changes the cost associated with the OSPF trac on an interface.
Syntax
ip ospf cost cost
Parameters cost — Enter a value as the OSPF cost for the interface, from 1 to 65335.
Default Based on bandwidth reference
Command Mode INTERFACE
Usage Information if not congured, interface cost is based on the auto-cost command. This command congures OSPF over
multiple vendors to ensure that all routers use the same cost. If you manually congure the cost, the calculated
cost based on the reference bandwidth does not apply to the interface. The no version of this command removes
the IP OSPF cost conguration.
Example
OS10(config)# interface vlan 10
OS10(conf-if-vl-1)# ip ospf cost 10
Layer 3 447