On 29/07/15 18:06, Mojtaba wrote:
> Hello
> I have a brand new jessie setup in a KVM VPS.
> The server is in OVH network which needs manual routing applied.
> However the post-up and setting in the /etc/network/interfaces is not executed
> This is my interfaces file
> 
> auto eth0
> iface eth0 inet static
> address         198.50.210.32
> netmask         255.255.255.255
> broadcast       198.50.210.32
> #gateway                192.99.39.254
> post-up route add 192.99.39.254 dev eth0
> post-up route add default gw 192.99.39.254
> post-down route del 192.99.39.254 dev eth0
> post-down route del default gw 192.99.39.254
> 
> I've tried a simple 'echo working > /testfile.txt' line but the
> post-up or pre-up is not executed
> Is there anything I'm missing?
> 
> Thanks
> 
> 

The following config should do the same but without the post-up/down
statements:

auto eth0
iface eth0 inet static
        address 198.50.210.32
        netmask 255.255.255.255
        pointopoint 192.99.39.254
        gateway 192.99.39.254

(Do note the spelling of pointopoint)

As to why the post-* commands doesn't run, I have no idea.

Regards,
  Johan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55b9129e.80...@ogun.org

Reply via email to