lanip p iii.iii.iii.iii [mmm.mmm.mmm.mmm]
Sets the IP address of the CTM-200 gateway's ethernet ports.
p = 0 or 1 | ethernet port to configure (eth0/lan0 or eth1/lan1)
|
iii.iii.iii.iii = 0.0.0.0 to 255.255.255.255 | LAN IP address of the ethernet port in decimal (default: eth0: 192.168.1.1 and eth1: 192.168.2.1)
|
mmm.mmm.mmm.mmm = 0.0.0.0 to 255.255.255.255 | LAN netmask of the ethernet port in decimal (default: 255.255.255.0)
|
Note:
- Special care must be taken when configuring this command, if an improperly configured lanip IP address is entered the ethernet port can be rendered unusable. Before configuring this command it is advisable to make sure that a command console is available via the serial port, or the IP address is known and remote ssh/telnet is enabled to allow the gateway to be accessed wirelessly.
Examples:
- Set the LAN IP address of the eth1 port to 192.168.10.1 :
cmd lanip 1 192.168.10.1
- Set the LAN IP address of the eth1 port to 192.168.2.1 and netmask to 255.255.0.0 :
cmd lanip 1 192.168.2.1 255.255.0.0
See also: LAN