localhost doesn't need a route to it in linux.

The device lo is 127.0.0.1, but the netmask is 255.0.0.0,
and the device responds to 127.*.*.*

horse:/tmp/cs/hsw4# ping 127.123.45.67 -c 1
PING 127.123.45.67 (127.123.45.67): 56 data bytes
64 bytes from 127.123.45.67: icmp_seq=0 ttl=64 time=0.2 ms
...

-----Original Message-----
From: Steve Holdoway [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 6 April 2005 5:13 p.m.
To: [email protected]
Subject: Re: Debian Newbie - network Q 'hard'


Nick Rout wrote:

>On Wed, 06 Apr 2005 15:24:40 +1200
>Richard Tindall wrote:
>
>  
>
>>Thanks for the pointers Nick. I'll keep exploring and report back any
>>success.
>>    
>>
>
>further: i realised where i could find a working debian box to ssh into 
>and report that my wireless debian access point at home does not have a 
>route for 127.0.0.0, but all other networking still works. therefore 
>this appears to be a red herring.
>
>same situation with horse (shell.clug.org.nz)
>
>however both boxes have the destination entry in the 192.168 part of 
>the routing table ending in a 0 - ie the network address.
>
>Take a good hard look at /etc/network/interfaces - posting a copy might 
>be a good idea.
>
>
>
>  
>
This is from my mail server... debian sarge - not too up to date. About 
as simple as you can get. As for firewalls, just switch them off until 
you know things work!

Steve

mail:/etc/network# uname -a
Linux mail.greengecko.co.nz 2.6.8.1 #1 Fri Aug 20 00:13:09 NZST 2004 
i686 GNU/Linux

mail:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         10.0.0.138      0.0.0.0         UG    0      0        0 eth0

mail:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:02:44:66:FD:20
          inet addr:10.0.0.5  Bcast:10.255.255.255  Mask:255.255.255.0
          inet6 addr: fe80::202:44ff:fe66:fd20/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4114647 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3120608 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1844641144 (1.7 GiB)  TX bytes:1702035131 (1.5 GiB)
          Interrupt:17 Base address:0xdc00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:300607 errors:0 dropped:0 overruns:0 frame:0
          TX packets:300607 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:267698626 (255.2 MiB)  TX bytes:267698626 (255.2 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

mail:/etc/network# cat interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 10.0.0.5
        netmask 255.255.255.0
        gateway 10.0.0.138

mail:/etc/network# lspci | grep Eth
0000:00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)

mail:/etc/network# lsmod | grep 8139 ( interesting - I wonder which 
one's in use! )
8139cp                 19072  0
8139too                23808  0
mii                     4992  2 8139cp,8139too
crc32                   4608  2 8139cp,8139too


Reply via email to