![Brocade Communications Systems ICX 7250 series Скачать руководство пользователя страница 177](http://html1.mh-extra.com/html/brocade-communications-systems/icx-7250-series/icx-7250-series_configuration-manual_2817203177.webp)
When you configure a static IP route, you specify the destination address for the route and the next-hop gateway or Layer 3 interface
through which the Layer 3 device can reach the route. The device adds the route to the IP route table. In this case, Switch A knows that
207.95.6.157 is reachable through port 1/1/2, and also assumes that local interfaces within that subnet are on the same port. Switch A
deduces that IP interface 207.95.7.7 is also on port 1/1/2.
The software automatically removes a static IP route from the IP route table if the port used by that route becomes unavailable. When the
port becomes available again, the software automatically re-adds the route to the IP route table.
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
[
vrf
vrf-name
]
dest-ip-addr
dest-mask
{
next-hop-ip-addr
|
ethernet
unit
/
slot
/
port
|
ve
num
|
tunnel
tunnel-id
}
[
metric
] [
distance
num
] [
name
static-route-name
] [
tag
tag-num
]
or
Syntax:
ip route
[
vrf
vrf-name
]
dest-ip-addr
/
mask-bits
{
next-hop-ip-addr
|
ethernet
unit
/
slot
/
port
|
ve
num
|
tunnel
tunnel-id
}
[
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 specify a port or interface number. The
ve
keyword and
num
variable
represent a virtual interface. As an option, you can specify a tunnel as a next-hop gateway. As another option, you can 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.
NOTE
If you specify a tunnel as a next-hop in a static route that designates a non-default VRF as the destination, the tunnel must
already exist before the route can be created.
The
metric
variable can be a number from 1 through 16. The default is 1.
Static routes configuration
Brocade FastIron Layer 3 Routing Configuration Guide
53-1003903-04
177
Содержание ICX 7250 series
Страница 2: ...Brocade FastIron Layer 3 Routing Configuration Guide 2 53 1003903 04...
Страница 16: ...Brocade FastIron Layer 3 Routing Configuration Guide 16 53 1003903 04...
Страница 20: ...Brocade FastIron Layer 3 Routing Configuration Guide 20 53 1003903 04...
Страница 36: ...Brocade FastIron Layer 3 Routing Configuration Guide 36 53 1003903 04...
Страница 124: ...Brocade FastIron Layer 3 Routing Configuration Guide 124 53 1003903 04...
Страница 174: ...Brocade FastIron Layer 3 Routing Configuration Guide 174 53 1003903 04...
Страница 188: ...Brocade FastIron Layer 3 Routing Configuration Guide 188 53 1003903 04...
Страница 202: ...Brocade FastIron Layer 3 Routing Configuration Guide 202 53 1003903 04...
Страница 470: ...Brocade FastIron Layer 3 Routing Configuration Guide 470 53 1003903 04...