OT: Linux WTF

Nov 20, 2020 Last reply: 5 years ago 6 Replies
Saved reading
Jump to replies (6)

OK here's a Linux Q. I have a Mint install in a VM (using VirtualBox) on my Mac. The basic setup works OK and I can reach the Internet with, say, Firefox, from Linux. IOW I get to websites. But the bastard has awarded itself IP address 10.0.2.15, even though it's configured to use DHCP and get an address from my router, which would be giving it an address such as 192.168.1.12, just as it has for my Win7 VM.



The issue here is I have a setup that requires communicating from my Mac to the Linux VM via the LAN. I can do that fine for the Win7 VM. I was able to have the Win7 VM to use DHCP and so it has a local address in 192.168.1/8 but Linux ignores all my attempts to reconfigure, even if I have manual seetings rather than via DHCP.



Suggestions welcome.


vBox on your Mac has probably created a virtual switch and its own DHCP server that's dishing out IPs to the 10.x.y.z subnet, then there's an extra layer of NAT to your home router's subnet.

You could try vbox bridged netwoking instead.

In message snipped-for-privacy@mid.individual.net>, Tim Streater snipped-for-privacy@greenbee.net writes

When I run a VM (Windows or Linux), I always end up with a 10.*.*.* address rather than a 192.168.*.* The host OS is W10 though which might change things.

Adrian

You need to set the VM to use bridged networking not NAT.

Yes - thanks - this was the issue. I recall now that I'd fixed this for the Win7 and Win10 VMs, but contrary to my normal practice I'd not changed that for the Linux VM. Working now.

Umm. I think the answer lies in how you configure networking in the VM. I ended up in this s*it and I think I chose 'bridge mode' to get to what you want.

Mmm. Apparently not. It is currently 'attached to NAT' and 'cable connected' in the network dialogue box.

Switching to bridged mode fixed it.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required