To assign a name to a static route, enter commands such as the following.
device(config)# ip route 10.22.22.22 255.255.255.255 eth 1/1/1 name abc
OR
device(config)# ip route 10.22.22.22 255.255.255.255 10.1.1.1 name abc
Syntax:
[no] 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
]
Enter the static route name for
name
string
. The maximum length of the name is 128 bytes.
The output of the
show
commands displays the name of a static IP route if there is one assigned.
The
show run
command displays the entire name of the static IP route. The
show ip static route
command displays an asterisk (*) after
the first twelve characters if the assigned name is thirteen characters or more. The
show ipv6 static route
command displays an asterisk
after the first two characters if the assigned name is three characters or more.
When displayed in
show run
, a static route name with a space in the name will appear within quotation marks (for example, "brcd route").
Changing the name of a static IP route
To change the name of a static IP route, enter the static route as configured. Proceed to enter the new name instead of the previous
name. Refer to the following example.
Static IP route with the original name "abc":
device(config)# ip route 10.22.22.22 255.255.255.255 10.1.1.1 name abc
Change the name of "abc" to "xyz":
device(config)# ip route 10.22.22.22 255.255.255.255 10.1.1.1 name xyz
In this example, "xyz" is set as the new name of the static IP route.
Removing a name or a static route
When an IP route has a name, the
no
form of the full ip route command removes the name. Use the
no
form of the command a second
time to remove the route.
1. Enter configuration mode.
device# configure terminal
device(config)#
2. Enter
no ip route
followed by the full route designation.
device# configure terminal
device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1 name xyz
This example removes only the name of the route.
3. If necessary, repeat the
no ip route
command with the full route designation.
device(config)# no ip route 10.22.22.22 255.255.255.255 10.1.1.1
This example repeats the previous route. Because the route has no name, the command removes the designated static route.
4. Enter the
write memory
command to save the change to the IP routing table.
Static routes configuration
Brocade FastIron Layer 3 Routing Configuration Guide
53-1003903-04
179
Summary of Contents for ICX 7250 series
Page 2: ...Brocade FastIron Layer 3 Routing Configuration Guide 2 53 1003903 04...
Page 16: ...Brocade FastIron Layer 3 Routing Configuration Guide 16 53 1003903 04...
Page 20: ...Brocade FastIron Layer 3 Routing Configuration Guide 20 53 1003903 04...
Page 36: ...Brocade FastIron Layer 3 Routing Configuration Guide 36 53 1003903 04...
Page 124: ...Brocade FastIron Layer 3 Routing Configuration Guide 124 53 1003903 04...
Page 174: ...Brocade FastIron Layer 3 Routing Configuration Guide 174 53 1003903 04...
Page 188: ...Brocade FastIron Layer 3 Routing Configuration Guide 188 53 1003903 04...
Page 202: ...Brocade FastIron Layer 3 Routing Configuration Guide 202 53 1003903 04...
Page 470: ...Brocade FastIron Layer 3 Routing Configuration Guide 470 53 1003903 04...