From owner-freebsd-hackers@freebsd.org Fri Sep 4 01:53:55 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A63D89C9391 for ; Fri, 4 Sep 2015 01:53:55 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id 85D24664 for ; Fri, 4 Sep 2015 01:53:55 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 72EEF9A06 for ; Fri, 4 Sep 2015 01:53:49 +0000 (UTC) Subject: Re: Setting up network from virtual machine To: freebsd-hackers@freebsd.org References: From: Allan Jude Message-ID: <55E8F9E8.9030005@freebsd.org> Date: Thu, 3 Sep 2015 21:54:48 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PShBPXkDCIdbTHnDBcus2lIKA8CF1SdtD" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2015 01:53:55 -0000 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--