LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-25-2007, 06:22 AM   #1
lali.p
Member
 
Registered: Jan 2007
Distribution: Slackware 11.0
Posts: 141

Rep: Reputation: 16
Running internet on Slackware using PPPOE


hi i want to run internet on Slackware 11.0 using pppoe(i live in India and use BSNL dataone Connection)My router is SmartAX MT841.
Here are the steps i followed:
1)Bought a Dlink DFE-520 tx ethernet card(USB wont work i guess) and installed it in pci slot.
Slackware recognises it(and i guess it installed it also) and when i use the command lsmod i get the followeing output:



root@darkstar:~# lsmod
Module Size Used by Not tainted
ipt_LOG 3384 3 (autoclean)
iptable_filter 1644 1 (autoclean)
ip_tables 12096 2 [ipt_LOG iptable_filter]
bsd_comp 4120 0 (autoclean)
ppp_synctty 5064 0 (unused)
ppp_async 6656 1
ppp_generic 19460 3 [bsd_comp ppp_synctty ppp_async]
slhc 4496 0 [ppp_generic]
snd-seq-oss 23104 0 (unused)
snd-seq-midi-event 3208 0 [snd-seq-oss]
snd-seq 33552 2 [snd-seq-oss snd-seq-midi-event]
snd-seq-device 3716 0 [snd-seq-oss snd-seq]
snd-pcm-oss 28928 0 (unused)
snd-mixer-oss 11928 0 [snd-pcm-oss]
snd-hda-intel 7964 0
snd-hda-codec 108752 0 [snd-hda-intel]
snd-pcm 52804 0 [snd-pcm-oss snd-hda-intel snd-hda-codec]
snd-timer 13168 0 [snd-seq snd-pcm]
snd 34304 0 [snd-seq-oss snd-seq-midi-event snd-seq snd-seq-device snd-pcm-oss snd-mixer-oss snd-hda-intel snd-hda-codec snd-pcm snd-timer]
soundcore 3300 6 [snd]
snd-page-alloc 4980 0 [snd-seq-oss snd-seq snd-seq-device snd-mixer-oss snd-hda-intel snd-pcm snd-timer snd]
pciehp 64340 0 (unused)
pci_hotplug 15204 1 [pciehp]
uhci 23804 0 (unused)
ehci-hcd 17644 0 (unused)
usbcore 56812 1 [uhci ehci-hcd]
via-rhine 11824 1
mii 2304 0 [via-rhine]
crc32 2880 0 [via-rhine]
pcmcia_core 39492 0
ide-scsi 9392 0
agpgart 45092 7
root@darkstar:~#

via rhine is the module here.
NoW i did the following
root@darkstar:~# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup. First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good! Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name (default my.username):

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):

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: 61.1.96.69
and second dns as
61.1.96.71

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): 1

** Summary of what you entered **

Ethernet Interface: eth0
User name: my.username
Activate-on-demand: No
DNS addresses: 61.1.96.69
Firewalling: STANDALONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)



Congratulations, it should be all set up!

Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring
it down. Type 'pppoe-status' to see the link status.
root@darkstar:~# pppoe-start
. Connected!
root@darkstar:~# ping www.google.com
ping: unknown host www.google.com
root@darkstar:~# pppoe-status
pppoe-status: Link is up and running on interface ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:86.127.30.194 P-t-P:212.93.137.170 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:213 (213.0 b) TX bytes:69 (69.0 b)

The real problem is if i use the command
ifconfig eth0 192.168.1.1
and the use pppoe-start
i can use internet
but when i restrat and agaun use ppoe-start without changing the ip of ethernet it connects but doent ping any site
i mean everytime i start i have to change the ip of eth0 from the previous one then only internet runs.

I am very frustrated plzzzzzzzzz help ME
 
Old 02-25-2007, 07:15 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
I had exactly the same problem with Slackware 11, and have had it with some other ones too. Not sure what causes it; I didn't set the ip address of eth0 to anything, though, I basically did a
Code:
pppoe-stop
ifconfig eth0 down
pppoe-start
which worked on me. I also tried manually running dhcpcd (dhclient on some distributions) but it didn't seem to work; apparently it had run correctly, but somehow had not set up the ip address of eth0 correctly anyway. I also tried tweaking the "network configuration" and tried setting eth0's ip address manually (192.168.1.1), to use dhcp to discover it, and even leave blank -- none of these worked, the only solution that gave me a working connection was to use dhcp to get eth0 network address, and then make sure pppoe is not active, ifconfig eth0 down and after that re-start pppoe. I also asked a whole lot of people, in Slack's irc channel too, but nobody was able to help me. After some time I got bored and just added the lines I mentioned above to my init script, so when the machine booted, ifconfig made sure eth0 was not active and only then established the pppoe connection; works now.

If you have any fresh ideas or find a solution, or even a sane reason for this, please share it with the rest of us -- I'd be thankful myself.
 
Old 02-25-2007, 11:00 AM   #3
lali.p
Member
 
Registered: Jan 2007
Distribution: Slackware 11.0
Posts: 141

Original Poster
Rep: Reputation: 16
Take a look at man pppoe

thanks for your reply.it works even here.But as u said that you made sure that etho is down before starting pppoe but when i looked at pppoe man it gives the folowing:
DESCRIPTION
pppoe is a user-space client for PPPoE (Point-to-Point Protocol over
Ethernet) for Linux and other UNIX systems. pppoe works in concert
with the pppd PPP daemon to provide a PPP connection over Ethernet, as
is used by many DSL service providers.

OPTIONS
-I interface
The -I option specifies the Ethernet interface to use. Under
Linux, it is typically eth0 or eth1. The interface should be
"up" before you start pppoe, but should not be configured to
have an IP address.



Now the thing is that man specifies that eth shd be up but NOT configured to have an ip.Isn't it strange.
I am a real n00b and just switched to Slackware from XP (and i have no prior experience on LINUX ever) 5 days ago and for past 2 days i've spent almost 14 hours to just get an internet connection working(firts i tried using USB modem but then bought NIC)

Now after using ifconfig eth0 and then using ifconfig -a
it just shows output of loopback and not of NIC
but when i start pppoe after that and then use the command ifconfig -a it shows an ip assigned to eth0 as well.
Also running ifconfig -a just after startup shows an ip for eth0.

Ok anyway i was able to run internet although i could not understand really HOW it worked out.
So could you please tell what is good for a beginner i mean any links etc and what shd i do to become a veteran.Thanks again for ur reply
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPPoE problem, internet does not work Gzou Linux - Networking 13 04-19-2007 05:30 PM
internet connection on pppoe viksd2kin Linux - Networking 3 09-17-2006 04:56 AM
internet with pppoe behind a router mdk2k Linux - Hardware 1 04-25-2004 09:55 PM
PPPoE: Can't connect to the internet chord1000 Fedora 10 12-02-2003 09:38 PM
running PPPoE in redhat 7.2 tontod Linux - Networking 0 05-06-2002 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration