From owner-freebsd-virtualization@FreeBSD.ORG Mon Feb 10 01:18:03 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7A16AE4B for ; Mon, 10 Feb 2014 01:18:03 +0000 (UTC) Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com [IPv6:2607:f8b0:400d:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F2CED1AA4 for ; Mon, 10 Feb 2014 01:18:02 +0000 (UTC) Received: by mail-qa0-f51.google.com with SMTP id f11so8564924qae.24 for ; Sun, 09 Feb 2014 17:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vUu0ltiG3gpL5+l1rkhMNLRlrHIrMjTj7zKP6A1Hj0k=; b=GMQfxyB0esjgGfz/9PK26s2DqvtcQcZkpHFWiOHJ++mhyVj4wIrAIbwQnxOA01IwTJ r4V78DLzlOtPxmnBxIC6QCRLMd+w4fCqvF3hY2NO8w/MMDuxBpBXeyyLXNvabviNSKDQ Eyavn5F3kXepOqV/um88STm7WvS+djt8qExoceJIr3rKwiJCNhlTqx4CKqK0jc9IdfdN eTAd2vqhW3eDAoviTAt0lD1XI/Z7vkfKHwlg8eHky/3xwCVg6OVGd3ZGx385gjLP4HRc gLtloc+9fGgo/6COI31zpgE+gkJzZf1DytKou8PTwO9CbscDtyRE5BGNEGn1F0dvAGjg yeLw== MIME-Version: 1.0 X-Received: by 10.224.166.137 with SMTP id m9mr10222560qay.81.1391995082146; Sun, 09 Feb 2014 17:18:02 -0800 (PST) Received: by 10.140.87.71 with HTTP; Sun, 9 Feb 2014 17:18:02 -0800 (PST) In-Reply-To: References: Date: Sun, 9 Feb 2014 17:18:02 -0800 Message-ID: Subject: Re: Networking issues From: Neel Natu To: ickler@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2014 01:18:03 -0000 Hi Sebastian, On Fri, Feb 7, 2014 at 12:03 PM, wrote: > Hello virtualization-lovers, > > I am very dedicated to FreeBSD since 7.2 and welcome the new bhyve > hypervisor. :) > > So I set everything up, launched the guest and set up the network. The > problem now is, I can reach the host IP, but not the default gateway. Did I > forget to set something up? > The system is a hosted root box. > > My current setup (i changed the IP's except the last octet): > ---snip--- > host: > # ifconfig > re0: flags=8943 metric 0 > mtu 1500 > > options=82099 > ether 30:85:a9:ed:01:22 > inet 192.168.0.137 netmask 0xffffffe0 broadcast 192.168.0.159 > inet6 fe80::3285:a9ff:feed:122%re0 prefixlen 64 scopeid 0x1 > nd6 options=29 > media: Ethernet autoselect (1000baseT ) > status: active > bridge0: flags=8843 metric 0 mtu > 1500 > ether 02:0d:2a:df:6e:00 > nd6 options=1 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap0 flags=143 > ifmaxaddr 0 port 4 priority 128 path cost 2000000 > member: re0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > tap0: flags=8943 metric 0 > mtu 1500 > options=80000 > ether 00:bd:fe:79:0e:00 > nd6 options=29 > media: Ethernet autoselect > status: active > Opened by PID 16910 > > # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 5.9.157.129 UGS 0 293321 re0 > 192.168.0.128/27 link#1 U 0 30 re0 > 192.168.0.137 link#1 UHS 0 0 lo0 > 127.0.0.1 link#2 UH 0 1606 lo0 > > ---snip--- > > ---snip--- > guest: > # ifconfig > vtnet0: flags=8943 metric 0 > mtu 1500 > options=80028 > ether 00:a0:98:18:c4:69 > inet 192.168.0.154 netmask 0xffffffe0 broadcast 192.168.0.159 > inet6 fe80::2a0:98ff:fe18:c469%vtnet0 prefixlen 64 scopeid 0x1 > nd6 options=29 > media: Ethernet 10Gbase-T > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=600003 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21 > > # netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 5.9.157.129 UGS 0 418 vtnet0 > 192.168.0.128/27 link#1 U 0 24 vtnet0 > 192.168.0.154 link#1 UHS 0 0 lo0 > 127.0.0.1 link#2 UH 0 24 lo0 > > ---snip--- > > ping host -> guest works > > # ping 192.168.0.154 > PING 192.168.0.154 (192.168.0.154): 56 data bytes > 64 bytes from 192.168.0.154: icmp_seq=0 ttl=64 time=0.083 ms > 64 bytes from 192.168.0.154: icmp_seq=1 ttl=64 time=0.094 ms > > > ping guest -> host works > > # ping 192.168.0.137 > PING 192.168.0.137 (192.168.0.137): 56 data bytes > 64 bytes from 192.168.0.137: icmp_seq=0 ttl=64 time=0.398 ms > 64 bytes from 192.168.0.137: icmp_seq=1 ttl=64 time=0.069 ms > > > ping 173.194.70.102 (google.com) from guest - doesn't work... > # ping 173.194.70.102 > PING 173.194.70.102 (173.194.70.102): 56 data bytes > --- 173.194.70.102 ping statistics --- > 3 packets transmitted, 0 packets received, 100.0% packet loss > > tcpdump listening on the host: > > # tcpdump -N -vv -i bridge0 > tcpdump: WARNING: bridge0: no IPv4 address assigned > tcpdump: listening on bridge0, link-type EN10MB (Ethernet), capture size > 65535 bytes > 19:58:19.139767 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has static > tell 192.168.0.137, length 46 > > ---^ same on tap0 > > > What's wrong with that setup? Did I forget to set a proper route? Or is it > a MAC address issue? > Can you ping the default router from your guest? Also, I was bit puzzled that the default router is 5.9.157.129 on a 192.168.0.128/27 subnet. Should I read it as 192.168.0.129 instead? best Neel > Thanks in advance, > > Sebastian > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"