Setting up network from virtual machine
Allan Jude
allanjude at freebsd.org
Fri Sep 4 01:53:55 UTC 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20150903/b39d3721/attachment.bin>
More information about the freebsd-hackers
mailing list