Chapter 8 Route
Table 46 Command Summary: Static Route (continued)
COMMAND | DESCRIPTION |
[no] ip route | Gives static routes priority over NAT virtual server |
| rules |
| routes priority over NAT virtual server rules. Use the |
| no command to give NAT virtual server rules priority |
| over static routes. |
|
|
show ip route | Displays whether or not static routes have priority |
| over NAT virtual server rules |
8.4.1 Static Route Commands Examples
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 |
The following commands set and show three examples of static IPv6 routes for traffic destined for IPv6 addresses with prefix 2002:22:22:34::. The first route sends the traffic out through interface ge2 and uses metric 1. The second sends the traffic to gateway 2001:12::12 and uses metric 2.
The third sends the traffic to the fe80::1:2 link local gateway on interface ge2 and uses metric 2.
Router(config)# ip6 route 2002:22:22:34::/64 ge2 1 Router(config)# ip6 route 2002:22:22:34::/64 2001:12::12 2 /*
Router(config)# show ip6 | Prefix | Length |
No. Route | ||
Nexthop | Metric |
|
========================================================================
1 | 2002:22:22:34:: | 64 |
2 | 2001:12::12 | 2 |
2002:22:22:34:: | 64 | |
| ge2 | 1 |
The following command deletes a specific static IPv6 route.
Router(config)# no ip6 route 2002:22:22:34::/64 2001:12::12
The following command deletes all static IPv6 routes with the same prefix.
Router(config)# no ip6 route 2002:22:22:34::/64
106 |
|
ZyWALL (ZLD) CLI Reference Guide | |
|
|