[lxc-users] Same IP in container as host

8 views
Skip to first unread message

Narcis Garcia

unread,
Mar 26, 2021, 1:28:20 PM3/26/21
to LXC users SPM
Hello,

I'm connecting to a host through SSH and create a single container there.
When I just start container, in a few seconds my connection falls:
"ssh_exchange_identification: read: Connection reset by peer"

I observe that container got same IP address as host. If I stop
container, there is no collision and I can enter host again through SSH.

How can I start that unprivileged container and let it aquire automatic
IP configuration without taking same IP address as host?

All .net parms in config file:

lxc.net.0.type = veth
lxc.net.0.link = lanbr0
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3E:Ee:5e:07

(*) The only host NIC is attached to lanbr0 too

THANK YOU


--

Narcis Garcia

__________
I'm using this dedicated address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.

Reply all
Reply to author
Forward
0 new messages