to put it simply: no.is there a way to do this withip
commands?
ip
(from the iproute2
) does not have anything to do with the persistent network configuration, done using ifupdown2
. ip
can only manipulate the running system./etc/network/interfaces.d/
and source it from /etc/network/interfaces
, which e.g. the SDN integration does too. That way you would have control over the exact contents of the whole file./etc/network/interfaces
?did not look into this, are there commands to add / modifiy network? will checkWhat about pvesh and PVE API to change the config via CLI/script?
root@pve:~# pvesh set /nodes/pve/network/eno1 --address 10.10.10.1
400 Parameter verification failed.
netmask: missing property - 'address' requires this property
type: property is missing and it is not optional
root@pve:~# pvesh set /nodes/pve/network/vmbr1 --type bridge --address 10.10.10.10 --netmask 255.255.255.0