Moxa UC-7110-LX [30/46] Connect using a modem

Moxa UC-7122-T-CE [30/46] Connect using a modem
UC-7101/7110/7112 Software User’s Manual Configuring UC-7101/7110/7112
4-8
Enabling NAT at Bootup
In most real world situations, you should use a simple shell script to enable NAT when the
UC-7101/7110/7112 boot 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:
Without username and password, use:
/>pppd connect chat –v’ /dev/ttyM0 38400 crtscts&
With username and password, use:
/>pppd connect chat –v’ user xxxxx password xxxxx /dev/ttyM0 38400 crtscts&
Connect Using a Modem:
Use:
/>pppd connect chat –v ATDT<phone_number> CONNECTuser xxxxx password xxxxx
/dev/ttyM0 38400 crtscts&
ATTENTION
If dial out fails, the pppd connection will be blocked, and the 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:
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:
Use:
/>pppd connect chat –v AT CONNECT<local_IP_Address>:<Remote_IP_Address>
/dev/ttyM0 38400 crtscts login auth

Содержание

Похожие устройства

Скачать