Null route ?

Hi,

What would be the equivalent of such a null route written in Cisco syntax :

ip route 1.1.1.1 255.255.255.0 Null0 100

Basically I need some traffic to be null routed but can’t use iptables filters easily because it only has to be null routed if there is not a more specific route or a route with a lower metric …

Cheers,

Sylvain

ip route add dst-address=192.168.0.0/24 type=blackhole

Tx works like a charm !