Follow these steps
run
#pppoeconf
Are all your ethernet interface listed above?
if u see then –yes
If u continue with this program, the configuration file /etc/ppp/peers/dsl-provider will be modified. Please make sure that you have a backup copy before saying yes. continue with configurartion?
–yes
most people using popular dialup providers prefer the options ‘noauth and ‘defaultroute’ in their configuration and remove the ‘nodetach’ option. Should I check your configuration file and change these settings where neccessary?
—-yes
next give
username—
normaly [eg]– name@isp.net
you need at least one DNS IP address to resolve the normal host names. Normally your provider sends you addresses of useable servers when the connection is established. Would you like to add these adresses automatically to the list of nameservers in your local /etc/resolv.con file?
–yes
Many providers have routers that do not support TCP packets with a MSS higher than 1460. Usually, outgoing packets have this MSS when they go through one real Ethernet link with the default MTU size (1500). Unfortunately, if you are forwarding packets from other hosts (i.e. doing masquerading) the MSS may be increased depending on the packet size and the route to the client hosts, so your client machines won’t be able to connect to some sites. There is a solution: the maximum MSS can be limited by pppoe. You can find more details about this issue in the pppoe documentation.
If unsure press– yes
–yes
would u like to start connection from boot time
-yes
To coonect run this command
#pon dsl-provider
To disconnect
#poff
Old way
————–
Download RP-PPPoE from this site
www.roaringpenguin.com/products/pppoe
and install it
after installation
run
#pppoe-setup
and follow the simple instructions
USER NAME
>>> Enter your PPPoE user name:anyusername
INTERFACE
>>> Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where ‘n’ is a number.
(default eth0):eth0
MODEM TYPE
We will try to detect if your modem is compliant with RFC 2516
or not. 3COM’s 3CP4130 is *NOT* compliant, for instance.
Searching for a modem at interface eth0…
Found a RFC 2516 compliant modem, congratulations! ![]()
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter ‘no’ (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
>>> Enter the demand value (default no):
DNS
Please enter the IP address of your ISP’s primary DNS server.
If your ISP claims that ‘the server will provide DNS addresses’,
enter ’server’ (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: server
PASSWORD
>>> Please enter your PPPoE password:
>>> Please re-enter your PPPoE password:
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose ‘NONE’ and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 – NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 – STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 – MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
>>> Choose a type of firewall (0-2): 0
** Summary of what you entered **
Ethernet Interface: eth0
User name: anyusername
Activate-on-demand: No
DNS addresses: Supplied by ISP’s server
Firewalling: NONE
To start, stop and to view the status, pppoe-start, pppoe-stop and pppoe-status can be used. I expected the internet to work, since after running pppoe-start, status showed that I am connected. Messages in /var/log/messages also didn’t contain any error. LAN card had acquired IP address 192.168.1.2 from the DHCP of the modem. Modem’s web configuration interface was accessible at http://192.168.1.1/.
pppoe-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:59.95.164.21 P-t-P:59.95.160.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:6727 errors:0 dropped:0 overruns:0 frame:0
TX packets:5687 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:6424287 (6.1 Mb) TX bytes:826896 (807.5 Kb)