User`s manual

TC-6110 Linux User's Manual Managing Communications
3-7
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 needed.
6. 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
moxa@MOXA:~# cat /etc/resolv.conf
#
# resolv.conf This file is the resolver configuration file
# See resolver(5).
#
nameserver 168.95.1.1
nameserver 139.175.10.20
#/etc#
Now, you should be able to ise the following command to establish a pppoe connection:
moxa@Moxa:~# pppd eth0
If you want to disconnect the connection, you may use the kill command to kill the pppd process.
moxa@Moxa:~# kill -9 pppd
Notes:
1. If the ADSL modem is connected to the LAN1 port, the connection will be named eth0. If the ADSL
modem is connected to LAN2, it should be named eth1, etc.
2. Type
moxa@Moxa: ~# ifconfig ppp0 to check if the connection is OK. If the connection is OK, you
should see the IP address of ppp0. You may use the ping command to test the IP address.
ppp0 Link encap Point-to-Point Protocol
inet addr 192.76.32.3 P-t-P 129.67.1.165 Mask 255.255.255.0
UP POINTOPOINT RUNNING MTU 1500 Metric 1
RX packets 33 errors 0 dropped 0 overrun 0
TX packets 42 errors 0 dropped 0 overrun 0
Configuring a Point-to-Point Connection
PPP (Point to Point Protocol) is used to run IP (Internet Protocol) and other network protocols over a serial link.
PPP can be used for direct serial connections (using a null-modem cable) over a Telnet link, and links
established using a modem over a telephone line.
Modem/PPP access is almost identical to connecting directly to a network through the TC-6110-LX Ethernet
port. Since PPP is a peer-to-peer system, the TC-6110-LX can also use PPP to link two networks (or a local
network to the Internet) to create a Wide Area Network (WAN).
ATTENTION
T
he following links will give you more information about setting up PPP:
http://tldp.org/HOWTO/PPP-HOWTO/index.html
http://axion.physics.ubc.ca/ppp-linux.html