LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-17-2005, 08:27 AM   #1
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Rep: Reputation: 0
eth0 fail and no internect connection on mandrake 10.1


I have a problem with internet connection that's happened to me before on mandrake 10.0 and now on 10.1.

The thing is: i have a cable modem connected to my SIS900 10/100 ethernet card that has already worked on 10 and 10.1, but everytime i install a new mandrake distro i get no connection. Don't even know how i got it started the other times.

on hardrake the ethernet card is recognized just fine

I've configured a new internet connection using the folowing settings: LAN connection and automatic DHCP for the only connection available (eth0 SIS900 10/100).

Everything went out just fine except i can't connect to the internet.

On MMC managing connections tab it reads as follows:
TCP/IP
DHCP protocol
IP adress = nothing
Netmask = nothing
DNS server = nothing

This is frustrating since i've already managed to get it working in trhe past but never knew what i did to get it going.

This time whatever it was, its just not working and i really need help!
 
Old 03-17-2005, 01:02 PM   #2
Mathijs
Member
 
Registered: Jan 2003
Distribution: Gentoo 2006.1 @ linux 2.6.18-g-r6
Posts: 50

Rep: Reputation: 15
Is your dhcpcd running? This is the DHCP Client Daemon and you need this to interact with the DHCP Server and obtain an IP

to run it open a shell and type:
Code:
dhcpcd eth0
(replace eth0 with your ethernet card interface number (usually eth works))

Mathijs
 
Old 03-17-2005, 01:19 PM   #3
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
tried dhcpd but returned: command not found

did a ifconfig eth0 though

eth0
link: ethernet HW adress 00:0C:6E:10:B1B
BROACASTMULTICAST MTU:1500 Metric:1
RX Packets:0 erros:0 dropped:0 overruns:0 frame:0
TX Packets:0 erros:0 dropped:0 overruns:0 frame:0
colisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
E/S adress:0x9800

otherwise... everything's pretty much the same: no internet on mdk10.1
 
Old 03-17-2005, 01:38 PM   #4
Mathijs
Member
 
Registered: Jan 2003
Distribution: Gentoo 2006.1 @ linux 2.6.18-g-r6
Posts: 50

Rep: Reputation: 15
It appears you wouldn't have dhcpcd installed... Try to install it and try again...
(http://www.mandrakesoft.com/products....i586.rpm.html but i think you can install from CD, not sure as I'm a slacker)

I'm a slacker, so bare on me, but I need your /etc/rc.d/rc.inet1.conf file: make sure this line:
Code:
USE_DHCP[0]="yes"
is set to yes (if eth0 is your ethernet card)

Mathijs
 
Old 03-17-2005, 02:27 PM   #5
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
tried USE_DHCP[0]="yes" but still no result

I have the dhcpcd deamon installed.

Don't know if this is any help but when i'm booting i get the following message:

initializing eth0 interface = (program halts for a few minutes) FAILED
 
Old 03-17-2005, 03:48 PM   #6
Mathijs
Member
 
Registered: Jan 2003
Distribution: Gentoo 2006.1 @ linux 2.6.18-g-r6
Posts: 50

Rep: Reputation: 15
Appearently your ethernet card cannot be initialised...

run this command and post to output;
Code:
dmesg | tail
and run this command to:
Code:
route
Have you ran dhcpcd (to check this run: "ps -e | grep dhcp")? Is your ethernet card on the eth0 interface (to check this run "ethtool eth0")?

Mathijs
 
Old 03-17-2005, 04:41 PM   #7
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
ran dmesg | tail and got:
bootsplash: status on console 3 changed to on
bootsplash 3.1.6 - 2004/03/31: looking for picture.... found (800x600, 10377 bytes, V3)
bootsplash: status on console 4 changed to on
bootsplash 3.1.6 - 2004/03/31: looking for picture.... found (800x600, 10377 bytes, V3)
bootsplash: status on console 5 changed to on
cdrom:hdb:mmc-3 profile capable, current profile: 9H
cdrom:hdb:mmc-3 profile capable, current profile: 9H
ISO 9660 extentions. Microsoft Joliet level 3
ISO 9660 extentions. Microsoft Joliet level 3


Ran Route and got:
Kernel IP routing table
Destiny Router GenMask Options metric ref use Iface

ps -e | grep dhcp
didn't return anything

ran ps -e though and got many things except dhcp

Ran ethtool eth0:
settings for eth0
no data available

i'm completly lost....

oh! already installed DHCP from cd1
 
Old 03-18-2005, 01:09 PM   #8
Mathijs
Member
 
Registered: Jan 2003
Distribution: Gentoo 2006.1 @ linux 2.6.18-g-r6
Posts: 50

Rep: Reputation: 15
Okay, I had similar problems as you do and it is very easy to solve:

1) Install DHCPCD (did that, so step 2)
2) Run the DHCPClientDaemon by typing in a shell: DHCPCD (small-caps)
3) See if things work, if not give a little cry out here

we'll get there, but everything was solved for me when I ran dhcpcd so ...

The second thing that might be causing this is your ethernet card... If the driver or module for that card isn't loaded, linux won't be able to talk to it... Run 'lsmod' in a shell and try to see if there's a line mentioning a SIS900 10/100 driver or eth0 driver or anything close to that.
If it is not showing this line then view your /etc/modules.conf file. This file contains all the modules and there corresponding devices. You should have a line looking like:
Code:
alias eth0 sis900
if not add it

then if it still does not work run this:
Code:
ifconfig eth0 netmask 255.255.255.255
if it still doesn't work then start a new thread annd hope someone with more knowledge then me about these things shows up

