What is the pct command to toggle link_down while the container is live ?

shodan

Member
Sep 1, 2022
83
29
23
I create the container with link_down=1, so it doesn't obtain a dhcp address before I've re-arranged things inside the container.

But how do I turn link_down to 0 when the time is right ?
 
According to chatgpt, you have to redefine the entire network interface like

pct set 1002 -net0 name=eth0,bridge=vmbr0,ip=dhcp,link_down=0

Is that the best way to go about it, or is it possible to only toggle "link_down"'s value ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!