LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2001, 12:38 PM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

Well can't you even ping the gateway? if you can't then that's just stupid. if you can then i'd guess it's the gateways problem
 
Old 10-22-2001, 12:47 PM   #17
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
I have another linux box, 5 PCs and 11 Macs that can all ping the gateway (which is our router).

Can you think of anything else that might be wrong? Thanks for your help with this, I really appreciate it. Setting up and configuring a network card should NOT be this difficult.

I'm a big fan of Linux but this is extremely disappointing.
 
Old 10-22-2001, 01:25 PM   #18
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
Quote:
NETMASK=255.255.0.0
NETWORK=192.168.28.0
There's something wrong on this one: if you're using a class B subnet, which means the last two bytes of your ip-address are relevant (192.168.x.x are the addresses you use) Your network should be 192.168.0.0

If you don't, do set your netmask to 255.255.255.0!

Having just some 20 hosts in your network, you should go with a netmask of 255.255.255.0, that is using addresses in the range of 192.168.28.x

Also: what does your routing-table look like now? to ping other hosts on your network you need the following entry:

192.168.28.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

especially the eth0, that is the device to use is vitally important!

Steave.

Last edited by Steave; 10-22-2001 at 01:29 PM.
 
Old 10-22-2001, 01:59 PM   #19
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
okay,

changed the submask. here's the output of route -n:



Code:
route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.28.85   0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.28.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.28.251  0.0.0.0         UG    0      0        0 eth0
 
Old 10-22-2001, 02:20 PM   #20
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
Looks pretty much like my working routing-table. Although I don't have the first entry. - I posted this before. But OK, it should work like this, too.

Is your interface up? What kind of an error do you get if you try to ping the gateway?
You should at least not get "network not reachable" with this kind of config. If you do, check the configuration of your NIC. Is it up?

I assume the other boxes in your LAN ping fine. Can you ping the linux-box on 192.168.28.85 from other clients on your LAN?

Steave.
 
Old 10-22-2001, 02:27 PM   #21
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
the interface comes up just fine when i boot the machine. when i ping the gateway i get my standard "Destination Host Unreachable" error.

Unfortunately, none of the other boxes can ping this problem box.
 
Old 10-22-2001, 02:50 PM   #22
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
OK, we'll probably have to look at another side of the problem. Now that you know everything about routing, I guess the problem is elsewhere.

I just looked at the ifconfig dump you gave in the first place and noticed the 12 errors in TX (Trancieved -> sent) part. Do these kind of errors accumulate when you try to ping other hosts? Do you also get RX errors when you try to ping the box from the outside?

I'd also start checking if the NIC itself is OK. Try to get it to run in some windows-box! If it won't, there's probably some kind of hardware issue.

Are you sure, you're using the right module? ... I think the problem is with the setup of the NIC, not with the network /ip configuration.

Steave.
 
Old 10-22-2001, 03:03 PM   #23
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
hey,

When I ping the outside world and get an error, it does add to the TX errors. But the RX errors never accumulate when I try to ping from one of my other boxes.

I'm pretty certain I'm using the right module. It's a Linksys card and I'm using the newest version of tulip I got from off the web.

The card did function okay when I had Win2000 installed.

Maybe this card simply isn't compatible. I'll have to examine that fact seeing as how it looks like we've exhausted every option here. I really appreciate your assistance, I'll let you know if I find anything else. My patience is wearing very thin so I think I might either buy a known compatible card or try RH 7.1.

Unless you have any other ideas...
 
Old 10-22-2001, 03:29 PM   #24
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
I don't think its a compatibility problem. It's not RH that runs the card, but the module. And if this is from Tulip and the latest one, there shouldn't be a problem. Unless the guys at Tulip don't know what they're doing

Ok, here is some more to chew on:

the TX-line says carrier=24. Mine says carrier=0. Whatever this means.
I'd think that the carrier values should be the same on all ethernet-cards.

