TMS zl Management and Configuration Guide ST.1.1.100226

A-105
Command-Line Reference
Global Configuration Context
router ospf
To configure OSPF settings, enter the following command:
Syntax: router ospf <command option>
The available options for the command are shown in Table A-32.
Table A-32. OSPF Command Options
You can use the no option with several forms of this command:
Enter the following command to disable OSPF:
Syntax: no router ospf
Enter the following command to disable a particular type of route redistri-
bution:
Syntax: no router ospf redistribute [connected | static | rip]
Enter the following command to return the router ID to the default
(127.0.0.1):
Syntax: no router ospf router-id
To enable OSPF and access the OSPF context, enter the following from the
global configuration context:
Syntax: router ospf
See “OSPF Context” on page A-173.
Command Option Purpose
distance <distance> Specifies the administrative distance for OSPF
routes (1–255). The default administrative distance is
110.
metric-type <type 1 | type 2 > Specifies the metric type that is used for routes
redistributed into your OSPF system. (Type 1 includes
the internal and external cost for redistributed
routes, whereas type 2 includes only the external
cost.) The default type is type 2.
router-id <ID> Specifies the IP address that will uniquely identify
the module.
redistribute [connected | static | rip] Specifies the type of routes that the module will
redistribute as OSPF routes. By default, all three
types are redistributed.
default-metric <metric> Specifies the default metric for redistributed routes
(1–65535). The default metric is 10.