[Top] [Table Of Contents] [Prev] [Next] [Index]
This chapter describes the commands you use to configure the PortMaster when using the Open Shortest Path First (OSPF) routing protocol.
See the PortMaster Routing Guide for OSPF configuration instructions and examples.
Large OSPF routing tables might require the PortMaster to be upgraded to 4MB or 16MB of memory. See your hardware installation guide for more information.
Note ¯
After making changes to an OSPF configuration, you must use the save all and reset ospf commands to ensure that the changes take effect and are retained after PortMaster reboots.
To display OSPF information on the console, use the following commands:
OSPF commands allow you to configure the PortMaster to use the OSPF IP routing protocol.
These commands are used for configuring OSPF routing protocol on the PortMaster.
Note ¯
The order of OSPF configuration is very important. First enable the use of OSPF on the PortMaster, then set priority (and router ID if desired), then set areas and ranges, and finally enable OSPF for the interfaces. See the PortMaster Routing Guide for more information.
add ospf area
This command adds an area to the area tables of the router.
add ospf area Area
An OSPF area is a contiguous set of routers sharing network segments between them. Routers can be in more than one area, in which case they are area border routers. All routers must have at least one interface in area 0.0.0.0, known as the backbone area. Choose 0.0.0.0 if you have only one OSPF area.
Note ¯
Lucent does not currently support the use of virtual links either to create a noncontiguous area or to allow an area border router to be indirectly attached to the backbone.
Command> add ospf area 0.0.0.0
New Area successfully added
set ospf area - page 11-16
delete ospf area
This command deletes an area from the area table of the router.
delete ospf area Area
Command> delete ospf area 0.0.0.0
Area successfully deleted
ifconfig
This command displays configuration values for all interfaces, and is described more fully on page 2-9. Examples of output are given here to illustrate how ifconfig shows OSPF state parameters for the interface, with the identity of the designated router (DR), backup designated router (BDR), and other (OTHER) routers on the network.
ifconfig
In the following example this router is the designated router:
Command> ifconfig
ether0: flags=40106<IP_UP,IPX_DOWN,BROADCAST,PRIVATE,OSPF>
inet 192.168.200.131 netmask ffffff00 broadcast 192.168.200.0
area 192.168.200.0 ospf-state DR mtu 1500
In the following example this router is the backup designated router:
Command> ifconfig
ether0: flags=40016<IP_UP,IPX_DOWN,BROADCAST,OSPF>
inet 192.168.200.130 netmask ffffff00 broadcast 192.168.200.0
area 192.168.200.0 ospf-state BACKUP mtu 1500
In the following example this router is neither the designated router nor the backup designated router:
Command> ifconfig
ether0: flags=40106<IP_UP,IPX_DOWN,BROADCAST,PRIVATE,OSPF>
inet 192.168.200.129 netmask ffffff00 broadcast 192.168.200.0
area 192.168.200.0 ospf-state DROTHER mtu 1500
reset ospf
This command recreates startup conditions with OSPF.
Caution ¯
Resetting OSPF can cause connections to be lost.
reset ospf
Use this command to remove the old MD5 authentication key numbers and secrets, and reset all active neighbors to use the new key numbers and secrets. You can also use this command to restart OSPF routing, allowing any configuration changes to take effect without a reboot of the PortMaster.
Command> reset ospf
Resetting OSPF
save ospf
This command writes any changes in the OSPF area table configuration to the nonvolatile memory of the PortMaster.
save ospf
The save all command can also be used, and is required if you want to save global OSPF information, such as the OSPF ID or the OSPF priority.
Command> save ospf
New configurations successfully saved.
set Ether0 ospf accept-rip
This command allows the propagation of RIP routes learned on this Ethernet interface into OSPF as Type 2 external routes.
set Ether0 ospf accept-rip on|off
When routers run both RIP and OSPF on a network, the RIP routes learned from non-OSPF routers on a network can be translated into OSPF Type 2 external routes. Use this command when you need to enable the propagation of the learned RIP routes into OSPF areas.
However, if the RIP routes learned from the Ethernet interface come from routers that are always running OSPF as well as RIP, leave this command set to the off default to avoid duplicating the route information.
Command> set ether0 ospf accept-rip on
Ether0 OSPF accept-rip changed from off to on
set Ether0 ospf on|off
This command enables or disables the OSPF protocol and allows optional settings on an Ethernet interface.
set Ether0 ospf on|off [cost Number] [hello-interval Seconds]
[dead-time Seconds]
The order of OSPF configuration is important. First set priority (and router ID if desired), then set areas and ranges, and finally enable OSPF for the interfaces.
Note ¯
Make sure you set the same cost value, hello-interval value, and dead-time value for all routers attached to a common network.
Command> set ether0 ospf on cost 2 hello-interval 30 dead-time 90
Ether0 ospf state changed from off to on.
set location|S0|S10|W1|user ospf on|off
This command enables or disables the OSPF protocol and allows optional settings on any network hardwired port, location, or user.
set location Locname|S0|S10|W1|user Username ospf on|off [cost Number] [hello-interval Seconds] [dead-time Seconds] [nbma|point-to-multipoint|wan-as-stub-ptmp]
Note ¯
Enter this command on one line, without any breaks. The line breaks shown here are due to the limited space available.
The order of OSPF configuration is very important. First set priority (and router ID if desired), then set areas and ranges, and finally enable OSPF for the interfaces.
To determine whether to set the port as point-to-multipoint instead of nbma, use the show route command and the show ospf links command. If show routes displays no routes learned over the Frame Relay interface, and show ospf links displays a large number of routes that might be available, configure the interface as point-to-multipoint.
To determine whether to set the port as point-to-multipoint or wan-as-stub-ptmp, use the show ospf links command to check the router LSAs of your neighbors on the Frame Relay network:
Command> set w1 ospf on cost 2 hello-interval 30 dead-time 120 wan-as-stub-ptmp
W1 ospf state changed from off to on.
show ospf links - page 11-24
show routes - page 11-29
set ospf area external
This command allows the propagation of external routes into the OSPF area.
set ospf area Area external on|off
This command lets you define an area as a transit or stub area. Typically, the backbone area (0.0.0.0) is always defined as a transit area.
In contrast, a stub area does not attach to any area except the backbone, and has no exit other than to the backbone area. As a result, external routes are not propagated to stub areas, which must be given a default route to reach external destinations. Use the set ospf area stub-default-cost command to enable an area border router to create and inject default routes to stub areas.
Command> set area 0.0.0.0 external off
Area successfully updated
set area nssa - page 11-14
set ospf area stub-default-cost - page 11-17
set ospf area md5
This command sets the secret for the OSPF area using the Message-Digest Algorithm (MD5) from RSA Data Security, Inc., as defined in RFC 1321.
Caution ¯
Do not overwrite the current key number with the same number; doing so causes the secret to be lost immediately.
set ospf area Area md5 Number String
All routers in the area must have the same key number that is associated with the MD5 secret.
When an MD5 key number and secret are changed, both the old and the new key numbers and secrets remain valid until a PortMaster reboot or a reset ospf command is issued. This feature facilitates the updating of area router information.
Command> set ospf area 10.0.0.0 md5 6 kjtrewhut
Area successfully updated
set ospf area nssa
This command sets an OSPF area as a not-so-stubby area (NSSA), defined in RFC 1587.
set ospf area Area nssa on|off
NSSAs are very similar to stub areas, except that Type 1 and Type 2 external routes can be learned from them. Any external routes learned from an NSSA are translated into Type 1 and Type 2 external routes for the backbone area or other areas that accept external routes. Like stub areas, default costs can be set for NSSAs, and external routes are not advertised into NSSAs.
Command> set area 0.0.0.0 nssa on
Area successfully updated
set area stub-default-cost - page 11-17
set ospf area password
This command sets the password for the OSPF area.
set ospf area Area password String
This command sets a password or key to use when you are communicating to other routers in the area. Not specifying a password indicates that no password is set for the area.
Command> set area 0.0.0.0 password gwKGft5%
Area successfully updated
set ospf area range
This command sets the ranges of network addresses that define an OSPF area and, optionally, the type of route propagation.
set ospf area Area range Prefix/NM [advertise|quiet|off]
This command is used on an area border router. When you use the advertise keyword, a summary link is propagated for that range. If you use the quiet keyword, the summary link is not propagated. You can add multiple ranges for an area by including them in a single command, as shown in the example.
A maximum of eight ranges can be given to a single area.
Note ¯
Make sure that the ranges set with this command include the addresses for all PortMaster interfaces within this OSPF area.
Command> set ospf area 0.0.0.0 range 192.168.1.0/24 range 192.168.200.0/24
Area successfully updated
set ospf area stub-default-cost
This command enables an area border router to create and advertise the default route (0.0.0.0) in a stub area or a not-so-stubby area (NSSA).
set ospf area Area stub-default-cost Number
Stub areas of an autonomous system can be defined with the set ospf area external off command. NSSAs can be defined with the set ospf area nssa on command. External advertisements are not injected into stub areas or NSSAs, and routing to external destinations is based on a default route for each stub area or NSSA. This command enables area border routers to inject the required default route into a stub area or NSSA, but no further.
Command> set area 0.0.0.0 stub-default-cost 4
Area successfully updated
set ospf area external - page 11-12
set ospf area nssa - page 11-14
set ospf enable|disable
This command enables or disables the use of OSPF on the PortMaster.
Note ¯
You must issue the save all and reboot commands immediately after issuing the set ospf enable command, before you can continue with any other OSPF configuration.
set ospf enable|disable
OSPF must be enabled with this command before OSPF can be configured or used on the PortMaster.
Command> set ospf enable
OSPF will be enabled after next reboot
set ospf priority
This command sets the OSPF priority used to determine the designated and backup routers.
set ospf priority Number
The priority must be set for each PortMaster running OSPF. If priorities tie, the router ID is used as a tie breaker, with the lower-number ID selected.
The router with the highest priority on a network segment becomes the designated router. This calculation is performed on each interface separately. For example, on a PortMaster IRX-211, the router might be the designated router on Ether0, but not on Ether1. The router with the second highest priority on a network segment is chosen as the backup designated router. The backup designated router takes over as designated router if the designated router is unable to perform its duties.
Command> set ospf priority 1
OSPF priority changed from 5 to 1
set ospf router-id
This command sets the OSPF router address or ID number.
set ospf router-id Ipaddress|Number
By default, the Ether0 IP address is used. Lucent strongly recommends that you set the default.
You must use the save all and reboot commands for the settings to take effect.
Caution ¯
Be careful when using this feature. When you set a new router ID, the links belonging to an old router ID might take as long as 1 hour to expire, and routing instability can result during the expiration period.
Command> set ospf router-id 192.168.1.1
OSPF router-id changed from 0.0.0.0 to 192.168.1.1
This change will take effect on the next reboot, if a `save global' or
`save all' command issued before then.
set ospf priority - page 11-19
show ospf areas
This command shows information on the configured OSPF areas.
show ospf areas
show table ospf
The command show table ospf generates the same result as show ospf areas.
-
1. This example shows information on a transit area (External Routes = Yes) with simple password authentication and MD5 secret of abcd. MD5 is the Message-Digest Algorithm from RSA Data Security, Inc., as defined in RFC 1321.
-
2. This example shows information on a stub area (External Routes = No) with an MD5 secret of defg, a key ID of 15, a default route 0.0.0.0, and a cost of 3 being injected into the stub area.
-
3. This example shows information on a stub area with no default route, a current MD5 secret of defg, and an MD5 key ID of 15 being injected into the stub area. This router has learned of two other keys since the last reset ospf or reboot command: key ID 5 with a secret of oldkey, and key ID 3 with a secret of olderkey.
-
4. This example shows information on a not-so-stubby area (NSSA) with no default route, a current MD5 secret of research, and an MD5 key ID of 2.
show ospf links
This command shows a summary of the OSPF database with one line per link state advertisement (LSA). By default, router links, network links, summary links, NSSA links, and external links are listed in summary form. For more detailed information use the options separately.
show ospf links [router|network|summary|external|nssa]
show ospf neighbor
This command shows information about routers directly accessible through your network interfaces.
show ospf neighbor
show routes
This command shows the IP routing table. See the information on routing in the PortMaster Configuration Guide.
<a show routes Shows active and static IP routing table>show routes [String|Prefix/NM]
[Top] [Table Of Contents] [Prev] [Next] [Index]
spider@livingston.com
Copyright © 1998, Lucent Technologies. All rights
reserved.