F5F Stay Refreshed Software Operating Systems Ubuntu LXC Bridge connections DHCP setup

Ubuntu LXC Bridge connections DHCP setup

Ubuntu LXC Bridge connections DHCP setup

A
AthenasLight
Posting Freak
781
01-03-2021, 01:11 PM
#1
I attempted to read the instructions from the link you shared. It outlines steps for making containers use your host's DHCP server, mentioning that SSH connections stay active. However, after trying it, the IP was reset and the SSH session was dropped. The goal is to ensure proper configuration without losing connectivity.
A
AthenasLight
01-03-2021, 01:11 PM #1

I attempted to read the instructions from the link you shared. It outlines steps for making containers use your host's DHCP server, mentioning that SSH connections stay active. However, after trying it, the IP was reset and the SSH session was dropped. The goal is to ensure proper configuration without losing connectivity.

S
StyleTrick
Senior Member
744
01-03-2021, 07:35 PM
#2
I added this auto enp5s0 iface enp5s0 inet static address 192.168.1.2 auto br0 iface br0 inet dhcp bridge_ports enp5s0 bridge_stp off bridge_fd 0 bridge_maxwait 0 I found out that this made SSH not work. Tho I guess my ifconfig explain why that doesent work (since I could ping). after doing ifdown br0 ifdown enp5s0 ifup br0 ifup enp5s0 I could ssh back in, tho I still want this fixed.
S
StyleTrick
01-03-2021, 07:35 PM #2

I added this auto enp5s0 iface enp5s0 inet static address 192.168.1.2 auto br0 iface br0 inet dhcp bridge_ports enp5s0 bridge_stp off bridge_fd 0 bridge_maxwait 0 I found out that this made SSH not work. Tho I guess my ifconfig explain why that doesent work (since I could ping). after doing ifdown br0 ifdown enp5s0 ifup br0 ifup enp5s0 I could ssh back in, tho I still want this fixed.