It seems that traceroute is hanging for the same reasons as
/sbin/route -- they are both trying to do DNS lookups for the IP
addresses, but can't find a nameserver or a nameserver that is
authorative for the 1.168.192.in-addr.arpa domain.
To get around this, you can kludge things by add entries to your
/etc/hosts file for your small private network...
127.0.0.1 localhost.localdomain localhost
192.168.1.9 host1.mydomain.com.au host1
192.168.1.8 host2.mydomain.com.au host2
That should make /sbin/route and /usr/sbin/traceroute work like you
expect.
Alternatively, run a nameserver on one of your boxes, set up entries
for your network, and point /etc/resolv.conf at it.
On Thu Apr 13 2000 at 11:32, Paul Chandler wrote:
> Dear Colleagues,
>
> I have 2 problems. The first is very practical: my first inclination was
> to post this message to comp.os.linux.networking, but at my current site,
> usenet is not hosted, and I have been unable to find a public usenet server
> which accepts postings to this group. If you know of one, I'd be pleased
> to hear ([EMAIL PROTECTED])
>
> Now to the Linux problem itself. I am wanting to do a demo for students at
> my school, and I am using a cut-down system called Monkey Linux, which is a
> reduced distribution of Slackware and installs a 2.0.x series kernel.
>
> Basically, I have 2 machines side by side on the same piece of cable; they
> can ping one another, but traceroute waits indefinately. I suspect the
> route is not right, or a kernel module is not loaded, but I can't work out
> what's going wrong. I would appreciate your wise advice as to either the
> cure, what diagnostics to run, or where else to ask this question
> ([EMAIL PROTECTED]) ...
>
> I am setting the system up by using the default rc.inet1 file and changing
> the IP.
>
> The rc.inet1 comes with the following variables:
[ yeech, I totally dislike the ugly way slugware does it's rc
scripts... it's about time it went fully over to sysV style of init
like redhat and other decent distributions do it. ]
> IPADDR="192.168.1.9"
> NETMASK="255.255.255.0"
> NETWORK="192.168.1.0"
> BROADCAST="192.168.1.255"
> GATEWAY="192.168.1.250"
>
> For good or ill, I have left all of them alone, except IPADDR. I have 2
> machines side by side, one defined as .8 the other .9
>
> For the .8 machine I have following data:
>
> ifconfig tells me the following:
>
> 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:9 errors:0 dropped:0 overruns:0
> TX packets:9 errors:0 dropped:0 overruns:0
>
> eth0 Link encap:10Mbps Ethernet HWaddr 00:80:AD:84:6F:F1
> inet addr:192.168.1.9 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:951 errors:0 dropped:0 overruns:0
> TX packets:29 errors:0 dropped:0 overruns:0
> Interrupt:5 Base address:0x320
>
>
> route by itself gives two lines, and hangs indefinately
>
> route -n shows the following:
>
> Kernel routing table
> Destination Gateway Genmask Flags MSS Window Use Iface
> 192.168.1.0 * 255.255.255.0 U 1500 0 3 eth0
> 127.0.0.0 * 255.0.0.0 U 3584 0 1 lo
> default 192.168.1.250 * UG 1500 0 0 eth0
>
>
> FYI, the rc.inet1 has the following ifconfig and route statements in it:
>
> /sbin/ifconfig lo 127.0.0.1
> /sbin/route add -net 127.0.0.0
> /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
> /sbin/route add -net ${NETWORK} netmask ${NETMASK}
> /sbin/route add default gw ${GATEWAY} metric 1
>
> Any suggestions as to why they cannot traceroute?
>
> Thanks,
>
>
>
> --- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=
> Paul D. Chandler [EMAIL PROTECTED]
> Yarra Valley Grammar School [EMAIL PROTECTED]
> Kalinda Rd
> Ringwood 3134 AUSTRALIA Ph: +613 9262 7700
>
> PhD Student - Deakin University, Faculty of Education
>
Cheers
Tony
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
Tony Nugent <[EMAIL PROTECTED]> Systems Administrator, RHCE
GrowZone OnLine (a project of) GrowZone Development Network
POBox 475 Toowoomba Oueensland Australia 4350 Ph: 07 4637 8322
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-