Have you stumbled into any other config-files regarding your network card yet?

If you don't feel like coping with this card under linux any more, I'd suggest you just swap them with one from your win-boxes. (Assuming there are other cards in those...)

Steave.

Hey, I just browsed the ifconfig manpage and found that you can enable/disable arp for ethernet-devices. (the arp-protocol does the translating from ip-addresses to MAC-Adressees)

try "ifconfig eth0 arp" to enable the arp-protocol.

If this really is the error, though, I would send some angry mail to whoever is responsible for not having the card use the arp-protocol in the first place.

Last edited by Steave; 10-22-2001 at 03:37 PM.
 
Old 10-23-2001, 03:09 PM   #25
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
IT WORKS!


After tinkering and rebooting a few more times, I finally got this thing working. And honestly, I have no idea what I did because the config files are the same as what I posted before.

Only one question left: where's the file where I input my DNS info so I can resolve non-local hosts (i can ping everything on my LAN and the outside world fine)

Thank you, everyone who contributed to this thread!
 
Old 10-23-2001, 04:00 PM   #26
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
yabadoo!

The file you're looking for is

/etc/resolv.conf

the main entries you need to do are:

nameserver x.x.x.x y.y.y.y z.z.z.z ... (space seperated list of NS)
search mynet (will look for name.mynet if name cannot be resolved)
The last entry is useful if you're working in one domain most of the time. (in this case .mynet)
Otherwise it can be ommited.

P.S. Could you do me a favor? I wonder what your carrier line says in the ifconfig output for eth0. Does it say carrier=0?? I wondered if the carrier value should be 0 or else is some kind of an error return code.....
 
Old 10-23-2001, 04:11 PM   #27
cliffyman
Member
 
Registered: Aug 2001
Location: Buffalo, NY
Distribution: Red Hat
Posts: 83

Original Poster
Rep: Reputation: 15
hey,


thanks, DNS works without a hitch.


and the carrier is 0. thanks again for all your help!
 
Old 10-23-2001, 04:29 PM   #28
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
One last bit:

I'd check the network cable you are using to connect the linux box, if you encounter any future trouble. carrier=24 might just mean something like no carrier.

Well, guess this is it! Steave.
 
Old 11-01-2001, 08:55 PM   #29
tekjunky
LQ Newbie
 
Registered: Jan 2001
Location: Florida
Posts: 10

Rep: Reputation: 0
Lightbulb RE: configuring NIC on eth0

in the etc...../ifcfg-eth0 file you have netmask as 255.255.0.0 you might try 255.255.255.0 instead. This is a Class C netmask and works well with the 192.xxx.xxx.xxx range. If you check the others they should be set to this too.



tekjunky

Linux! Never leave /home with-out it!
 
Old 11-15-2001, 11:46 AM   #30
snooke
LQ Newbie
 
Registered: Mar 2001
Posts: 2

Rep: Reputation: 0
Try using tcpdump to test for network traffic. Like `tcpdump -li eth0`. If you actually have a network connection you'll see all of the traffic on the network. If you see no traffic you may have the wrong module loaded. There are a bunch of variants of the tulip driver. We use DE500's and have to use three different modules depending on the chipset on each NIC.

If tcpdump does show network traffic, start a ping on one tty and monitor tcpdump on another. The evidence about what is happening will be in there. How to interpret it is another matter.....
 
  


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
Problems configuring a BCM5721 NIC Maldain Linux - Networking 4 05-09-2005 10:22 AM
Problems configuring wireless nic messenger *BSD 17 11-17-2004 07:19 PM
Configuring kernel, problems with Realtec Nic. Royle Linux - Hardware 0 08-17-2004 09:40 AM
Problems configuring eth0 and ppp0 mdavidn Linux - Networking 1 04-24-2004 01:58 PM
eth0 and nic problems nightheart Linux - Networking 8 04-29-2002 02:28 PM

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

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