LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Question about IPv4 when installing DragonFly latest/5.2.2 (https://www.linuxquestions.org/questions/%2Absd-17/question-about-ipv4-when-installing-dragonfly-latest-5-2-2-a-4175636823/)

mgoblue0970 08-21-2018 02:54 PM

Question about IPv4 when installing DragonFly latest/5.2.2
 
Hello:

Someone told me to take a look at DragonFly BSD recently and I decided to take it for a spin. I downloaded the latest bzip'd ISO from their website and wired that ISO up to a VirtualBox VM.

I checked https://www.linuxquestions.org/quest...en-way-783841/ before posting. Didn't see an answer to the questions below though.

When it booted from ISO, I logged in as the installer user.

It launches a TUI and I basically selected all the defaults. I get to the configuration menu and I noticed that for configuring the network, it's set up for IPv6 by default (and won't accept an IPv4 address without throwing an error) and there's no option (like a checkbox or radio button or something) for using IPv4.

Is there a way at install time to use IPv4 for the network?

There's nothing in the DragonFly BSD documentation for this problem. It just basically describes the TUI's fields... which are defaulting to IPv6 for me.

cynwulf 08-22-2018 09:28 AM

I've always used IPv4 and had no issues. This is likely to do with how your VM is configured. As I recall, Virtualbox uses different methods such as bridging or NAT. You probably want to have a play around with those settings.

You would be better served by a bare metal install however, if that's possible.

mgoblue0970 08-22-2018 01:27 PM

Quote:

I've always used IPv4 and had no issues
I'm trying to use IPv4. It defaults to 6 during install and I cannot find a place to change it!

Quote:

This is likely to do with how your VM is configured
How so? One doesn't specify a version when enabling a NIC in the VM's settings.

Quote:

Virtualbox uses different methods such as bridging or NAT
Yes... but has nothing to do with the question.

cynwulf 08-23-2018 07:55 AM

Use DHCP and if you do not get an "inet" address, but just an "inet6" fe80:: address, it is likely to do with how your Virtualbox LAN or the host system is set up.

I've just done a test install of 5.2.2 release in Virtualbox 5.2.18 installed under a Windows host.

Using DHCP gets me an ipv4 DHCP lease with an auto assigned (fe80:: ) ipv6 address. So I can confirm that IPv4 is working and there is connectivity with the WAN/LAN.

Switching to a VT logging in as root and issuing:
Code:

# ifconfig em0
Shows an inet address in the private 10.x.x.x range. Obviously as Virtualbox acts as the NAT router, it's configuration is somewhat relevant. In this case the setting "NAT", which was the default in VirtualBox's network settings for "Adapter 1", is routing ipv4 from the host system.

I changed the setting to "host only" and again ran through the network config using DHCP and this time it acquired a DHCP lease in the 192.168.x.x range, but no route to host...

mgoblue0970 08-23-2018 04:59 PM

By default, VB routes from guest to host via NAT. In the network manager, it's in the 10.0.2.x subnet by default (but can be completely changed as deisred).

If one just wants to get network connectivity in the guest from the host's network connection, there's no need to change a thing -- that's what NAT does for you. There's no need to override the tool. Work smarter not harder.

If one wants to connect to other VMs too, the preferred method is to use multiple NICs... leaving em0 as NAT to the host and configuring a NAT Network for em1 in the network manger. Which is what I have done.

THERE IS NO SETTING IN VB TO SPECIFY IPV4 OR IPV6. I don't know how to make that any clearer.

The problem I ran into is in the TUI at install time, when specifying a IPv4 address the installer throws an error. I did notice since my OP that even though the installer barfs on a IPv4 address it still configures the NIC with the x.x.x.x address. It looks like a bug with the installer. So now I just ignore the error and press on. After rebooting from an install, the error on the IP address is never seen again.


All times are GMT -5. The time now is 02:47 PM.