Foundry NetIron M2404C and M2404F Metro Access Switches
Configuring Routing Information (Rev. 03)
Configuring IP Unicast Routing
© 2008 Foundry Networks, Inc.
Page 7 of 48
Argument Description
destination-address
Route IP destination address, in A.B.C.D format – used in
conjunction with
netmask
to define a network address.
netmask
Destination network mask, in A.B.C.D format – used in conjunction
with
destination-address
.
destination-prefix
Route destination prefix, in A.B.C.D/M
format.
A.B.C.D
The gateway IP address.
null
Disables the gratuitous forwarding for destinations that are missing
from the routing table.
distance
(Optional). Administrative distance assigned for this route, in the
range <1-255>. Lowest-distance route is preferred.
Distributing Static Routes
The
redistribute static
command, in OSPF Router Configuration mode, advertises the static routes.
The
no
form of the command removes the static routes distribution.
By default, static routes are not advertised.
Command Syntax
device-name
(config-router)#
redistribute static
device-name
(config-router)#
no redistribute static
Example
The static routes are advertised by OSPF:
device-name
(config)#
router ospf
device-name
(config-router)#
redistribute static
device-name
(config-router)#
no redistribute static
Displaying the Static Routes
The
show ip route
command, in Privileged (Enable) mode, displays the static and directly
connected (via configured IP interfaces) routes.
Command Syntax
device-name
#
show ip route
[
connected
|
kernel
|
ospf | static
]
Argument Description
connected
(Optional). Displays information about all routes to directly connected
networks.
kernel
(Optional). Displays the kernel routes.
ospf
(Optional). Displays the OSPF routes.
static
(Optional). Displays global static route information.