Chapter 21 Appendix A: Operation Commands
118
Parameters: public_ip the public ip address assigning to the static entry
private_ip the private ip address
Command: >add rate_limit
Syntax: add rate_limit src_ip [prefix] dst_ip [prefix] protocol [src_port] [dst_port]
[dscp] min_rate[-max_rate] type
Explanation: Creates a QoS policy for rate limiting and puts the newly created policy at the tail of the
policy
list for WAN1 interface
Parameters: src_ip the source network IP address; it can be specific IP address or ‘any’
prefix source IP address prefix; required if src_ip is other than 'any'
dst_ip the destination network address; it can be specific IP address or ‘any’
prefix destination IP address prefix; required if dst_ip is other than 'any'
protocol type is IP packet; can be either decimal value like 6, 17 etc
or protocol name like TCP, UDP etc
src_port source port number for TCP or UDP
dst_port destination port number for TCP or UDP
dscp diffserv code point in the DS field of an IP header; range is 0~63
min_rate minimum access rate; should be less than interface bandwidth;
also total requested rate for all the policies in policy list must
be less than interface bandwidth
max_rate maximum access rate; should be less than interface bandwidth
type unit of rate; i.e. kbps or mbps
Syntax: add nat static public_ip private_ip
Explanation: Sets up a single static translation. This command establishes the globally unique IP address
of an inside host as it appears to the outside world, i.e. the feature provides for the need to
forward packets from the outside to a specified inside local address.
Parameters: public_ip the public ip address assigning to the static entry
private_ip the private ip address
Command: >add route
Syntax: add route network_addr subnet_mask gateway_ip output_interface
Explanation: Add a routing static route entry to the IP routing table. The router uses the route entries in
the routing table to determine a static (fixed) route for reaching remote networks or hosts. If
you are not using a dynamic routing protocol, you can set static routes to reach a remote
networks or hosts
.
Parameters: network_addr the network address of the destination
subnet_mask the subnet mask for the destination network
gateway_ip the IP address of the neighbor router port to be used to get to the
destination network
output_interface the interface connecting to the network
Caution: If you use RIP on your routers, use this command carefully to set up static routes.
RIP are dynamic routing protocols that automatically set up network routes. A
combination of static and dynamic routes might cause network problems.
Command: >add sntp server
Syntax: add sntp server ip index
Explanation:
Parameters: index the index number for the server
ip the server ip address