unbekanntes Netzwerkproblem ...

Florian Lohoff flo at rfc822.org
Wed Oct 9 21:41:02 CEST 2002


On Wed, Oct 09, 2002 at 09:23:48PM +0200, Markus Wigge wrote:
> Was anderes, muß grad bei einem frisch installierten Woody mit 2 
> Netzwerkkarten eine Handvoll Routen statisch eintragen, gibt es ein 
> äquivalent zur /etc/route.conf unter SuSE?

/etc/network/interfaces

Als "up" zeilen an das interface haengen ist meine variante:


auto eth0
iface eth0 inet static
        address 192.168.97.194
        netmask 255.255.255.224
        network 192.168.97.192
        broadcast 192.168.97.223
        gateway 192.168.97.193
        up echo 1 >/proc/sys/net/ipv4/ip_forward
        up /sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
        up echo 3600 >/proc/sys/net/ipv4/neigh/eth0/retrans_time
        up echo 120 >/proc/sys/net/ipv4/neigh/eth0/base_reachable_time

So - Da lassen sich halt beliebige commands hinten dranhaengen - Sowohl
up wie down und pre-up und pre-down muessten supported sein.

Flo
-- 
Florian Lohoff                  flo at rfc822.org             +49-5201-669912
                        Heisenberg may have been here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20021009/5d6c9d84/attachment.sig>


More information about the Linux mailing list