Don’t use onlink flag for nexthop
This is rejected by the kernel.
This commit is contained in:
parent
3e7552856f
commit
9646acb18e
@ -160,7 +160,7 @@ if [ "${ip}" ]; then
|
|||||||
log error "Cannot set IPv6 route to ${addr}, IPv6 disabled in the kernel"
|
log error "Cannot set IPv6 route to ${addr}, IPv6 disabled in the kernel"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
${cmdprefix} ip route "${ipcmd}" "${addr}" dev "${vif}" metric "$metric" onlink
|
${cmdprefix} ip route "${ipcmd}" "${addr}" dev "${vif}" metric "$metric"
|
||||||
|
|
||||||
network_hooks "${command}" "${vif}" "${addr}"
|
network_hooks "${command}" "${vif}" "${addr}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user