Sample Header Ad - 728x90

How create an on link route rule with gateway?

0 votes
0 answers
13 views
I want to add a rule same as linux's
route add 192.168.64.0/24 via 192.168.64.200 dev enp0s1 onlink
, but following does not work:
% sudo route -n add -net 192.168.64.0/24 192.168.64.200 -interface bridge100
route: bad address: bridge100
What's correct way to do it?
Asked by William (151 rep)
Jan 16, 2025, 05:30 AM