Re: iproute2 and ifupdown



Sorry, I didn't finish my message.

iface eth0 inet static
    address 192.168.100.1
    network 192.168.100.0
    netmask 255.255.255.0
    broadcast 192.168.100.255

    up ip addr add 172.17.0.1/16 dev eth0

    up ip rule add from 192.168.100.0/16 dev eth0 table intern
    up ip rule add from 172.17.0.0/16 dev eth0 table extern

    up ip route add 192.168.100.0/24 dev eth0 table intern
    up ip route add 192.168.200.0/24 via 192.168.100.253 table intern
    up ip route add default via 192.168.100.254 table intern

    up ip route add 172.17.0.0/16 dev eth0 table extern
    up ip route add 192.168.10.0/24 via 172.17.2.1 table extern
    up ip route add default via 172.17.254.254 table intern

    pre-down ip route flush table intern
    pre-down ip route flush table extern

pre-down ip rule del from 192.168.100.0/16 dev eth0
pre-down ip rule del from from 172.17.0.0/16 dev eth0

pre-down ip addr del 172.17.0.1/16 dev eth0

When I run

# /etc/init.d/networking stop
Deconfiguring network interfaces...done.

.... everything looks good so far, but the commands "ip addr show" and
also
"ifconfig" show me, that the interface is still configured.

# /etc/init.d/networking start
Configuring network interfaces...RTNETLINK answers: File exists
Failed to bring up eth0.

Should all the IP stuff be outsourced to it's own init script? Or may
I be able
to use the standard netconfig on debian systems?

Thanks for your hints,
Martin
.



Relevant Pages

  • Re: How do I start auto DHCP?
    ... where eth0 is the 1st interface ... In Damn Small Linux, the Internet connection worked right out of the box. ...   1. ...
    (Debian-User)
  • Re: How to fix ipaddress
    ... allow-hotplug eth0 ... Physical interface names should follow the word "auto" on ... named interfaces up in the order listed. ...
    (Debian-User)
  • Re: Home wireless free hotspot
    ...   To the SWAT team, ... Subject: Home wireless free hotspot ... agreed upon in order to access the network. ... Securing Apache Web Server with thawte Digital Certificate ...
    (Security-Basics)
  • Re: God Mode In Windows 7
    ... the word "Network". ...     "Collects and stores network configuration ... computer because my registry is full of glue now. ... Microsoft Word (which is a part of Microsoft Office, ...
    (soc.retirement)
  • Re: God Mode In Windows 7
    ... the word "Network". ...     "Collects and stores network configuration ... computer because my registry is full of glue now. ... Soc.Retirement, "CapsUnlock" which disables the ...
    (soc.retirement)