LXC NIC Passthrough
ItOn the rare occation you have a good reason to forgo the small overhead of an veth (Virtual Ethernet) device connected to an ethernet bridge it is possible to pass a physical network interface directly to a LXC container.host.
To pass a veth (Virtual Ethernet)physical device connectedyou just need to provide lxc.net.[index].type
and lxc.net.[index].link
parameters in the LXC config. You may optionally provide a bridgename butfor whenthe link as well. Just be sure your index value is unique among all network interfaces fot the LXC container including those Proxmox may add if you running your LXC hosts on Proxmox.
lxc.net.0.type: phys
lxc.net.0.link: enp1s0
# optional
lxc.net.0.name: eth0