Hey! Did you hear what Omachonu Ogali was saying on Apr 18 ?

OO> Did you try adding a default route? If not, try:
OO> 
OO> route add default dev eth0

        This probably isn't needed...I don't do it here (because ppp0
likes to have the default route while I'm on the net) and I don't have any
problems.  See further down for what I think the problem is... :)

OO> On Sat, 10 Apr 1999, Andrew R. Brink wrote:
OO> > Hi,
OO> > I've got my network cards (3c509b) setup on 2 machines.  But they cant
OO> > ping each other?
OO> > 
OO> > Here's the setup.
OO> > 
OO> > machine 1 ---- 3com hub ----- machine 2
OO> > 
OO> > machine 1 : ifconfig eth0 192.168.1.1 up
OO> >       route add -net 192.168.1.0 netmask 255.255.255.0 eth0
OO> > 
OO> > machine 2 : ifconfig eth0 192.168.1.2 up
OO> >       route add -net 192.168.1.0 netmask 255.255.255.0 eth0

        Andrew, you haven't told Linux what broadcast address the
interface is using.  Just add this line to each computer's network config
file (the rc.inet1 - where you've got the above ifconfig stuff)...
        ifconfig eth0 -broadcast 192.168.1.255 

        Also you don't need to add the "up" to your first ifconfig line
because it is implicitly specified if an address  is  assigned to the 
interface.

        One other point... The above assumes you are running a 2.0.x
kernel. If you are using a 2.2.x kernel the only line you need is...
        ifconfig eth0 192.168.1.1 (or 2 for the other machine)
You don't need the broadcast line or the route line. But this is only if
you are running a 2.2.x kernel.

Hope this sorts things out for you...

Regards, Steve Youngs <[EMAIL PROTECTED]>   ICQ: 34307457
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°                                __                      °
°Isn't it good to know that     / /   __ ___  __ ____  __°
°There _IS_ an alternative!    / /__ / // _ \/ // /\ \/ /°
°                             /____//_//_//_/\_,_/ /_/\_\°
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
...Captain, why not just give the Borg Windows 95?

-====---====---====---====---====---====---====---====---====---====---====-
 to unsubscribe email "unsubscribe linux-admin" to [EMAIL PROTECTED]
 See the linux-admin FAQ: http://www.kalug.lug.net/linux-admin-FAQ/

Reply via email to