Date: Fri, 4 Sep 2015 04:15:07 +0200 From: Fredrik <starkbeats@gmail.com> To: Allan Jude <allanjude@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Setting up network from virtual machine Message-ID: <DC995BB7-33F5-4F56-9FD6-A4760A4928ED@gmail.com> In-Reply-To: <55E8F9E8.9030005@freebsd.org> References: <CD829B03-5D42-447B-8661-AA5752AC25AC@gmail.com> <55E8F9E8.9030005@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DC995BB7-33F5-4F56-9FD6-A4760A4928ED>
