User manual
Appendix A
68
A.4.1.9 config
Syntax:
config {interface … | ip … | save | system …}
Description:
Configure commands.
Example:
config interface hdlc1 encap ppp
A.4.2 Interface Commands
A.4.2.1 show interface
Syntax:
show interface {summary | <if name>}
Description:
Display interface information.
<if name>=eth1: Ethernet port information.
<if name>=hdlc1 WAN port information.
Example:
show interface summary
show interface eth1
show interface hdlc1
A.4.2.2 config interface
Syntax:
config interface <if name> <on | off>
Description:
Enable or disable interface.
Example:
config interface hdlc1 off
A.4.2.3 config interface <if name> ip <#>
Syntax:
config interface <if_name> ip <#>
{[addr <ip address>] [netmask <netmask address>] [mode static] | mode dhcp }
Description:
Setup interface IP address and netmask.
<if name>=eth1, hdlc1 ; <#>= 0~4 (up to 5 IP)
If the mode is dhcp, this interface will perform in DHCP client mode;
if the mode is static or ignore, it is static IP mode.
Example:
config interface eth1 ip 0 addr 192.168.100.1 netmask 255.255.255.0
config interface hdlc1 ip 0 addr 192.168.200.1 netmask 255.255.255.0
config interface eth1 ip 0 mode dhcp