MonkeyAdminOnKeyboard Posted November 30, 2023 Share Posted November 30, 2023 Guten Morgen, ich beschäftige mich seit neustem mit LXC und stoße so an meine Grenzen. Ich habe in meinem Gerät 2 Netzwerkschnittstellen. 1 für haupt IP vom Server und eine so konfiguriert, dass sie aktiv ist aber keine IP bezieht. Nun möchte ich das LXC kein macvlan bridge über diese Schnittstelle macht, sondern für jeden Container eine viertuelle Schnittstelle eth0 bereitstellt im IP Bereich 192.168.178.170 - 2xx Wie kann ich das einstellen und wo? Quote Link to comment
alturismo Posted November 30, 2023 Share Posted November 30, 2023 51 minutes ago, MonkeyAdminOnKeyboard said: Wie kann ich das einstellen und wo? kann ich Dir jetzt nicht genau sagen, aber hast du mal in den LXC Settings die Netzwerkschnittstelle umgestellt und getestet was passiert ? Quote Link to comment
MonkeyAdminOnKeyboard Posted November 30, 2023 Author Share Posted November 30, 2023 Moin, also ich hab folgendes. lxc gibt meinem container eine IP adresse vom router... das will ich nicht, da ich einen anderen Bereich nutzen möchte. Im Route rist für DHCP nur bis 100 reserviert. Ich möchte, dass LXC einen IP-Bereich von 150 bis xxx nimmt. Dann habe ich versucht in der Container config die IP direkt zu definieren. Jetzt der AH Effect. Plötzlich hat der Container 2 IPs.... Warum? Quote Link to comment
MonkeyAdminOnKeyboard Posted December 3, 2023 Author Share Posted December 3, 2023 Guten Morgen, hab glaub ich mein Problem gelöst. Im Docker war eth1 als MCVlan drin. Wenn ich also auf eth1 per LXC zugreifen wollte bzw es verändern wollte ist es automatisch als MCVLAN drin. HAb jetzt was anderes versucht und Teste da noch etwas. aber anscheinend bridge für eth1 rein in Netzwerk und schon geht wieder networkype = veth Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.