[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Wheezy] [networking] post-up NOT executed



On Thu, Jul 24, 2014 at 2:41 PM, Mickael MONSIEUR
<mickael.monsieur@gmail.com> wrote:
>
> I have a fresh installation of Debian Wheezy 7.6.0 amd64.
> The post-up line does not execute when eth0 is mounted!
> (by against my eth0 interface is mounted!)
>
> I have to mount routes, and are not:
>
> post-up /sbin/route add 1.2.3.4 dev eth0
>
> simple test:
>
> post-up touch /tmp/test
> reboot (...)
>
> cat /tmp/test
> cat: /tmp/1: No such file or directory
>
> Have you ever had this problem?
> I find nothing in dmesg and syslog!

I'm not too sure what "cat /tmp/test" and "/tmp/1" have to do with one
another but your "route ..." syntax looks wrong to me. There's no
netmask and no gateway. I haven't used net-tools in a while but I
remember:

route add [-net|-host] <ip_address> netmask <netmask> gw
<gw_ip_address> [dev] etho


Reply to: