From owner-freebsd-hackers@freebsd.org Fri Sep 4 02:12:22 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 1B6C39C9D1B for ; Fri, 4 Sep 2015 02:12:22 +0000 (UTC) (envelope-from starkbeats@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 996A3D4A; Fri, 4 Sep 2015 02:12:21 +0000 (UTC) (envelope-from starkbeats@gmail.com) Received: by lbpo4 with SMTP id o4so3798930lbp.2; Thu, 03 Sep 2015 19:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=imjYKPU5OWSqV6v64k8vKbKImn8Z0x51brbqgWEHYsM=; b=zm9nclL9U9y1gN3LVi4uPcqXM1a4Gq6aXDJVmKKK7zFG/tivnIf0e/6RF9ZyUUj7sK 1dZIm3Ru6Ac003/35VMov4hRC5wohVKcCmBrgkCZgpkSOWqwBZPaP0u+5a+Ed3YvHOEv tMQmhsPPYhqzDQN0lRLqGvPjbI1CetmQWZvnkW8wmWOYLoPTH9BBVZVlbyE0wqoo1Pt1 Y4T5Fx+UP1ryxAa5pGiWBX6b6ANp6yj2riqUdc6BGDZm93FRFoZXGY3ke3lvrUW6LcUO JzH7zoYm7vlnTNaLIcfcsUE5rY0dnVDGivzokKqpEF5/44oe6VUfaGv/kwKYnodeahm9 ahQw== X-Received: by 10.152.23.234 with SMTP id p10mr1093817laf.52.1441332739608; Thu, 03 Sep 2015 19:12:19 -0700 (PDT) Received: from [192.168.0.2] (c83-251-248-85.bredband.comhem.se. [83.251.248.85]) by smtp.gmail.com with ESMTPSA id w5sm187631laa.17.2015.09.03.19.12.18 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Sep 2015 19:12:19 -0700 (PDT) Subject: Re: Setting up network from virtual machine Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Fredrik In-Reply-To: <55E8F9E8.9030005@freebsd.org> Date: Fri, 4 Sep 2015 04:15:07 +0200 Cc: freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <55E8F9E8.9030005@freebsd.org> To: Allan Jude X-Mailer: Apple Mail (2.1085) 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 02:12:22 -0000 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, >>=20 >> 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. >>=20 >> 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=3D"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. >>=20 >> Could someone tell me what's going on here, or if I miss something = (very 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.org" >>=20 >=20 > You cannot have a default route until you have an IP address. I assume > you are expecting an automatic IP address via DHCP? >=20 > so add: >=20 > ifconfig_em0=3D"DHCP" >=20 > or run 'dhclient em0' if you want to do it manually >=20 > --=20 > Allan Jude >=20