EM-1220 LX User’s Manual
Configuring the EM-1220-LX
Enabling NAT at Bootup
In most real world situations, you should use a simple shell script to enable NAT when the
EM-1220-LX boots up, as indicated by the following:
1.
setting iptables
2.
iptables-save > /home/xxx.file (xxx.file is the user defined file name)
3.
vi /etc/rc
4.
Append echo 1 > /proc/sys/net/ipv4/ip_forward
5.
Append iptables-restore /home/xxx.file (xxx.file is the user defined file name)
Configuring Dial-in/Dial-out Service
Dial-out Service
Direct cable connection:
y
Without
username and password, use:
/>pppd connect ‘chat –v’ /dev/ttyM0 38400 crtscts&
y
With
username and password, use:
/>pppd connect ‘chat –v’ user xxxxx password xxxxx /dev/ttyM0 38400 crtscts&
Connect Using a Modem:
y
Use:
/>pppd connect ‘chat –v ATDT<phone_number> CONNECT’ user xxxxx password xxxxx
/dev/ttyM0 38400 crtscts&
ATTENTION
If dial out fails, the pppd connection will be blocked, and users will need to shut down pppd, and
re-dial. Since the return value is always OK (regardless of whether or not the connection is
blocked), the API must be set up to check the network status to determine if the connection is
complete.
Dial-in Service
Direct cable connection:
y
Use either of the following:
/>pppd <Local_IP_Address>:<Remote_IP_Address> /dev/ttyM1 38400 local crtscts
or
/>pppd <Local_IP_Address>:<Remote_IP_Address> /dev/ttyM0 38400 local crtscts login
auth
Connect Using a Modem:
y
Use:
/>pppd
connect
‘chat
–v
AT
CONNECT’
<local_IP_Address>:<Remote_IP_Address>
/dev/ttyM0
38400 crtscts login auth
4-8