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.
view mysql default encoding format show variables like “character%”; If the reality-bash
1. /The root partition is a mandatory partition, partitioned according to your actual situation. 2.
Requirement Description Set SNAT policy using iptables Make hosts on 192.168.100.0/24 network segmen
Faced with powerful Microsoft and early NetWare, Linux server operating system can be said to be a r
Linux planning tasks Introduction
Getting Started with Linux Programming - Threading
How to convert the internal code of text file under Linux operating system
Linux environment variable settings summary
Cp: omitting directory Error explanation and solution
Linux vmware tools under VMware Workstation VM
View file encoding, file encoding format conversion and file name encoding conversion under Linux
Centos FTP server erection and configuration tutorial
Why is it time to modify the Linux system with the date command?
Experts share 70 basic skills of Windows 7 (6)
How many thousands of notebooks have you seen?
How to set up QQ group administrator
Simple file exchange method for virtual machine and host under Linux
Microsoft: Win10 features and features for free upgrade
How to view the memory size occupied by Aero effects in Win7
The solution to the fake crash after entering the XP system
Convenient settings for the Windows 7 "Send to" menu
2016 year-round calendar, let the calendar give you a good look