Re: Network Config Problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Wes Bateman
Date:  
To: plug-discuss
Subject: Re: Network Config Problem
On Sat, Aug 28, 2004 at 08:24:55AM -0700, Ray Hauge wrote:
<SNIP>
> I checked the route this morning and there were two set for eth0. Both
> of them had a default gateway of 0.0.0.0 I removed everything and added
> them back. I couldn't set the gateway though, I had to instead use
>
> route add default gw <gateway address>
>
> Now I can at least attempt to ping places. Before I couldn't ping
> anything. It was saying "Connect: invalid argument" Now it all the
> pings just fail, even to 127.0.0.1.
>
> Thanks again,
> Ray


Ray:

Just to clarify what you found, when you say you had two for eth0, was that default gateways or two routes for eth0?

A really simple table might look like this:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0


The last one, the one with 0.0.0.0 in the leftmost (Destination) column is the default route. You should have one of those and it should have a gateway defined (not 0.0.0.0 - but the gateway's IP like the 192.168.1.1 above).

If your interface is configured correctly (proper netmask, etc.), your default route setup properly, and any iptables rules in place verified to make sure they're not the culprit...then it should work.

Did you compile this kernel upgrade you spoke of yourself? From your earlier post, I assumed that the new kernel was able to drive your NIC. If you do:

ifconfig eth0

do you get a configuration stanza for eth0 or an error? If you get config information, then the kernel can see the card okay (which it has to in order to have eth0 show up in your routing table...just grasping at straws I guess).

Anyway, let me know if you're sure your routing table looks good and if you get it to work.

Wes

--
Wes Bateman, GCIA
ManISec Corporation - "Managed Internet Security Services"
http://www.manisec.com
P.O. Box 851053
Richardson, TX 75085-1053
866-MANISEC (626-4732) or 972-992-3131 ext. 82

AECA B702 ED34 DAB1 92FE EFD8 4D60 960C 6104 0B89
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss