Layer 3 Routing Commands 1659ip ospf costUse the ip ospf cost command in Interface Configuration mode to configurethe cost on an OSPF interface. Use the no form of the command to returnthe cost to the default value.Syntaxip ospf cost interface-costno ip ospf cost• interface-cost — Specifies the cost (link-state metric) of the OSPFinterface. (Range: 1–65535)Default Configuration10 is the default link-state metric configuration.Command ModeInterface Configuration (VLAN) mode.User GuidelinesThis command has no user guidelines.ExampleThe following example configures the cost on the OSPF interface at 5.console(config-if-vlan1)#ip ospf cost 5ip ospf database-filter all outUse the ip ospf database-filter all out command in Interface Configurationmode to prevent flooding of OSPF LSAs on an interface.Use the no form of the command to enable flooding of LSAs on an interface.Syntaxip ospf database-filter all outno ip ospf database-filter all out