Accton Technology ES4626 Switch User Manual


 
405
Command: router id <router_id>
no router id
Function: Configure the ID number for the layer3 switch running OSPF; the “no router
id” command cancels the ID number.
Parameter: <router_id> is the ID number for the layer3 switch in dotted decimal format.
Default: No layer3 switch ID number is configured by default, an address from the IP
addresses of all the interfaces is selected to be the layer3 switch ID number.
Command mode: Global Mode
Usage Guide: OSPF use the layer3 switch ID number as a unique identity for the layer3
switch in the autonomous system, usually the address of an interface running OSPF is
selected to be the layer3 switch ID number ES4626/ES4650 layer3 switch used the first
UP layer3 interface in the switch as the router id by default. If no IP address is configured
in all interfaces of the layer3 switch, this command must be used to specify the layer3
switch ID number, otherwise OSPF would not work. Changes to a layer3 switch ID number
will apply only after the restart of OSPF.
Example: Configure the ID of the layer3 switch to 10.1.120.1.
Switch(Config)#router id 10.1.120.1
15.4.2.2.19 router ospf
Command: router ospf
no router ospf
Function: Enable OSPF protocol and enter OSPF mode after enabling; the “no router
ospf” command disables OSPF protocol.
Default: OSPF is disabled by default.
Command mode: Global Mode
Usage Guide: Use this command to enable or disable OSPF protocol. Configurations to
OSPF will only take effect when OSPF is enabled.
Example: Enable OSPF on the switch.
Switch(Config)#router ospf
15.4.2.2.20 stub cost
Command: stub cost <cost> area <area_id >
no stub area <area_id >
Function: Set an area to STUB area; the “no stub area <area_id >” command cancels
the setting.
Parameter: <cost> is the default route cost for the STUB area, ranging from 1 to 65535;
<area_id > is the area number of the STUM area, ranging from 1 to 4,294,967,295.
Default: No STUB area is configured by default.