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

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



Tom H a écrit :
> On Thu, Jul 24, 2014 at 2:41 PM, Mickael MONSIEUR
> <mickael.monsieur@gmail.com> wrote:
>>
>> post-up /sbin/route add 1.2.3.4 dev eth0
> 
> your "route ..." syntax looks wrong to me.

Not to me.

zenith:~# /sbin/route add 1.2.3.4 dev eth0
zenith:~# /sbin/route -n
Kernel IP routing table
Destination   Gateway      Genmask         Flags Metric Ref    Use Iface
1.2.3.4       0.0.0.0      255.255.255.255 UH    0      0        0 eth0

> There's no netmask and no gateway.

Because it does not need any. It is a direct route to a host address.


Reply to: