Specifications
ip ospf enable
16-16 IPv4 Routing Protocol Configuration
ip ospf enable
UsethiscommandtoenableOSPFonaninterface.ThenoformofthiscommanddisablesOSPFon
aninterface.
Syntax
ip ospf enable
no ip ospf enable
Parameters
None.
Defaults
None.
Mode
Interfaceconfiguration:C3(su)‐>router(Config‐if(Vlan1))#
Example
ThisexampleshowshowtoenableOSPFontheVLAN1 interface:
C3(su)->router(Config)#interface vlan 1
C3(su)->router(Config-if(Vlan 1))#ip ospf enable
ip ospf areaid
UsethiscommandtoconfigureareaIDsforOSPFinterfaces.IfOSPFisenabledonaninterfaceas
describedin“ipospfenable”onpage16‐16,theOSPFareawilldefaultto0.0.0.0.Thenoformof
thiscommandremovesOSPFroutingfortheinterfaces.
Syntax
ip ospf areaid area-id
no ip ospf areaid
Parameters
Defaults
None.
Mode
Interfaceconfiguration:C3(su)‐>router(Config‐if(Vlan1))#
Example
ThisexampleshowshowtoconfiguretheVLAN1interfaceasarea0.0.0.31:
C3(su)->router(Config)#interface vlan 1
C3(su)->router(Config-if(Vlan 1))#ip ospf areaid 0.0.0.31
area‐id Specifiesthearea‐idtobeassociatedwiththeOSPFint erface.Validvalues
aredecimalvaluesorIPaddresses.