View previous topic :: View next topic |
Author |
Message |
bigbunny n00b
Joined: 04 Jul 2005 Posts: 3
|
Posted: Tue Jul 05, 2005 12:57 pm Post subject: Networking Difficulties |
|
|
Hello. I am having a problem connecting to ADSL with Gentoo. I was hoping someone would help me to get connected.
I will describe all relevant info and log entries, but if I leave something out please let me know. As far as I know, I have tried everything but a manual network configuration, and as this was only listed in the pre-installation section of the Gentoo Handbook, I didn't know if I could perform a manual network configuration on an already installed Gentoo partition.
Gentoo is installed on a single computer with Gentoo downloaded from the Universal CD. There is nothing else on this computer but Gentoo. I performed a manual kernel configuration, and I compiled it with support for my specific ethernet hardware. I compiled it for a pentium 4.
My ADSL provider provides a DHCP service, and I tried to use roaring penguin to connect, so in /etc/conf.d/net I have iface_eth0="up", and iface_eth0="dhcp".
I have setup 127.0.0.1 localhost tux. I have privided 2 DNS servers (both primary and alternate).
I configured the kernel with support for ppp. My ethernet modem does work, as it has worked for my windows computer.
Gentoo does recognise my ethernet hardware: Link encap: Ethernet HWadd 00:01:29:FO:82:DB UP BROADCAST RUNNING MULTICAST etc
When I type the command: adsl-start, I get: ".....TIMED OUT /usr/sbin/adsl-start:line 198: 11874 Terminated $Connect <9echo "$Confread" >/dev/null 2>&1"
When I type the command: net-setup eth0, I get the response: "-bash: net-setup:command not found."
The command: adsl-status, gets: "Link is down (can't read pppoe PID file /var/run/-adsl.pid.pppoe).
When I access /var/run/-adsl.pid.pppoe, I get an empty folder.
When I try to access etc/ppp/pap-secrets and etc/ppp/chap-secrets, I get nothing - both folders are empty.
I have Syslog-ng running, but I don't know how to access it. I have Gnome as my desktop environment (is it also using Syslog-ng?), so I can provide the log entries from that. I get the following:
Process:pppd [9794]
connect:pppo<-->/dev/pts/2
---------------------------------------------
Process:pppd
message:LCP:timeout sending conf.requests
---------------------------------------------------------
process pppd [9794]
Messag: connection terminated
---------------------------------------------
Process pppoe [8973]
Message:Timeout Waiting for PADO packets
----------------------------------------------------
pppd [8969]
Message:Exit
------------------
I have also had:
pppd [5713]
Using interface pppo
---------------------------
Some of the above log entries may have been chronologically mixed up (of which I apologise)
The other thing that is noteworthy is that I cannot access my ethernet modem through a browser. I called my ADSL provider and they gave me instructions to access it but no matter what was tried I could not access it.
Any advice is most welcome.
Thanks. |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Tue Jul 05, 2005 2:14 pm Post subject: |
|
|
syslog-ng logs messages by default in /var/log/messages. Which kind of etehrnet and ADSL hardware do you have? |
|
Back to top |
|
|
bigbunny n00b
Joined: 04 Jul 2005 Posts: 3
|
Posted: Tue Jul 05, 2005 3:40 pm Post subject: |
|
|
Thanks for the reply.
My ethernet device is an onboard intel pro 1000.
The ethernet modem is a D-Link DSL-302G Version C1.
I'll check the logs in /var/log/messages
Thanks. |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Tue Jul 05, 2005 4:58 pm Post subject: |
|
|
I suppose the modem is connected via Etehernet and not USB. I think that before trying to connect on the ADSL line you need your Ethernet connection up and working. It doesn't sounds good that you can't access the Web interface of the modem.
Do you have a hub/switch or you connect to the modem with a cross cable? Anyway I suppose you're using static addresses, so try to find the default IP address of your modem on the Ethernet LAN by reading the manual (for my DLink router is 192.168.0.1). Than give an address in the same subnet to the eth0 device and try pinging the modem.
Quote: | My ADSL provider provides a DHCP service, and I tried to use roaring penguin to connect, so in /etc/conf.d/net I have iface_eth0="up", and iface_eth0="dhcp". |
You must have one of the two, not both. The provider's DHCP will give you the public address once the PPP connection is established, but AFAIK you still need private IP addresses for the eth0 device and for the modem. |
|
Back to top |
|
|
WetSpot n00b
Joined: 05 May 2005 Posts: 29 Location: Middle Tennessee, USA
|
Posted: Sun Jul 10, 2005 6:51 am Post subject: |
|
|
Allow me to jump-onto bigbunny's post.
I'm having exactly the same problem. I have some additional info which may be similar to bigbunny.
adsl-start generates the same error message. My /var/log/messages reports:
Code: | pppd 2.4.3 started by root, uid 0
Using interface ppp0
Connect: ppp0 <--> /dev/pts/0
PADS: Service-Name: ' '
PPP session is 19906
CHAP authintication succeeded
not replacing existing default routh to eth0 [65.xxx.xxx.1]
local IP address 65.xxx.xxx.xxx
remote ip address 65.xx.xxx.xx
|
Seems OK but nothing happens. Can't ping or do squat.
Could this be something with the PID for the pppd or pppoe process? Any help would be appreciated.
bigbunny
Any similarity to your situation? Did you ever get this figgered-out? _________________ "Consensus is the Negation of Leadership"
--M. Thatcher |
|
Back to top |
|
|
corley Tux's lil' helper
Joined: 12 May 2005 Posts: 78
|
Posted: Thu Jul 21, 2005 12:20 pm Post subject: ya |
|
|
I have the same problem after tonights emerge. I have setup pppoe a ton of times with no problems but for the life of me i cannot figure out what the hell is wrong now. I did noticed that again Gentoo overwrote my default configs for all of the ppp stuff and I didnt even do an update of anything related to pppoe. Go figure. At any rate now I cannot connect. I do have eth0 up but ppp0 does not come up. I run /etc/init.d/net.ppp0 and it says started... but if i do ifconfig it doesnt show anything up for ppp0. If I do /etc/init.d/net.ppp0 stop then it says it is already stopped. If i run adsl-start then it says there is already a connection. If I do adsl-stop then it says it cannot read the /var/run/-adsl.pid file. Now I am confused why this file is named with a - in it. Is this normal?
I was also trying to run net-setup but that wont work coz for some reason emerge unemerged some other stuff without my knownledge... seems to be a normal thing lately. I can however run adsl-setup which I did again and setup everything correctly but the connection is still borked because ppp isnt coming online. I do have eth0 configured without an address like the docs says but it doesnt work.
Anyone can figure this out please let me know. |
|
Back to top |
|
|
bigbunny n00b
Joined: 04 Jul 2005 Posts: 3
|
Posted: Thu Jul 21, 2005 2:59 pm Post subject: |
|
|
Hello again. I am Using the ethernet part of the modem.
I have re-installed Gentoo 3 times, and recompiled my kernel more than that number and it still doesnt work. I am wondering if it is a hardware thing. Anyone else using a DFI Pro875b Revb motherboard (motherboard is intel d875pbz). Another interesting thing is that all the lights are on (i.e ethernet, adsl connection power and status) but my isp says no connection. I have also done a manual configuration which also did not work. |
|
Back to top |
|
|
WetSpot n00b
Joined: 05 May 2005 Posts: 29 Location: Middle Tennessee, USA
|
Posted: Thu Jul 21, 2005 2:59 pm Post subject: |
|
|
To follow up on my post...
I did get everything working as it should. In /etc/ppp/pppoe.conf I changed the CONNECT_POLL=3. It was set to 60.
What was happening was adsl-start initiated the session, but before the script found out it had an 'up' connection, the CONNECT_TIMEOUT=30 timed-out, generating the error message.
I had a usable connection, it was only reported as not connected. All processes that referenced the PID for the connection would resultingly fail.
[/code] _________________ "Consensus is the Negation of Leadership"
--M. Thatcher |
|
Back to top |
|
|
WetSpot n00b
Joined: 05 May 2005 Posts: 29 Location: Middle Tennessee, USA
|
Posted: Thu Jul 21, 2005 3:18 pm Post subject: |
|
|
Post your kernel config.
About the lights - you may not get a connection light on your modem. I've got a Westell 6100 with power, sync, ethernet, and 'Internet' lights. The 'internet' light only burns when the modem initiates the ppppoe session. In bridge mode, where the computer initiates the ppppoe session, the 'internet' light stays off.
Is your ethernet light blinking (when it should)?
I just noticed in your original post that your pap- and chap-secrets are empty? Is that still the case?
Post your pppoe.conf and /etc/conf.d/net, too. _________________ "Consensus is the Negation of Leadership"
--M. Thatcher |
|
Back to top |
|
|
corley Tux's lil' helper
Joined: 12 May 2005 Posts: 78
|
Posted: Fri Jul 22, 2005 11:18 am Post subject: |
|
|
hmm.. well i am not using that particular one but i AM using an Intel board. 82371AB. I am on a laptop so I cannot see lights to verify what you are saying.. but normally you will get a link light if thats what you mean.
I dont think its a hardware thing. I also along with the latest put on a new kernel but I also tried to use several previous kernels as well as compiling the modules etc from scratch but nadda. I find it most strange that now I cannot even use my livecd to access the net. This leads me to believe there is some other connectivity issue that I am unaware of but its strange that it would happen at the same time as my upgrade.. also my net was working until i rebooted.
On another note I noticed all my routing tables etc were also wiped out.
bigbunny wrote: | Hello again. I am Using the ethernet part of the modem.
I have re-installed Gentoo 3 times, and recompiled my kernel more than that number and it still doesnt work. I am wondering if it is a hardware thing. Anyone else using a DFI Pro875b Revb motherboard (motherboard is intel d875pbz). Another interesting thing is that all the lights are on (i.e ethernet, adsl connection power and status) but my isp says no connection. I have also done a manual configuration which also did not work. |
|
|
Back to top |
|
|
|