I was looking at bringing up an interface like this in /etc/network/interfaces (this is on debian), with the gateway outside the subnet:
iface eth0 inet static address 10.100.10.99 netmask 255.255.255.0 gateway 10.100.0.1
but "ifup --verbose eth0" only gives me this error message:
ifconfig eth0 10.100.10.99 netmask 255.255.255.0 route add default gw 10.100.0.1 eth0 SIOCADDRT: No such process Failed to bring up eth0
Of course, changing the netmask to 255.255.0.0 works just fine.
Is that even possible, or is there something else that's the problem? Is there a way to get more information out of ifup? I see one post on the internet that suggests it should work.