LXC unplug/disconnect network interface

Figo

Member
Oct 27, 2018
4
0
6
53
Hi all!

In order to achieve migrating a running server to a new LXC container (Debian Buster), I'm searching how to unplug/disconnect the network interface from host as it is possible for QEMU VMs.

It's because I need to have a network interface with correct MAC address inside LXC, but the MAC already exists over our local network, and the current server must stay online as much as possible.

I haven't found any option in GUI or command line...

Any ideas ?

Thanks !

Proxmox 6.0.7
 
Hi,

there is no GUI option for this.

You have to use ip for this.
see "man ip"