Loopback/Hosts trouble
Hi all
I am setting up a new machine to be used as a gateway/IpMasqurade server. It's going well except
for one problem. If I ping it, presumably using loopback because it's not connected to anything,
I recieve a network unreachable error. This is only happening when I use it's name, any service
works if I use localhost, so I am assuming the loopback interface is up and running fine but there
is something weird going on with the host lookup. Ifconfig reveals that the loopback interface is
up and running correctly:
$/sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:96 errors:0 dropped:0 overruns:0
TX packets:96 errors:0 dropped:0 overruns:0
$>ping catbert
PING catbert (192.168.1.2): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote catbert 64 chars, ret=1
$>ping localhost
PING catbert (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.5 ms
The host file looks like this:
127.0.0.1 catbert localhost
192.168.1.2 catbert
192.168.1.1 ratbert
There also seems to be a valid route to loopback.
$>route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.0.0.0 U 0 0 2 lo
If I Plip connect to ratbert, the pings just time out, but ratbert can ping it fine. The plip and
masqurade setup seem to be working as advertised.
I've tried changing the order of the entries in the host table, this doesn't help. If I delete or
comment out the 192.X.X.X entries, it works fine. The other machine, ratbert, is working fine.
If it matters, catbert is running a custom 2.0.30 kernel on a system that was a clean install of 1.3,
and ratbert is running an upgraded 1.3 (from 1.2) base.
Any clues would be appreciated. Thanks
----------------------------------------------------------------
"Change is inevitable, except from a vending machine."
Rob MacWilliams robmacw@cl-sys.com
N9NPU
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: