[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't ping local 'net, even with no firewall



On Sunday 22 July 2001 21:10, Matthew Garman wrote:
> On Sun, Jul 22, 2001 at 08:57:41PM +0200, Jörgen Johansson wrote:
> > do you ping with host names or ip adress ?
> > how about default routes gateway netmask ?
>
> I am trying to ping with ip addresses (e.g. ping 192.168.0.2).
>
> Here is the results of route:
>
> Kernel IP routing table
> Destination        Gateway         Genmask         Flags  Metric Ref    Use Iface
> generic10.infoa   *               255.255.255.255  UH      0        0         0    ppp0
> home                   *              255.255.255.0      U         0        0         0    eth0
> default         generic10.infoa 0.0.0.0                 UG      0        0         0    ppp0
edited this for clarity
>
> Somewhere (not sure where :), "home" became an alias for 192.168.0.0/24,
> because if I issue the following command:
>
> 	route add -net 192.168.0.0/24 eth0
>
> My routing table looks exactly the same, except I get another line like
> this:
>
> home            *               255.255.255.0   U     0      0        0
> eth0

Matt
man route gives you the info
       -n     show numerical addresses instead of trying  to  determine  symbolic  host
              names.  This  is  useful  if you are trying to determine why the route to
              your nameserver has vanished.

on my gateway 192.168.0.1
/sbin/route -n
Kernel IP routing table
Destination   Gateway      Genmask              Flags Metric Ref    Use Iface
xx.xx.xx.xx    0.0.0.0          255.255.255.255   UH     0        0        0     ppp0
192.168.0.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          xx.xx.xx.xx    0.0.0.0                   UG     0        0        0     ppp0

on my workstation ip 192.168.0.5
/sbin/route -n
Kernel IP routing table
Destination     Gateway    Genmask         Flags  Metric Ref    Use Iface
192.168.0.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.0.1    0.0.0.0               UG    0        0        0     eth0

can you ping localhost and local ip at each host ?
/regards Jörgen



Reply to: