ZyXEL Communications 3.1 Security Camera User Manual


 
Chapter 8 Route
ZyWALL (ZLD) CLI Reference Guide
106
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 next-hop interface ge1. Then use the show command to display the
setting.
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.
The following command deletes a specific static IPv6 route.
The following command deletes all static IPv6 routes with the same prefix.
[no] ip route control-virtual-server-rules activate Gives static routes priority over NAT virtual server
rules (1-1 SNAT). It also automatically gives policy
routes priority over NAT virtual server rules. Use the
no command to give NAT virtual server rules priority
over static routes.
show ip route control-virtual-server-rules Displays whether or not static routes have priority
over NAT virtual server rules (1-1 SNAT).
Table 46 Command Summary: Static Route (continued)
COMMAND DESCRIPTION
Router(config)# ip route 10.10.10.0 255.255.255.0 ge1
Router(config)#
Router(config)# show ip route-settings
Route Netmask Nexthop Metric
===========================================================================
10.10.10.0 255.255.255.0 ge1 0
Router(config)# ip6 route 2002:22:22:34::/64 ge2 1
Router(config)# ip6 route 2002:22:22:34::/64 2001:12::12 2
/* link-local gateway bind on interface */
Router(config)# ip6 route 2002:22:22:34::/64 fe80::1:2 ge2 2
Router(config)# show ip6 route-settings
No. Route Prefix Length
Nexthop Metric
========================================================================
1 2002:22:22:34:: 64
2001:12::12 2
2 2002:22:22:34:: 64
ge2 1
Router(config)# no ip6 route 2002:22:22:34::/64 2001:12::12
Router(config)# no ip6 route 2002:22:22:34::/64