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

Re: network-manager as default? No!



Martin Wuertele <maxx@debian.org> writes:
> * Timo Juhani Lindfors <timo.lindfors@iki.fi> [2011-04-15 14:18]:
>
>> ip rule show | grep -Ev '^(0|32766|32767):|iif lo' \
>>     | while read PRIO NATRULE; do
>>     ip rule del prio ${PRIO%%:*} $( echo $NATRULE | sed 's|all|0/0|' )
>> done
>
> iface ethX inet static
> 	address x.x.x.x
> 	netmask x.x.x.x
> 	gateway x.x.x.x
> 	up	ip rule add ....
> 	down	ip rule del ....


This is basically what I do, too.  

The power of the pre-up/up/down/post-down scripting is tremendous.


Bjørn


Reply to: