[Networkmanager] nic sub-interface

Robin Becker robin at reportlab.com
Mon May 8 17:57:14 UTC 2023


On 08/05/2023 18:26, Chris Adams wrote:
.........
> 
> The way I do it, if I'm converting enp3s0 to br0, copying the IPv4/IPv6
> options from the base:
> 
I'll give this a try and see where it blocks. Will monitor the router on a separate machine


>     nmcli con add con-name br0 ifname br0 type bridge stp 0 $(nmcli -t con show enp3s0 | grep '^ipv[46]\..*:.' | sed 's/:/ /') autoconnect 0
> 
>     nmcli con add con-name enp3s0-br0 ifname enp3s0 type bridge-slave master br0 autoconnect 0
> 
>     nmcli con down enp3s0; nmcli con up br0; nmcli con up enp3s0-br0
> 
>     nmcli con mod br0 autoconnect 1
>     nmcli con mod enp3s0-br0 autoconnect 1
>     nmcli con mod enp3s0 autoconnect 0
> 

-- 
Robin Becker



More information about the Networkmanager mailing list