Install ADSL Internet Dialer under SUSE Linux

  
                  

People who have used ADSL know that there is a software called WinPPoE on WINDOWS. This software can easily connect to ISP and access INTERNET. Do you want to know how to access the Internet via ADSL on Linux? I just tried to succeed, and now I can't wait to tell you: I am using SuSe Linux 6.4. The reason for choosing it is that it has rich hardware support and easy configuration.

1,Packege

SuSe 6.4 already includes pppoed-0.46-7.

2, set NIC and gateway

# ifconfig eth0 mtu 1492 (No Set any IP address for eth0) and make sure your default gateway is empty.

3. Add the username and password to /etc/ppp/pap-secrets and /etc/ppp/chap-secrets.

should look like this: "[email protected]" * "mypassword"


4, edit /etc/resolve.conf

nameserver 202.96.134.133

nameserver 202.96.128.68


5, add the following line in /etc/modules.conf:

alias char-major-144 pppox

(actually this line has been in my Suse There are)


6, modify the file /etc/ppp/options.

# general options
idle 600
# this is a must user < BR> [email protected]
sync
local
nocrtscts
noauth
usepeerdns
mru 1490
mtu 1490
# this is recommended
defaultroute
hide-password
nodetach
#
# switch off all compressions
# this is a must
noaccomp
nopcomp
# this is recommended
novj
Novjccomp
Nobsdcomp
nodeflate
noccp

Note: The login name applies to your own.

7, run /usr/sbin/pppoed to start the connection.

Note: Only the root user can initiate a connection.

If you are using a network device name other than eth0, you need to start

/usr/sbin/pppoed -I ethX in this way, where X is the NIC number.

8, check,

test connection with tail -f /var/log/messages to track and diagnose the connection status of ADSL, use ifconfig to view the IP address assigned to your ppp0 device If the address assignment is successful, the connection is established. Use the route command to view the gateway address assigned to you by the dial-in server. Use ping www.163.com should be able to ping, if not, it may be your DNS settings.

9, proxy LAN access and then install a network card,

Set the IP address to 192.168.1.1; Add an IP forwarding rule:

/sbin/ipchains -A forward -j MASQ -s 192.168.1.0/24 -d 0.0.0.0/0

The client in the LAN sets 192.168.1.1 as the default gateway, and can access the Internet through this LINUX computer.

The above is my experience on Suse Linux. On Redhat, you can refer to: http://www.roaringpenguin.com/pppoe.html, I have tried it, as long as /etc/ppp The contents of /options are the same as those in Suse and should be successful. You may wish to try it.

Copyright © Windows knowledge All Rights Reserved