On Wed, 14 Aug 2002, Lou Hamilton wrote:

> Even with the routes deleted, I still cannot get to my server (Win2K)
> that has the print/file share on it. I am getting the messsage
> "DESTINATION HOST UNREACHABLE".
>
> ANy ideas on what can be causing this problem?
[snip]

> >>> My 'ifconfig' is showing that I am getting an IP address from the DHCP
> >>> and it is valid on my network.
> >>>
> >>> 'route -n', however, is showing that I have too many routes in my table
> >>> and seems to be confusing the packets and sending everything to the
> >>> default gateway. I do not even know where these routes came from. I
> >>> never entered anything in manually. I only activated the eth0
> >>> interface.
> >>>
> >>> My results of '/sbin/route -n' are:
> >>>
> >>> Destination    Gateway     Genmask    Flags    Metric    Ref    Use
> >>> Iface
> >>> 0.0.0.0    192.168.1.1    255.255.255.255    UGH    0     0    0
> >>> eth0
> >>> 192.168.1.0    192.168.1.1    255.255.255.0    UG    0    0    0
> >>> eth0
> >>> 192.168.1.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    eth0
> >>> 0.0.0.0    192.168.1.1    0.0.0.0    UG       0    0    0    eth0
> >>>
> >>> My new issue is getting rid of the unwanted routes (lines 1 and 2). I
> >>> have tried the 'route del' command to no avail. If anyone has any ideas
> >>> on a syntax that will make this work, it would be greatly appreciated.
> >>>
> >>
> >> I don't think you need to delete the first route entry, because that
> >> only
> >> routes packets to host 0.0.0.0 to the DHCP router. The one you want to
> >> delete is #2:
> >>
> >>     route del -network 192.168.1.0 gw 192.168.1.1
> >>
> >> should work.

I was wrong (and should have tried it before sending it).  The command
should have been
        route del -net 192.168.1.0 gw 192.168.1.1
and if you get something like "SIOCDELRT: Invalid argument" try
        route del -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

AND be sure to do this as root, not your normal user name.

You said in one of your earlier replies that the routes returned after
rebooting.  This is most likely because the routes are setup by the DHCP
client on your PC from the response by your DHCP server (your router). I
have no direct experience with Linksys routers, but their user manual
shows some screens from which you might get some clues to your problems.
Look at the "Static Routing" section in the user manual, for example.

If you continue to have problems, you might post the output from the
commands
        netstat -rn
        cat /etc/sysconfig/network-scripts/ifcfg-eth0
        cat /etc/sysconfig/network-scripts/ifup-routes

Good luck.

Jim



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to