Sample Header Ad - 728x90

How to make ip link settings persistent on ubuntu 22.04

0 votes
1 answer
132 views
I'm trying to make persistent some ip links settings on ubuntu 22.04 desktop. Commands below works fine but are not persistent:
ip link add mynet-shim link eno1 type macvlan  mode bridge
ip addr add 192.168.1.223/32 dev mynet-shim
ip link set mynet-shim up
ip route add 192.168.1.192/27 dev mynet-shim
I have tried using nmcli but it seems macvlan bridge is not available. Do you have any idea or a tutorial explaining how to proceed?
Asked by Sam99 (3 rep)
Apr 27, 2025, 09:30 PM
Last activity: Apr 28, 2025, 10:53 AM