network connectivity of alpine linux guest

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Krischu
Posts: 41
Joined: 8. Apr 2016, 10:43

network connectivity of alpine linux guest

Post by Krischu »

I installed an alpine linux 3.19 guest VM under VBox 7.0 (macOS Bigsur host).

The alpine uest has bridged network connectivity over eth0 and the interface has an address of 10.0.2.15.
My host is in the local 192.168.178.0 network. I can reach the 10.0.2.0 network over the gateway 192.168.178.1.

I'd rather have a configuration, where the alpine VM obtains its IP from the DHCP of the 192.168.178.1 router.
The VM network configuration is set to NAT.


When I change this to bridged networking, I see dhcpd timeouts and the interface eth0 doesn't get an IP.

How do I have to configure the networking in the guest and the VBox.
Krischu
Posts: 41
Joined: 8. Apr 2016, 10:43

Re: network connectivity of alpine linux guest

Post by Krischu »

Found the solution in my case myself: choose bridged networking in the VM settings and en3 (thunderbolt) ethernet.
This way the IP is leased from the hosts dhcp server (in the router to the internet)
granada29
Volunteer
Posts: 714
Joined: 3. Mar 2015, 07:27
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Linux, macOS, Windows

Re: network connectivity of alpine linux guest

Post by granada29 »

If you are trying to use bridged networking over WiFI then I am afraid it is not possible. Apple changed their rules on allowing wifi bridging in macOS Ventura. I recall that the only reason it worked before that, was due to a buggy wifi driver which Apple then "fixed".

However, bridged networking will still work over an ethernet connection (i.e. hard wired).
Post Reply