![background image](http://html1.mh-extra.com/html/foundry-networks/fastiron-edge-switch-x424/fastiron-edge-switch-x424_manual_2324269385.webp)
Configuring IP
December 2005
© Foundry Networks, Inc.
16 - 35
ethernet [<slotnum>/]<portnum> | ve <num>
[<metric>] [distance <num>]
or
Syntax:
ip route <dest-ip-addr>/<mask-bits>
<next-hop-ip-addr> |
ethernet [<slotnum>/]<portnum> | ve <num>
[<metric>] [distance <num>]
The <dest-ip-addr> is the route’s destination. The <dest-mask> is the network mask for the route’s destination IP
address. Alternatively, you can specify the network mask information by entering a forward slash followed by the
number of bits in the network mask. For example, you can enter 192.0.0.0 255.255.255.0 as 192.0.0.0/.24.
The <next-hop-ip-addr> is the IP address of the next-hop router (gateway) for the route.
If you do not want to specify a next-hop IP address, you can instead specify a port or interface number on the
Layer 3 Switch. The <num> parameter is a virtual interface number. If you instead specify an Ethernet port, the
<portnum> is the port’s number (including the slot number, if you are configuring a Chassis device). In this case,
the Layer 3 Switch forwards packets destined for the static route’s destination network to the specified interface.
Conceptually, this feature makes the destination network like a directly connected network, associated with a
specific Layer 3 Switch interface.
NOTE:
The port or virtual interface you use for the static route’s next hop must have at least one IP address
configured on it. The address does not need to be in the same sub-net as the destination network.
The <metric> parameter can be a number from 1 – 16. The default is 1.
NOTE:
If you specify 16, RIP considers the metric to be infinite and thus also considers the route to be
unreachable.
The
distance
<num> parameter specifies the administrative distance of the route. When comparing otherwise
equal routes to a destination, the Layer 3 Switch prefers lower administrative distances over higher ones, so make
sure you use a low value for your default route. The default is 1.
NOTE:
The Layer 3 Switch will replace the static route if the it receives a route with a lower administrative
distance. See “Changing Administrative Distances” on page 21-29 for a list of the default administrative distances
for all types of routes.
NOTE:
You can also assign the default router as the destination by entering 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx.
Configuring a “Null” Route
You can configure the Layer 3 Switch to drop IP packets to a specific network or host address by configuring a
“null” (sometimes called “null0”) static route for the address. When the Layer 3 Switch receives a packet destined
for the address, the Layer 3 Switch drops the packet instead of forwarding it.
To configure a null static route, use the following CLI method.
To configure a null static route to drop packets destined for network 209.157.22.x, enter the following commands.
FESX424 Router(config)# ip route 209.157.22.0 255.255.255.0 null0
FESX424 Router(config)# write memory
Syntax:
ip route <ip-addr> <ip-mask> null0 [<metric>] [distance <num>]
or
Syntax:
ip route <ip-addr>/<mask-bits> null0 [<metric>] [distance <num>]
To display the maximum value for your device, enter the
show default values
command. The maximum number
of static IP routes the system can hold is listed in the ip-static-route row in the System Parameters section of the
Summary of Contents for FastIron Edge Switch X424
Page 36: ...Foundry Configuration Guide for the FESX FSX and FWSX 2 12 Foundry Networks Inc December 2005...
Page 56: ...Foundry Configuration Guide for the FESX FSX and FWSX 3 20 Foundry Networks Inc December 2005...
Page 70: ...Foundry Configuration Guide for the FESX FSX and FWSX 4 14 Foundry Networks Inc December 2005...
Page 198: ...Foundry Configuration Guide for the FESX FSX and FWSX 8 38 Foundry Networks Inc December 2005...
Page 316: ...Foundry Configuration Guide for the FESX FSX and FWSX 12 26 Foundry Networks Inc December 2005...
Page 350: ...Foundry Configuration Guide for the FESX FSX and FWSX 15 12 Foundry Networks Inc December 2005...
Page 458: ...Foundry Configuration Guide for the FESX FSX and FWSX 18 18 Foundry Networks Inc December 2005...
Page 712: ...Foundry Configuration Guide for the FESX FSX and FWSX 22 32 Foundry Networks Inc December 2005...
Page 760: ...Foundry Configuration Guide for the FESX FSX and FWSX A 34 Foundry Networks Inc December 2005...
Page 796: ...Foundry Configuration Guide for the FESX FSX and FWSX C 18 Foundry Networks Inc December 2005...
Page 820: ...Foundry Configuration Guide for the FESX FSX and FWSX E 10 Foundry Networks Inc December 2005...