Moxa Technologies 331 User Manual Page 49

  • Download
  • Add to my manuals
  • Print
  • Page
    / 69
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 48
Moxa C Programmable RTU Controllers Managing Communications
4-15
4. Edit the file /etc/ppp/pap-secrets and add the following:
“username@hinet.net”*“password”*
“username@hinet.net” is the username obtained from the ISP to log in to the ISP account.
“password” is the corresponding password for the account.
5. Edit the file /etc/ppp/options and add the following line:
plugin pppoe
6. Add one of the two files: /etc/ppp/options.eth0. The choice depends on which LAN is connected to the
ADSL modem. If you use LAN1 to connect to the ADSL modem, then add /etc/ppp/options.eth0. The file
context is shown below:
Type your username (the one you set in the /etc/ppp/pap-secrets and /etc/ppp/chap-secrets files)
after the “name” option. You may add other options as desired.
7. Set up DNS
If you are using DNS servers supplied by your ISP, edit the file
/etc/resolv.conf by adding the following lines of code:
nameserver ip_addr_of_first_dns_server
nameserver ip_addr_of_second_dns_server
For example:
nameserver 168.95.1.1
nameserver 139.175.10.20
8. Use the following command to create a pppoe connection:
pppd eth0
The eth0 is what is connected to the ADSL modem LAN port. The example above uses LAN1.
9. Type ifconfig ppp0 to check if the connection is OK or has failed. If the connection is OK, you will see
information about the ppp0 setting for the IP address. Use ping to test the IP.
10. If you want to disconnect it, use the kill command to kill the pppd process.
PPP over Cellular
It is recommend to use the callular API in the RTU controller’s Toolchain; however, the pppd also supports
cellular network with following examples,
Create a chat configuration cellular-cmdat /etc/ppp/peers
Page view 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 68 69

Comments to this Manuals

No comments