LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-18-2004, 04:42 PM   #1
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Rep: Reputation: 15
Cannot Ping Network Card on Mandrake 10


Hi

I have been struggling with setting up linux/win98 via crossover able. I have read a lot and one of the main very helpful docs was here(great for newbies like me, thanks to a previous poster for the link)

/http://us3.samba.org/samba/docs/using_samba/ch02.html

After following everything that was relevant, I still found I was having probs so I proceeded to the troubleshooting page:

/http://us3.samba.org/samba/docs/using_samba/ch12.html

Now, on there I could successfully ping 127.0.0.1 and localhost on both machines. But, when I tried to ping the network card itself it failed on the linux box, but worked fine on the windows box. The win98 has a IBM PCI network 10/100 card, so I am glad that works. The linux box has onboard LAN and my MB is a Gigabyte 7VAXP Ultra.

My question is, do I have to enable the LAN/Network part of the MB in BIOS or something like that? I am unsure how I set this up initially when I installed linux back in April, and I have not been back in ther since then. So, before I go do some damage, not <g>, could someone advise on what I should be looking for?

Thanks
Asif
 
Old 10-18-2004, 05:30 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Yes you will have to Enable LAN in the BIOS for an onboard NIC.

From a terminal as root issue "lspci" to see if it's detected.
 
Old 10-18-2004, 05:30 PM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
If I'm reading this correctly, you're trying to set up file and print sharing, via samba? If so, could you post the smb.conf? Is the windows machine running a firewall? How do your machines get an ip address, are they static, or via dhcp?
good luck.
 
Old 10-18-2004, 07:26 PM   #4
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Hi again, I had a look in the BIOS and found the section on LAN and it was disabled, doh! So, I enabled it and went through the config procedure. Thanks Chinaman, I used that lspci command and it showed up fine

PEACEDOG
Quote:
f I'm reading this correctly, you're trying to set up file and print sharing, via samba? If so, could you post the smb.conf? Is the windows machine running a firewall? How do your machines get an ip address, are they static, or via dhcp?
1. Correct, I am trying to setup file/printshares via samba and here is my smb.conf:

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/10/19 07:57:15

# Global parameters
[global]
workgroup = TUX LAND
server string = Linux Shares
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins support = Yes

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
lpq command = lpstat -o %p
lprm command = cancel %p-%j
browseable = No

[/usr/share/samba/tmp]
comment = My temp share folder to test
path = usr/share/samba/tmp
read only = No
guest ok = Yes

2. No, the windows machine has no firewall

3. I am unsure on how to answer this as I think DHCP was mentioned somewhere, but I know I also typed the network addy in myself in the windows machine. I used the following config when I started out, before I knew that the LAN was disabled.

Mandrake = 192.168.1.1 and network mask 255.255.255.0
windows98se = 192.168.1.2 and network mask 255.255.255.0

Is that what you wanted to know? At the moment I am not that concerned about internet sharing, I just want to connect the two boxes. Once I have nutted this problem out, then I may progress to sharing internet, but the reason I changed to linux was to get away from virus/trojan problems and I will probably keep it segregated anyway. It certainly will not be spending much time on the net, if any at all


Cheers
Asif
 
Old 10-19-2004, 01:53 AM   #5
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Just another bit of info, which is related. I rebooted the linux system, due to local storm and found on restart that in verbose mode I get an error. Specifically

Bringing up interface eth0 --- Failed

What is wrong here? I went back into the BIOS and the on board LAN is enabled. Now I am confused Any ideas anyone, is it a config problem or something, or is the MB faulty?

Cheers
Asif
 
Old 10-19-2004, 07:25 AM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Looks like the machine is requesting an ip address via dhcp. Try running the network configuration, and give it a static address. Once we get the nic up and running we'll look at the samba issues.
good luck.
 
Old 10-19-2004, 03:58 PM   #7
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Hi PEACEDOG

Thanks for your help so far OK, I checked the DHCP part out and yes, it was set up that way, that was default. I changed it to static addy and gave it the 192.168.1.1 , I then restarted the X system as it advised, basically I rebooted the system and it still came up with the same error of eth0 failed on startup. And when I tried to ping the card, it still came up with ' network unreachable' same as before.

Is there anything else I can try? I removed the network card in MCC and added it back again a few times, just in case I had stuffed up, but it was the same. The only thing that happened out of the ordinary was I could no longer use my modem, it said the dev/modem was not where it should be, so I had to add the modem connection again as well(even though I had not removed it). But as you can see, I am back online, that was the easy part as it is external

