static route in /etc/network/interfaces won't take
Hey gang,
I added some routes in /etc/network/interfaces:
auto eth0
iface eth0 inet static
address 10.x.y.z
netmask 255.255.255.0
broadcast 10.x.y.255
gateway 10.x.y.1
up /sbin/route add -net 10.a.b.0/16 gw 10.x.y.250
down /sbin/route del -net 10.a.b.0/16 gw 10.x.y.250
which fails to add any routes when I run
/etc/init.d/networking restart
but errors out with:
* /etc/network/options is deprecated.
Setting up IP spoofing protection...done (rp_filter).
Reconfiguring network interfaces...ifup: interface lo already configured
SIOCADDRT: File exists
Failed to bring up eth0.
done.
What am I leaving out?
hgh.
Reply to: