Setting up network from virtual machine
Fredrik
starkbeats at gmail.com
Fri Sep 4 02:12:22 UTC 2015
Allan, thank you. The ifconfig setting was set to msk0, I commented out this and added em0. Resolved this issue.
Fredrik
4 sep 2015 kl. 03.54 skrev Allan Jude:
> On 2015-09-03 21:35, Fredrik wrote:
>> Hello,
>>
>> This is I assume quite a basic issue. I'm trying to run FreeBSD 10.2 from a memory stick in a virtual machine. I have an issue with the network however. I first tried this in qemu and later tried in VirtualBox in the hopes that would work better. In VirtualBox I have set the network interface to bridge to my native interface, called en0 Ethernet.
>>
>> If I try ifconfig em0 I see that the interface is active but no IP address is assigned. I tried to add a default route in /etc/rc.conf set to: defaultrouter="192.168.100.1" which is the IP of my router. I then rebooted the VM, but netstat -rn shows empty space under routing tables.
>>
>> Could someone tell me what's going on here, or if I miss something (very likely).
>>
>>
>> _______________________________________________
>> freebsd-hackers at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
>>
>
> You cannot have a default route until you have an IP address. I assume
> you are expecting an automatic IP address via DHCP?
>
> so add:
>
> ifconfig_em0="DHCP"
>
> or run 'dhclient em0' if you want to do it manually
>
> --
> Allan Jude
>
More information about the freebsd-hackers
mailing list