Re: iproute2 and ifupdown
- From: Martin <martinbley@xxxxxxxx>
- Date: Thu, 29 Oct 2009 00:36:00 -0700 (PDT)
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
.
- Follow-Ups:
- Re: iproute2 and ifupdown
- From: klaus zerwes
- Re: iproute2 and ifupdown
- References:
- iproute2 and ifupdown
- From: Martin
- iproute2 and ifupdown
- Prev by Date: iproute2 and ifupdown
- Next by Date: Re: iproute2 and ifupdown
- Previous by thread: iproute2 and ifupdown
- Next by thread: Re: iproute2 and ifupdown
- Index(es):
Relevant Pages
|