VirtualBox Netzwerk: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 53: | Zeile 53: | ||
=Mehr als 4 Interfaces= | =Mehr als 4 Interfaces= | ||
==Konfiguration== | ==Konfiguration== | ||
| − | *VBoxManage modifyvm --nic<5-8> none|null|nat|bridged|intnet|hostonly|generic|natnetwork | + | *VBoxManage modifyvm <VM> --nic<5-8> none|null|nat|bridged|intnet|hostonly|generic|natnetwork |
| − | *VBoxManage modifyvm --nictype<5-8> Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio | + | *VBoxManage modifyvm <VM> --nictype<5-8> Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio |
| − | *VBoxManage modifyvm --macaddress<5-8> auto|<mac> | + | *VBoxManage modifyvm <VM> --macaddress<5-8> auto|<mac> |
| − | *VBoxManage modifyvm --cableconnected<5-8> on|off | + | *VBoxManage modifyvm <VM> --cableconnected<5-8> on|off |
| + | |||
==Konfiguration== | ==Konfiguration== | ||
and depending on the network option that you want: | and depending on the network option that you want: | ||
| − | *VBoxManage modifyvm --bridgeadapter<5-8> none|<devicename> | + | *VBoxManage modifyvm <VM> --bridgeadapter<5-8> none|<devicename> |
| − | *VBoxManage modifyvm --hostonlyadapter<5-8> none|<devicename> | + | *VBoxManage modifyvm <VM> --hostonlyadapter<5-8> none|<devicename> |
| − | *VBoxManage modifyvm --intnet<5-8> <network name> | + | *VBoxManage modifyvm <VM> --intnet<5-8> <network name> |
| − | *VBoxManage modifyvm --natnet<5-8> <network>|default | + | *VBoxManage modifyvm <VM> --natnet<5-8> <network>|default |
| − | *VBoxManage modifyvm --nat-network<5-8> <network name> | + | *VBoxManage modifyvm <VM> --nat-network<5-8> <network name> |
| + | |||
=Beispiele= | =Beispiele= | ||
| − | + | *vboxmanage modifyvm opnsense --nic5 bridged | |
| + | *vboxmanage modifyvm opnsense --nictype5 82540EM | ||
| + | *vboxmanage modifyvm opnsense --macaddress5 auto | ||
| + | *vboxmanage modifyvm opnsense --cableconnected5 on | ||
| + | *vboxmanage modifyvm opnsense --bridgeadapter5 br0 | ||
| + | |||
=Verbindungstyp= | =Verbindungstyp= | ||
*VBoxManage modifyvm "VM-Name" --nic5 intnet | *VBoxManage modifyvm "VM-Name" --nic5 intnet | ||
| Zeile 73: | Zeile 80: | ||
*VBoxManage modifyvm "VM-Name" --nictype5 virtio | *VBoxManage modifyvm "VM-Name" --nictype5 virtio | ||
*VBoxManage modifyvm "VM-Name" --nictype6 virtio | *VBoxManage modifyvm "VM-Name" --nictype6 virtio | ||
| + | =Bridge= | ||
| + | *vboxmanage modifyvm opnsense --nic5 bridged | ||
| + | *vboxmanage modifyvm opnsense --bridgeadapter5 br0 | ||
=Quelle= | =Quelle= | ||
*https://www.thomas-krenn.com/de/wiki/Netzwerkkonfiguration_in_VirtualBox | *https://www.thomas-krenn.com/de/wiki/Netzwerkkonfiguration_in_VirtualBox | ||
Aktuelle Version vom 19. Juni 2025, 14:13 Uhr
Network Address Translation (NAT)
Prinzip
Eigenschaften
- einfachste Möglichkeit aus dem Gastsystem heraus auf externe Netze zuzugreifen.
- Ein Zugriff von außen in das Gastsystem hinein ist nicht direkt möglich.
- Auch vom Host-System aus kann nicht auf Dienste im Gastsystem zugegriffen werden.
- Man kann aber über Portforwarding dies auch möglich machen.
Konfiguration
Not attached mode
Eigenschaften
- In diesem Modus sieht das Gastsystem eine Netzwerkkarte
- Bei der das (virtuelle) Netzwerkkabel abgesteckt ist.
Konfiguration
Bridged networking
Prinzip
Eigenschaften
- In diesem Modus bekommt das Gastsystem direkten Zugriff auf LAN Netzwerk
- an diesem ist auch der Host selbst angeschlossen.
Konfiguration
Internal networking
Prinzip
Eigenschaften
- Bei der Konfiguration eines internen Netzwerks können nur Gastsysteme miteinander kommunizieren.
- Sie müssen allerdings an das gleiche interne Netzwerk angeschlossen sein.
- Eine Kommunikation mit dem Host System oder anderen Netzen außerhalb von VirtualBox ist nicht möglich.
Konfiguration
Host-only networking
Prinzip
Eigenschaften
- In diesem Modus ist eine Kommunikation zwischen angeschlossenen Gastsystemen und dem Host-System möglich.
- Am Host-System werden dazu eigene Netzwerk-Interfaces verwendet
- Für das erste Host-only Netzwerk z.B. vboxnet0.
- Die Konfiguration der IP-Adresse am Host sowie die Konfiguration erfolgt direkt in VirtualBox:
- Ebenso das Setup des DHCP-Servers für dieses Netzwerk
Konfiguration
Routing
Prinzip
Eigenschaften
- IPForwarding muss am Linux Host aktiv sein.
- Geht nur mit OS Bordmitteln
- Traffic nach Aussen möglich
- Rückroute notwendig
Konfiguration
Mehr als 4 Interfaces
Konfiguration
- VBoxManage modifyvm <VM> --nic<5-8> none|null|nat|bridged|intnet|hostonly|generic|natnetwork
- VBoxManage modifyvm <VM> --nictype<5-8> Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio
- VBoxManage modifyvm <VM> --macaddress<5-8> auto|<mac>
- VBoxManage modifyvm <VM> --cableconnected<5-8> on|off
Konfiguration
and depending on the network option that you want:
- VBoxManage modifyvm <VM> --bridgeadapter<5-8> none|<devicename>
- VBoxManage modifyvm <VM> --hostonlyadapter<5-8> none|<devicename>
- VBoxManage modifyvm <VM> --intnet<5-8> <network name>
- VBoxManage modifyvm <VM> --natnet<5-8> <network>|default
- VBoxManage modifyvm <VM> --nat-network<5-8> <network name>
Beispiele
- vboxmanage modifyvm opnsense --nic5 bridged
- vboxmanage modifyvm opnsense --nictype5 82540EM
- vboxmanage modifyvm opnsense --macaddress5 auto
- vboxmanage modifyvm opnsense --cableconnected5 on
- vboxmanage modifyvm opnsense --bridgeadapter5 br0
Verbindungstyp
- VBoxManage modifyvm "VM-Name" --nic5 intnet
- VBoxManage modifyvm "VM-Name" --nic6 intnet
- VBoxManage modifyvm "VM-Name" --intnet5 "Port5"
- VBoxManage modifyvm "VM-Name" --intnet6 "Port6"
- VBoxManage modifyvm "VM-Name" --nictype5 virtio
- VBoxManage modifyvm "VM-Name" --nictype6 virtio
Bridge
- vboxmanage modifyvm opnsense --nic5 bridged
- vboxmanage modifyvm opnsense --bridgeadapter5 br0





