[SOLVED] Zugriff auf VLAN im Hypervisor

Dec 19, 2012
481
14
83
Hallo.
Ich habe in meiner /etc/network/interfaces folgendes definiert:

Code:
...
...
auto vmbr2
iface vmbr2 inet manual
        bridge_ports bond0.2
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
#VLAN.2
....
....
Nun würde ich gerne (kurzzeitig) direkt im Hypervisor auf dieses VLAN zugreifen können. Ich dachte eigentlich, dass das so gehen müsste:

Code:
auto eth0.2
iface eth0.2 inet static
    address 172.16.0.254
    netmask 255.255.255.0

ifup eth0.2

Aber wenn ich das mache, wird sinngemäß gemeldet, dass ein Konfigurationsfehler vorliegt, da VLAN.2 doppelt vergeben wurde. Daher die Frage: Wie muss man das machen?
Es geht wie gesagt nur um einen kurzfristigen Zugriff per ssh auf das VLAN ... danach kann das mit ifdown wieder geschlossen werden.

Danke!
 
Last edited:
am leichtesten ist wohl mit dem tool 'ip' der vmbr2 eine adresse und eine route hinzufügen und die danach wieder löschen
 
das sollte mit `ip address add 172.16.0.254/24 dev vmbr2` bzw. `ip address del 172.16.0.254/24 dev vmbr2` gehen
 

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!