Re: howto disable auto route setup?

Peter T. Breuer (ptb@it.uc3m.es)
Tue, 2 Feb 1999 01:35:36 +0100 (MET)


"A month of sundays ago Richard B. Johnson wrote:"
> > i believe you're missing the whole point. Alexey summed it up nicely
> > earlier. when you ifconfig an interface the main thing you do is tell
> > the kernel which set of ip addresses can be reached directly via that
> > interface. ie the route is implicit when you configure the interface.

No - what happens if you are a firewall? You want to configure the interface
without taking packets from it. You want to block the packets or pass them to
the other interface. No route.

> I am using version 2.2.1 I don't get errors on startup even though
> I 'ifconfig' and 'route' as usual.

Good news.

> domainname analogic.com
> ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255
> route add -net 127.0.0.0 dev lo metric 0 netmask 255.0.0.0
> ifconfig eth0 204.178.40.224 netmask 255.255.248.0 broadcast 204.178.47.255
> route add -net 204.178.40.0 dev eth0 metric 0 netmask 255.255.248.0
> route add default gw 204.178.40.1 metric 1 dev eth0 netmask 0.0.0.0
> PATH=${OLD_PATH}

Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/