
Configuring a static IP route
To configure an IP static route with a destination address of 10.0.0.0 255.0.0.0 and a next-hop router IP address of 10.1.1.1, enter a
command such as the following.
device(config)# ip route 10.0.0.0 255.0.0.0 10.1.1.1
To configure a static IP route with an Ethernet port instead of a next-hop address, enter a command such as the following.
device(config)# ip route 10.128.2.69 255.255.255.0 ethernet 1/4/1
The command in the previous example configures a static IP route for destination network 10.128.2.69/24. Since an Ethernet port is
specified instead of a gateway IP address as the next hop, the Layer 3 switch always forwards traffic for the 10.128.2.69/24 network to
port 1/4/1. The command in the following example configures an IP static route that uses virtual interface 3 as its next hop.
device(config)# ip route 10.128.2.71 255.255.255.0 ve 3
Syntax:
ip route
dest-ip-addr
dest-mask
{
next-hop-ip-addr
|
ethernet
unit
/
slot
/
port
|
ve
num
} [
metric
] [
distance
num
] [
name
static-route-name
] [
tag
tag-num
]
or
Syntax:
ip route
dest-ip-addr
/
mask-bits
{
next-hop-ip-addr
|
ethernet
unit
/
slot
/
port
|
ve
num
} [
metric
] [
distance
num
] [
name
static-route-name
] [
tag
tag-num
]
The
dest-ip-addr
variable is the route destination. The
dest-mask
variable is the network mask for the route 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 10.0.0.0 255.255.255.0 as 10.0.0.0/.24.
The
next-hop-ip-addr
variable 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. The
num
variable is a virtual
interface number. You can instead specify an Ethernet port. In this case, a Layer 3 switch forwards packets destined for the static route
destination network to the specified Layer 3 switch 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 next hop must have at least one IP address configured on it. The address
does not need to be in the same subnet as the destination network.
The
metric
variable can be a number from 1 through 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
variable 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.
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 IP parameters - Layer 3 switches
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04
65
Summary of Contents for FastIron SX 1600
Page 2: ...FastIron Ethernet Switch Layer 3 Routing 2 53 1003627 04 ...
Page 16: ...FastIron Ethernet Switch Layer 3 Routing 16 53 1003627 04 ...
Page 20: ...FastIron Ethernet Switch Layer 3 Routing 20 53 1003627 04 ...
Page 142: ...FastIron Ethernet Switch Layer 3 Routing 142 53 1003627 04 ...
Page 150: ...FastIron Ethernet Switch Layer 3 Routing 150 53 1003627 04 ...
Page 200: ...FastIron Ethernet Switch Layer 3 Routing 200 53 1003627 04 ...
Page 214: ...FastIron Ethernet Switch Layer 3 Routing 214 53 1003627 04 ...
Page 350: ...FastIron Ethernet Switch Layer 3 Routing 350 53 1003627 04 ...
Page 476: ...FastIron Ethernet Switch Layer 3 Routing 476 53 1003627 04 ...
Page 588: ...FastIron Ethernet Switch Layer 3 Routing 588 53 1003627 04 ...