I have facing an issue in adding a second NIC in LXC. In my scenario LXC contains 2 x NICs, one is connected to WAN with public IP and other one is connected to LAN on private IP.
By default how the LXC reaches to internet, the lxcbr0 is not bridge to outside NIC or where can I validate it.
ip route show
default via 192.168.1.1 dev ens33 proto dhcp metric 100
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
169.254.0.0/16 dev lxcbr0 scope link metric 1000
192.168.1.0/24 dev ens33 proto kernel scope link src 192.168.1.4 metric 100
I will create a bridge in netplan and map it to physical interface and call it here, but how do I know for which container it is, if I have multiple containers on same host.