Cheers
Asif
 
Old 10-19-2004, 05:04 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Post the contents of

/etc/sysconfig/network-scripts/ifcfg-eth0

You may have to manually edit this file.
good luck.
 
Old 10-19-2004, 09:24 PM   #9
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Hi again, small problem, I do not have one of those

I have a ifcfg-lo and a ifcfg-ppp0 that is all. What do I do now, make one?

Cheers
Asif
 
Old 10-20-2004, 08:20 AM   #10
SiC_Goat
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
I have a similar problem, I'm running a bootloader into either Mandrake 10 or WinXP Pro, on the XP sys theres no problem getting to the card into the router and out to the net (I'm using a NetGear wg311 wireless PCI and a linksys router) I couldn't find any linux drivers for the card... But I tried using "madwifi"

When I'm in a console as root and do a "iwconfig ath0" command it SEES the router, but doesnt connect to it. I changed the ESSID and encryption key to it (is the crypto key the same as the WEP key???)

I too get the eth0 boot error, but i dont have an eth0, only an ath0... O_o

I'm way to used to GUIs... all i need is a net connection on the linux boot so i can solve all my other problems from there
 
Old 10-20-2004, 03:54 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by Asificare
Hi again, small problem, I do not have one of those

I have a ifcfg-lo and a ifcfg-ppp0 that is all. What do I do now, make one?

Cheers
Asif
Yes please post the contents of that file.
good luck.
 
Old 10-20-2004, 05:19 PM   #12
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Hi Peacedog, here they are

[richard@192 network-scripts]$ cat ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0
# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback

[richard@192 network-scripts]$ cat ifcfg-
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""

[richard@192 network-scripts]$ cat ifcfg-ppp0
DEVICE="ppp0"
ONBOOT="no"
USERCTL="no"
MODEMPORT="/dev/modem"
LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS=""
PAPNAME=""
REMIP=""
NETMASK=""
IPADDR=""
MRU=""
MTU=""
DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="60"
BOOTPROTO="none"
PEERDNS="yes"

I hope it makes sense to you

Cheers
Asif
 
Old 10-20-2004, 05:33 PM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Dumb question. Since you are hooking up to a windows 98 machine using a cross-over cable, is the windows machine on? Also, unless you are running a dhcp server on your mandrake box, make sure you have a static address set up on the windows98 machine. Type 'ipconfig /all' on the windows machine. That will give you the answer.

You might want to check the logs to see why starting eth0 failed.
 
Old 10-20-2004, 05:48 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I'm not a mandrake 10 expert, but I believe you should have an ifcfg-eth0 file. Try renaming the ifcfg- file to ifcfg-eth0.
good luck.

Last edited by Peacedog; 10-20-2004 at 05:55 PM.
 
Old 10-20-2004, 09:57 PM   #15
Asificare
Member
 
Registered: Jul 2003
Location: The Land Downunder
Distribution: Mandrake 10
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jschiwal
Dumb question. Since you are hooking up to a windows 98 machine using a cross-over cable, is the windows machine on? Also, unless you are running a dhcp server on your mandrake box, make sure you have a static address set up on the windows98 machine. Type 'ipconfig /all' on the windows machine. That will give you the answer.

You might want to check the logs to see why starting eth0 failed.

It should not make any difference if the windows box is on or not, I have not even got the cable plugged in at the moment. I am trying to resolve an issue with why I cannot ping my onboard network card in linux, the windows machine is setup and is working fine. It is the eth0 failure in Mandrake that is the issue. What logs should I look for? If there is no eth0 network, there is no log for it surely? Where would I look for it if there is?

I have setup static addresses for both machines, with the linux box the host on 192.168.1.1 and the windows on 192.168.1.2

Cheers
Asif
 
  


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
can ping network computer, cannot ping google.com (help needed) ben_build#2.1.0 Linux - Wireless Networking 23 11-07-2010 12:55 PM
DWL 650+ D-link card can't ping to the network dejablue Linux - Wireless Networking 1 04-20-2004 01:04 AM
Can ping network but can't ping any internet ip when I hard set the ip Streme Linux - Wireless Networking 4 04-13-2004 09:18 AM
Mandrake 9.2 / admtek 8211 - ESSID found but cannot ping on ad-hoc network steventux Linux - Wireless Networking 3 03-11-2004 11:07 AM
How to configure a Network everywhere fast network card under Linux Mandrake 7.2 margo256 Linux - Newbie 1 03-12-2001 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:44 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