[Linux-Anyway] Re: Uh-oh -- what have I done?

  • From: horrorvacui@xxxxxxx
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Sat, 15 Mar 2003 23:55:25 +0100

On Sat, 15 Mar 2003 11:02:56 -0800 (PST)
Meph Istopheles <Meph@xxxxxxxxxxxxxxxxxxx> wrote:

> 
>   Hey,
> 
>   Think I've really lost it now.  In trying to find ~some~ way to 
> route between my private network & the net through my Linux box, 
> I'd mad some changes via linuxconf.  Now my table looks really 
> weird:
> 
> /sbin/route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    
> Use Iface
> Rhiannon.Aeon-A Ra-Hoor.Aeon-AL 255.255.255.255 UGH   0      0        
> 0 eth0
> 
> [Uh, if Riannon, 10.0.0.3, shows up at all, shouldn't it have 
> 255.255.255.0?]

No, what you have here is a host-route. All bits of the netmask are 1's,
so the address is valid in full. This is not a route to a network, it's a
route to a host. Look at mine:

23:10:31 root@www:/opt/dnloads/bttv-0.7.92  # route -n
Kernel IP routing table
Destination   Gateway       Genmask         Flags Metric Ref Use Iface
172.19.89.138 0.0.0.0       255.255.255.255 UH    0      0     0 ppp0
192.168.0.1   0.0.0.0       255.255.255.255 UH    1      0     0 dummy0
10.0.0.0      0.0.0.0       255.255.255.0   U     0      0     0 eth1
192.168.0.0   0.0.0.0       255.255.255.0   U     0      0     0 eth0
0.0.0.0       172.19.89.138 0.0.0.0         UG    0      0     0 ppp0

I have two host-routes, one to machine's own interface (don't ask, I've no
idea what it's good for either) and one to the ADSL "modem". I have two
private range networks here: 192.168.0.0 and 10.0.0.0, both with
255.255.255.0, and I have two routes to them: 10.0.0/24 is reachable via
interface eth1, and 192.168.0/24 via eth0. That's all I need to assure
that my machine can talk with both networks, and that's all you need as
well.

Your kernel routing table does look a bit funny... Could you please repost
the output of route with the -n argument, and the ifconfig output for
eth's as well? Would be a bit easier to read ;-)

By the way, I'm trying to write a firewall script so I can ditch ipchains
in favour of iptables (which would then probably do for you what it does
for me), and I discovered that during my attempts to configure the kernel
as lean as possible I excluded some important modules. Bugger. I
recompiled it and found that it screwed up my bttv modules. I recompiled
them as well, but it won't work. I remember that installing bttv needed a
bit of hacking when I did it last time, but, that's all I can remember.
The joys of Linux.

Cheers

-- 
Horror Vacui

Registered Linux user #257714

Go get yourself... counted: http://counter.li.org/
- and keep following the GNU.
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: