Specifications
ip ospf cost
SecureStack C3 Configuration Guide 16-17
ip ospf cost
UsethiscommandtosetthecostofsendinganOSPFpacketonaninterface.Thenoformofthis
commandresetstheOSPFcosttothedefaultof10.
Syntax
ip ospf cost cost
no ip ospf cost
Parameters
Defaults
None.
Mode
Interfaceconfiguration:C3(su)‐>router(Config‐if(Vlan1))#
Usage
EachrouterinterfacethatparticipatesinOSPFroutingisassignedadefaultcost.Thiscommand
overwritesthedefaultof10.
Example
ThisexampleshowshowtosettheOSPFcostto20fortheVLAN1interface:
C3(su)->router(Config)#interface vlan 1
C3(su)->router(Config-if(Vlan 1))#ip ospf cost 20
ip ospf priority
UsethiscommandtosettheOSPFpriorityvalueforrouterinterfaces.Thenoformofthis
commandresetsthevaluetothedefaultof1.
Syntax
ip ospf priority number
no ip ospf priority
Parameters
Defaults
None.
Mode
Interfaceconfiguration:C3(su)‐>router(Config‐if(Vlan1))#
cost Specifiesthecostofsendingapacket.Validvaluesrangefrom1to65535.
number Specifiestherouter’sOSPFpriorityinarangefrom0to255.Defaultvalueis
1.