
Chapter 7 Route
Figure 10 Example of Static Routing Topology
7.4 Static Route Commands
The following table describes the commands available for static route. You must use the configure terminal command to enter the configuration mode before you can use these commands.
Table 26 Command Summary: Static Route
COMMAND | DESCRIPTION |
[no] ip route {w.x.y.z} {w.x.y.z} | Sets a static route. The no command disables a |
{interfacew.x.y.z} [<0..127>] | static route. |
ip route replace {w.x.y.z} {w.x.y.z} | Changes an existing route’s settings. |
{interfacew.x.y.z} [<0..127>] with {w.x.y.z} |
|
{w.x.y.z} {interfacew.x.y.z} [<0..127>] |
|
show ip | Displays static route information. Use show ip |
| route to see learned route information. |
show ip route | Displays whether or not static routes have priority |
| over NAT virtual server rules |
7.4.1 Static Route Commands Example
The following command sets a static route with IP address 10.10.10.0 and subnet mask 255.255.255.0 and with the
Router(config)# | ip route 10.10.10.0 255.255.255.0 ge1 | ||
Router(config)# | show ip |
| |
Router(config)# | Metric | ||
Route | Netmask | Nexthop |
===========================================================================
10.10.10.0 | 255.255.255.0 | ge1 | 0 |
70 |
| |
NXC CLI Reference Guide |
| |
|
|
|