Mathijs
 
Old 03-19-2005, 01:55 PM   #9
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
already installed DHCPCD
Ran dhcpcd and nothing happened

Ran lsmod and got one line referent to sis900 then checked /etc/modules.conf and got a blank file with only one line: alias autofs autofs4

tried to add alias eth0 sis900 but got not permission to write the file.

Then tried ifconfig eth0 netmask 255.255.255.255 and reported SIOCSIFFLAGS netmask: device or resource busy.

FRUSTRATING!!!!!!!!!!!
I've managed to get it working in the past but i don't know how... think it was after making the sound work though, wich by the way can't manage to get working either...

HELP!
 
Old 03-19-2005, 02:52 PM   #10
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Seems odd to me that it fails to work.

First you should not need DHCP Daemon running. You are getting an IP from cable provider.

Second do you have a firewall setup and running. If so turn it off tempoary to see it you get a connection. To remove firewalls rules in a terminal with root access type ' ipchains --flush ' Now see if you can browse. If so then the firewall rules need edited.

Most cable modem setup's I have seen use the MAC address ( A hardware address code on the the nic card in a 12 digit code ) of the nic card to authenticate with. So if you have not changed the nic from the when your cable modem was installed then it should still see the correct MAC address of the card. The card should have the MAC address on it somewhere.

Lets see what you have in /etc/sysconfig/network-scripts/ifcfg-eth0
also contents of /etc/resolv.conf. This contains DNS numbers.

Now verify the HWADDR matches the MAC address on the nic. If that is correct then I am at a lost here.
You can get DNS numbers from your provider and hardcode them in to /etc/resolv.conf

Try to ' ping -c5 64.233.161.147 ' That is google website. If you get a reponce then in your web browser type ' http://64.233.161.147 ' in the address bar and see if it diplays the website. If it does then something about DNS is not working. You can get DNS numbers from your provider and hardcode them in to /etc/resolv.conf

Sample of my /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:90:F5:0D:2F:85
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
Worst case to get you back up is to buy a cable/dsl router and set it up between your modem and linux box. You need to make the router imatate the MAC address used when the cable modem setup was done. Most of these little cheap routers I have used are quite easy to setup.

Brian1
 
Old 03-19-2005, 03:59 PM   #11
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
OK... turned off firewall... no browsing

then /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:0c:6e:10:b1:db
METRIC=10
MII_NOT_SUPPORTED=no
NEEDHOSTNAME=yes

tried ping -c5 64.233.161.147 and got: network unreachable

also looked into /ect/resolve.conf and it's BLANK!

tried to edit the file with the DNS servers but it won't allow me i get no permission
 
Old 03-19-2005, 04:17 PM   #12
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Post the following output or contents
' ifconfig -a '
' netstat -r '

ping -c2 127.0.0.1

To edit the /etc/resolv.conf file it requires root access.

Problably Contact your provider and verify your account info.
 
Old 03-19-2005, 04:49 PM   #13
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Result for ifconfig -a:

eth0
link: ethernet HW adress 00:0c:6e:10:b1:db
BROACASTMULTICAST MTU:1500 Metric:1
RX Packets:0 erros:0 dropped:0 overruns:0 frame:0
TX Packets:0 erros:0 dropped:0 overruns:0 carrier:0
colisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
E/S adress:0x9800

lo
eth0
link: Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
inet6 adress: ::1/128 Scope:machine
UP LOOPBACKRUNNING MTU:16436 Metric:1
RX Packets:538 erros:0 dropped:0 overruns:0 frame:0
TX Packets:538 erros:0 dropped:0 overruns:0 carrier:0
colisions:0 txqueuelen:0
RX bytes:40970 (40.0 b) TX bytes:40970 (40.0 b)

sit0
link:IPv6 over IPv4
NOARP MTU:1480 Metric:1
RX Packets:0 erros:0 dropped:0 overruns:0 frame:0
TX Packets:0 erros:0 dropped:0 overruns:0 carrier:0
colisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


result for netstat -r
Destiny Router GenMasc Options MSS Window irtt Iface


That's all...
By the way, how can i boot as root or how can i gain access to editing files under root permission?
 
Old 03-19-2005, 05:19 PM   #14
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Still thinking about your issue but to edit with root access, in a terminal type ' su ', then enter root's password. You have taking the idenity of root for that session till you type ' exit ' or close the terminal. To have full root's enviromnet settings you type ' su - '. Not sure what GUI you are running but under KDE if you goto Start Menu > System Tools > File Manager - SuperUser. Problably can be done in Gnome or any other.

Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 03-19-2005, 09:40 PM   #15
Marcoreg
LQ Newbie
 
Registered: Mar 2005
Location: Portugal
Distribution: Mandrake 10.1
Posts: 15

Original Poster
Rep: Reputation: 0
Just crossed my mind... do you think this could be a IRQ issue? I mean, since my sound card doesn't work either, do you think they may be conflicting?

Not sure if i sould disable PnP OS in BIOS? Would it harm anything?
Would I have problems runing Windows?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Please help me establish an internect connection AlexBell Linux - Hardware 1 05-23-2005 01:11 PM
mandrake 10.1 no internet connection eth0 fail meezike Linux - Newbie 6 12-29-2004 05:29 PM
No internet on Mandrake, eth0 fail. please help. psikatana Linux - Networking 13 04-19-2004 07:09 AM
Internect connection hanava Linux - Networking 4 08-11-2003 10:54 PM
lo and eth0 fail on boot dsiguy Linux - Networking 1 03-14-2003 01:35 PM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration