ZyXEL Communications 4.04 Network Card User Manual


 
Chapter 15 IP Commands
ZyWALL (ZyNOS) CLI Reference Guide
116
15.1.21 Static Route Command Example
The following example configures a static route named Example that sends all traffic for IP
address 2.2.2.2 to a gateway at 192.168.1.9 and has a metric of 3.
ip stroute config metric
<metric>
Sets a static route’s metric number. R
ip stroute config name <site-
name>
Sets the name for a static route. R
ip stroute display [index|buf] Displays the list of static routes or detailed information on a
specified rule.
R
ip stroute load <index> Loads the specified static route rule for editing. R
ip stroute save Saves a rule in the non-volatile memory. R
Table 57 Static Route Commands (continued)
COMMAND DESCRIPTION M
ras> ip stroute load 3
========== Routing Rule in Buffer ==========
Route number : 3
Route Name :
Active : No
Destination IP Address : 0.0.0.0
IP Subnet Mask : 0.0.0.0
Gateway IP Address : 0.0.0.0
Metric : 0
Private : No
ras> ip stroute config name Example
Change Route Name to : Example
ras> ip stroute config destination 2.2.2.2 192.168.1.9 3
Change Destination IP Address to : 2.2.2.2
Change Gateway IP Address to : 192.168.1.9
Change Subnet Mask to : 255.0.0.0
ras> ip stroute config active yes
Setting Active to Yes.
ras> ip stroute save
=========== Routing Rule Setting ===========
Route number : 3
Route Name : Example
Active : Yes
Destination IP Address : 2.2.2.2
IP Subnet Mask : 255.0.0.0
Gateway IP Address : 192.168.1.9
Metric : 3
Private : No