LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why can't I connect to the net? (https://www.linuxquestions.org/questions/linux-newbie-8/why-cant-i-connect-to-the-net-140180/)

Angelus_Fate 01-29-2004 08:23 PM

Why can't I connect to the net?
 
Ok, I just installed Mandrake 9.2. Everything was detected, and that impressed me quite a bit. The only problem I have had throughout the whole process is connecting to the web. Linux detected my ethernet card, but says that the status is down. I called the provider, and they said that no IP address was needed. I have ran config several times now and still, nothing. If someone can give me the run-down on what it is I need to do to get this to work, please do so. Thanx for your time, and I hope to rectify this problem soon.


~Amarth~

h/w 01-29-2004 08:33 PM

as root, in a terminal, type in "ifconfig". you should see an interface for your card. do you see a line in it which says some like "inet addr", and an ip addr next to it?

in case you dont see an interface for the card, write back.

Angelus_Fate 01-30-2004 07:38 PM

Well, that got me the IP but I'm still having problems. I set the IP in Mandrake Control center, and it now reads as follows... Interface: eth0, IP address: xxx.xxx.xxx.xxx, protocol: static, driver: tulip, state: up. Before it said state: down, so I feel we are makin some progress. If there is anything else I should do, please let me know. Do I need a gateway number or anything else entered in those feilds? I've been running the wizard, in Mandrake Control Center to apply these settings.
Well, I hope to hear back from you soon. Thanx for your help thus far.


~Amarth~

Angelus_Fate 01-30-2004 07:52 PM

Modem specs: (Incase that might help) ADMtek ADM983 Linksys EtherFast 10/100, with a Motorola SB4200 SURFboard cable modem.

Hope that helps

~Amarth~

h/w 01-30-2004 08:02 PM

hi.
well, you say that you have an ip ? in that case, you should be connected.
in case ur not, try typing this in as root in a terminal "dhclient eth0".
if it gives an error saying u cant use dhclient, write back.

Angelus_Fate 01-30-2004 08:30 PM

I know it should be showing up as a dhcp, but if I set it to that setting the IP address goes away. That makes sence in most aspects, but when there is no IP, the "state" changes to down. I'm confused to say the least. Another thing I forgot about untill just a minute ago...When I run the wizard option in Mandrake Control Center, it has and auto dectect feture. If I check that box it picks up my ethernet card, but also something called winmodem. I don't know if that is refering to the 56k modem that is also installed, or the cable modem plugged into the ethernet card. Either way, it gives a message saying that that modem is not supported.

I'll try running dhclient, and see if that does anything. Thanx again


~Amarth~

h/w 01-30-2004 08:33 PM

in case dhclient doesnt work, get a tool called "pump", and as root, run "pump -i eth0". if everything is etup right, it will take care of bringing the iface up, and gettin an ip addr for u.

nightjar 01-30-2004 10:32 PM

Let me know if u r connect via cable modem and dhcp
If the answer is yes go to control center ---> network & internet---> Drak connect--->configure local...-----> non IP & netmask , boot protocol:dchp, if u prefer star at boot: yes ; Activate now-------->Apply------Ok
Then type ifconfig and watch if u ethernet card is up
write back about the results :D

Angelus_Fate 01-30-2004 10:34 PM

Well, dhclient eth0 ran fine. I gave me the IP I already had, but it had a different "netmask" number. I put that new number, it loaded, but the modem flashed a few times, but still no connection. I also ran ifconfig. Everything checked out ok, except one thread saying "TX packets: 4 errors". Everything else said "0 errors". Needless to say, I'm still confused.
Well, I'll keep trying. Thanx again.


~Amarth~

nightjar 01-30-2004 11:09 PM

where you put the new number?
dhcp give u the IP number and netmask may be 255.255.255.0

Copy here the output of the ifconfig and let me know if there are any device is set up wrongly

Also type route -n
and type here the results

Angelus_Fate 02-01-2004 01:38 PM

Well, I ran config this time and set it to no IP, no net mask, dchp, start on boot. After that I ran ifconfig, and it came back with no errors. However, under state it says down again. I know these are the settings I need. Another site said that I may need a router to connect. So I'm going to try that later today.

nightjar 02-01-2004 03:37 PM

/etc/rc.d/init.d/network restart
and let us know what it says
copy and paste all of the output

WheatPuppet 02-01-2004 05:10 PM

Howdy, all. I'm having a similar problem with DHCP and have been stabbing at it for a while now. I tried using pump, but it spat out an error just saying "Operation Failed." I think it might be a problem with the configuration file.

Can I get an example config file so I can see what I should have? The man pages have an example, but it sucks.

Oh yeah, I tried dhclient, and it didn't work. Here's what it gave me:
Code:

Listening on LPF/lo
Sending on LPF/lo
Listening on LPF/eth0/00:4c:69:6e:75:79
Sending on LPF/eth0/00:4c:69:6e:75:79
Sending on Socket/fallback
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
~~~above messages repeated a bunch of times with different intervals~~~
No DHCPOFFERS recieved.
No working leases in persistent database  -  sleeping.

This is really wierd because I can plug my windows machine into the same port and it works fine.

nightjar 02-01-2004 06:54 PM

how many ethernet card have you?
Is the answer is one then --->
go to Mandrake control center and click Network & Internet--->DrakConnect
and launch the wizard --->Expert Mode---->Lan Connection ---> and when "Configuring network device ethx" click on "automatic IP" ---> next, etc
Then the program ask about restart network ; say yes

Let me know what happen

:study:

Angelus_Fate 02-01-2004 10:33 PM

I have done that about 20 times now, and You oviously know where that lead. I don't know what else to do, and it seems that no one else does either. I'm at my whits end. Why can't this be more simplified? AHHHHHHHHHHHH!!!!!!


All times are GMT -5. The time now is 11:00 AM.