Date: Thu, 3 Sep 2015 21:54:48 -0400 From: Allan Jude <allanjude@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Setting up network from virtual machine Message-ID: <55E8F9E8.9030005@freebsd.org> In-Reply-To: <CD829B03-5D42-447B-8661-AA5752AC25AC@gmail.com> References: <CD829B03-5D42-447B-8661-AA5752AC25AC@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PShBPXkDCIdbTHnDBcus2lIKA8CF1SdtD Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-09-03 21:35, Fredrik wrote: > Hello, >=20 > This is I assume quite a basic issue. I'm trying to run FreeBSD 10.2 fr= om 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 interf= ace to bridge to my native interface, called en0 Ethernet. >=20 > If I try ifconfig em0 I see that the interface is active but no IP addr= ess is assigned. I tried to add a default route in /etc/rc.conf set to: d= efaultrouter=3D"192.168.100.1" which is the IP of my router. I then reboo= ted the VM, but netstat -rn shows empty space under routing tables. >=20 > Could someone tell me what's going on here, or if I miss something (ver= y likely).=20 >=20 >=20 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.o= rg" >=20 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=3D"DHCP" or run 'dhclient em0' if you want to do it manually --=20 Allan Jude --PShBPXkDCIdbTHnDBcus2lIKA8CF1SdtD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJV6PnrAAoJEBmVNT4SmAt+Kh8P/AqqrQrsAB57FYskpiiM0qgi V2aZh14vK0d4vbtxYJ+6kbfm+tfnVc/1odiwnPzp2h0geD7cX4xq6milnGuGmerT +JnXSrlq8nG3NMZmz2OtHmtVVZQsqUZsdkfZ8d8PmnbKJ8FGOGKBeeepIVIWaI2n eNuIi6vdft4Q0yrNyy0H1H9bED6EBetd3VbqiGZqKGCFr40h45x62fj1CGn5TUW0 3wobr9OvlXv1UX7c8yEOC0i2GwTde7P4G/DUQsvGdE3kGaHeQFlp2jWOeiu6tt8D K+vz7E1gTrCotRbRSyDuPZg0Qo4LZSeENP2VeyI2w8vG9dhSA/kqGRAPsKS0odMd VAqv3rMjvh2qJiEqb8h9WaqCC2rkBarL0PHm4lTJNA/ht97ZEniaGP2OJNclEp9r YDpiLqiVqB+fMCCQflVFQGGde+W4q8KYlpxH6am+BiFmDHkepYFcKkr8ltFa0U15 t7B30hxkmw4UNK1LaOR6B/Zw8Y4hUBhWVh/JnreJVbfMM4TgpxfWDv2GVhmG/Deu 3WeC8MaqarEGFUcrC/tSA1DqnwGpPhyOwlIaJcFVztoBaVqGI54w4/4S1cfUe3ku e+07SEO7BdnY0dEwUXB6+jjHEftvsqy4qVgSWY6qA3g2umkGu1ftj9vysz1FQRcv I26hLpQA3s4ylOl0ro5I =xa2u -----END PGP SIGNATURE----- --PShBPXkDCIdbTHnDBcus2lIKA8CF1SdtD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E8F9E8.9030005>