[SOLVED] IP richtig zuteilen

sakis2018

Active Member
Dec 25, 2018
53
0
26
50
Hallo,

ich habe Proxmox über Debian 9 installiert und und bisher noch keine Container erstellt.

Ich möchte 2 Container erstellen die jeweils ihre eigene IP bekommen sollen.

Aktuell habe ich 3 x IPv4 und eine IPv6.

ein Container soll 2 x IPv4 und 1 x IPv6 bekommen und der andere Container soll 1 Ipv4 bekommen.

Wie muss ich miene /etc/network/interfaces nun anpassen?

Vielen Dank.

Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage part of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address  185.xxx.xx.197
        netmask  255.255.255.0
        gateway  185.xxx.xx.1
        dns-nameservers  8.8.8.8
        up ip addr add 2a0c:4axx:xxx:xx::xxxx/64 dev eth0
        up ip -6 route add 2a0c:4axx:1100:00e1:0000:0000:0000:0001 dev etho
        up ip -6 route add default via 2a0c:4axx:1100:00e1:0000:0000:0000:0001

auto eth0:0
iface eth0:0 inet static
        address  185.xxx.xx.204
        netmask  255.255.255.0
        gateway  185.xxx.xx.1
        dns-nameservers  8.8.8.8

auto eth0:1
iface eth0:1 inet static
        address  185.xxx.xx.205
        netmask  255.255.255.0
        gateway  185.xxx.xx.1
        dns-nameservers  8.8.8.8

auto eth0:2
iface eth0:2 inet static
        address  185.xxx.xx.206
        netmask  255.255.255.0
        gateway  185.xxx.xx.1
        dns-nameservers  8.8.8.8

Code:
# pveversion -v
proxmox-ve: 5.3-1 (running kernel: 4.15.18-9-pve)
pve-manager: 5.3-6 (running version: 5.3-6/37b3c8df)
pve-kernel-4.15: 5.2-12
pve-kernel-4.15.18-9-pve: 4.15.18-30
corosync: 2.4.4-pve1
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: not correctly installed
libjs-extjs: 6.0.1-2
libpve-access-control: 5.1-3
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-43
libpve-guest-common-perl: 2.0-18
libpve-http-server-perl: 2.0-11
libpve-storage-perl: 5.0-34
libqb0: 1.0.3-1~bpo9
lvm2: 2.02.168-pve6
lxc-pve: 3.0.2+pve1-5
lxcfs: 3.0.2-2
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-22
pve-cluster: 5.0-31
pve-container: 2.0-31
pve-docs: 5.3-1
pve-edk2-firmware: 1.20181023-1
pve-firewall: 3.0-16
pve-firmware: 2.0-6
pve-ha-manager: 2.0-5
pve-i18n: 1.0-9
pve-libspice-server1: 0.14.1-1
pve-qemu-kvm: 2.12.1-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-43
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3


erledigt //

Hab alles entfernt und nur eine Bridge zu eth0 erstellt, dann gings.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!