Bridged Network unter Virtualbox an eth0 funktioniert nur, wenn ich ein Kabel an eth0 habe.

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
Benutzeravatar
MSfree
Beiträge: 10686
Registriert: 25.09.2007 19:59:30

Re: Bridged Network unter Virtualbox an eth0 funktioniert nur, wenn ich ein Kabel an eth0 habe.

Beitrag von MSfree » 17.01.2020 16:48:44

weedy hat geschrieben: ↑ zum Beitrag ↑
17.01.2020 16:28:45
Ich habe es oben nochmal hingeschrieben.
Du hast da eine wichtige Zeile geflissentlich unterschlagen :wink:

TomL

Re: Bridged Network unter Virtualbox an eth0 funktioniert nur, wenn ich ein Kabel an eth0 habe.

Beitrag von TomL » 17.01.2020 16:53:29

weedy hat geschrieben: ↑ zum Beitrag ↑
17.01.2020 16:32:02
Genau so ist das. Nur, dass es eben nicht funktioniert, wenn an eth0 kein Kabel mit mindestens einem Switch dranhängt.
Ist das Interface ohne Kabel "down"? Wie ist die Ausgabe ohne Kabel:

Benutzeravatar
MSfree
Beiträge: 10686
Registriert: 25.09.2007 19:59:30

Re: Bridged Network unter Virtualbox an eth0 funktioniert nur, wenn ich ein Kabel an eth0 habe.

Beitrag von MSfree » 17.01.2020 16:54:54

TomL hat geschrieben: ↑ zum Beitrag ↑
17.01.2020 16:53:29
Ist das Interface ohne Kabel "down"? Wie ist die Ausgabe ohne Kabel:
Sehr wahrscheinlich, aber ich wollte es noch ein wenig spannend machen.

Vermutlich steht in der interfaces

Code: Alles auswählen

allow-hotplug eth0

willy4711

Re: Bridged Network unter Virtualbox an eth0 funktioniert nur, wenn ich ein Kabel an eth0 habe.

Beitrag von willy4711 » 17.01.2020 18:41:09

Bridged networking. This is for more advanced networking needs, such as network simulations and running servers in a guest. When enabled, Oracle VM VirtualBox connects to one of your installed network cards and exchanges network packets directly, circumventing your host operating system's network stack.
Ist es nicht logisch, wenn der Host sein Kabel vermisst, das er das dann auch an den Guest mitteilt (via vboxdrv.sh o-Ä.) ????

Code: Alles auswählen

vboxdrv.service - VirtualBox Linux kernel module
     Loaded: loaded (/usr/lib/virtualbox/vboxdrv.sh; enabled; vendor preset: enabled)
     Active: active (exited) since Fri 2020-01-17 07:28:08 CET; 11h ago
    Process: 1153 ExecStart=/usr/lib/virtualbox/vboxdrv.sh start (code=exited, status=0/SUCCESS)
Was gesucht wird ist wohl eher das:
6.7. Host-Only Networking

Host-only networking can be thought of as a hybrid between the bridged and internal networking modes. As with bridged networking, the virtual machines can talk to each other and the host as if they were connected through a physical Ethernet switch. As with internal networking, a physical networking interface need not be present, and the virtual machines cannot talk to the world outside the host since they are not connected to a physical networking interface.

When host-only networking is used, Oracle VM VirtualBox creates a new software interface on the host which then appears next to your existing network interfaces. In other words, whereas with bridged networking an existing physical interface is used to attach virtual machines to, with host-only networking a new loopback interface is created on the host. And whereas with internal networking, the traffic between the virtual machines cannot be seen, the traffic on the loopback interface on the host can be intercepted.
Nachzulesen:
https://www.virtualbox.org/manual/ch06. ... k_internal

Antworten