User manual
Appendix A
72
(continued from previous page)
Description:
<pool id>: It ranges from 0 to 4.
<on | off>: The on/off switch of the specified DHCP pool.
net <net address>: The network address of the specified DHCP pool.
netmask <netmask address>: The network mask address of the specified DHCP
pool.
Example:
config ip dhcp pool 0 off
config ip dhcp pool 1 net 10.60.0.0 netmask 255.255.0.0
config ip dhcp pool on
**Note: dhcp server can only configure for IP 0
A.4.3.13 config ip dns
Syntax:
config ip dns {primary < ip address> | secondary <ip address>}
Description:
Configure the primary and secondary DNS server.
Example:
config ip dns primary 206.13.28.12
config ip dns secondary 206.13.29.12
A.4.3.14 config ip nat
Syntax:
config ip nat { <on | off> |
max_table_size <integer> |
{add | del} { type <snat | dnat>
nat_ip <ip address>
[src_net <net address>]
[src_netmask <netmask address>]
[protocol <tcp | udp | icmp>]
[src_port <port # start[:port # end]>]
[dst_port <port #>[:port # end]]
}
}
Description:
Setup the NAT environment.
The Source NAT (snat) is the typical NAT application.
The Destination NAT (dnat) is the virtual server application..
Example:
config ip nat max_table_size 8192
config ip nat add type snat nat_ip 66.100.1.20
config ip nat add type snat src_net 192.168.1.0 src_netmask 255.255.255.0 nat_ip 66.100.1.20
config ip nat add type dnat dst_port 80 nat_ip 192.168.1.1
config ip nat del type dnat nat_ip 192.168.1.1
config ip nat on