Moxa Technologies EM-1240-LX User Manual

Page 21

Advertising
background image

EM-1240-LX User’s Manual

Getting Started

2-5

3. You may also configure the EM-1240-LX to request IP addresses from a DHCP server. In this

case, use the sharp sign (#) to comment out one or both “ifconfig” lines, and then add the
setting about the “dhcpcd” into the rc file as below.

dhcpcd -p -a eth0 &
dhcpcd -p -a eth1 &

Note that the EM-1240-LX will send out DHCP broadcast packets, and then get the IP
addresses from the first DHCP server that responds.

4. Issue the vi “write” command to save the file, and then reboot. Since the EM-1240-LX only

reads the “rc” file when booting up, you must reboot (e.g., by issuing the vi reboot
command) for the changes to take affect.

ATTENTION

You may reset the IP address immediately by issuing the command

ifconfig eth0 192.168.5.127

(This will change the IP address of LAN1.) Issuing this command will however NOT update the
“rc” file in the EM-1240-LX’s flash memory, so the next time you reboot, the IP address will
revert to its previous value.

Advertising