www.stephen-tele.com
Show current DHCP rules ---dhcpshow
Show LAN port IP address ---ipshow
Show NAT info ---natshow
Change LAN port IP address ---ip –addr x.x.x.x –mask x.x.x.x
Example:
<config-interface-fastethernet-lan>#ip –addr 192.168.1.10 –mask 255.255.255.0
WAN interface settings
path:
<config-interface-fastethernet-wan>#
[disable]enable dhcp client ---[no]dhcp
[disable]enable pppoe ---[no]pppoe
[disable]enable QOS ---[no]qos
Set default gateway IP ---gateway x.x.x.x
Clear default gateway IP ---no gateway
Set WAN port IP address ---ip –address x.x.x.x -mask x.x.x.x
Example:
<config-interface-fastethernet-wan>#ip
–addr
202.112.241.100
–mask
255.255.255.0
You need to reconnect if the WAN port has been changed.
Show WAN port settings ---show
MMI Filter
path:
<config-mmifilter>#
add filter rule ---entry –start x.x.x.x –end x.x.x.x
Example:
<config-mmifilter>#entry –start 202.112.20.1 –end 202.112.20.255
Delete filter rule ---no entry –start x.x.x.x
Example:
<config-mmifilter>#no entry –start 202.112.20.1
Show filter rule ---show
[disable]enable MMI filter ---[no]start-filter
NAT settings
path:
<config-nat>#
[disable]enable ftp alg ---[no]ftpalg
[disable]enable ipsec alg ---[no]ipsecalg
[disable]enable pptp alg ---[no]pptpalg
Add TCP mapping rule ---tcp-entry –ip x.x.x.x –lanport xxx –wanport xxx
Example:
<config-nat>#tcp-entry –ip 192.168.1.5 –lanport 1720 –wanport 1000
Delete TCP mapping rule ---no entry –ip x.x.x.x –lanport xxx –wanport xxx
Example:
<config-nat>#no tcp-entry –ip 192.168.1.5 –lanport 5060 –wanport 1000
Add UDP mapping rule
---udp-entry –ip x.x.x.x –lanport xxx –wanport xxx
Delete UDP mapping rule ---no udp-entry –ip x.x.x.x –lanport xxx –wanport xxx
Show NAT info
---show
Netservice
path:
<config-netservice>#
Set DNS address ---dns -ip x.x.x.x _domain xxx
Example:
<config-netservice>#dns –ip 202.112.10.36 _domain voip.com
Set alternate DNS address ---alterdns -ip x.x.x.x _domain xxx
Set hostname ---hostname xxx
Set http access port ---http-port xxx