Configuring dial-in/dial-out service, Dial-out service, Dial-in service – Moxa Technologies EM-1240-LX User Manual

Page 41: Configuring pppoe, Configuring dial-in/dial-out service -8, Dial-out service -8, Dial-in service -8

Advertising
background image

EM-1240-LX User’s Manual

Configuring EM-1240-LX

4-8

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 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:

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

Configuring PPPoE

PPPoE relies on two widely accepted standards: PPP and Ethernet, which permits the use of
PPPoE(Point-to-Point Over Ethernet).

PPPoE is a specification for connecting users on an Ethernet to the Internet through a common
broadband medium, such as a single DSL line, wireless device or cable modem, used by many
ADSL service providers. All users on the Ethernet share a common connection, so the Ethernet
principles that support multiple users on a LAN combine with the PPP principles, which apply to
serial connections.

y

Create the Connection:

/>pppd pty “pppoe -I <ETHERNET_INTERFACE> -m 1412” user <USER_NAME> password
<USER_PASSWORD>&


<ETHERNET_INTERFACE>: Ethernet card connected to ADSL modem, for example, eth0
<USER_NAME>: User account, for example, [email protected]

Advertising