From owner-freebsd-virtualization@FreeBSD.ORG Fri Feb 7 20:03:20 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 C18EEFEF for ; Fri, 7 Feb 2014 20:03:20 +0000 (UTC) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 804C613C9 for ; Fri, 7 Feb 2014 20:03:20 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id e16so6821259qcx.35 for ; Fri, 07 Feb 2014 12:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=78D1VQfzMK+L+1vdybsG+uUpmiOiwdqg3kWvHRnjPNs=; b=EjUU7CKbFtIJjwqSoWLTgJpyBghEEqDMO9oOG8XQnvl61PnGb3XIXjZe/OHoRDzJUz FZcXuCnkWUadr4OJ593Vvi1ppnTJG7FnDu4CEJkrTbpapoLcPR0kVTVSanlrZCtgqlyX qZVR9LIuWk4vl2YQA3VEML5WKHA1Cz7kaAK7uwR8FaOo/VdQWygEhnKNxAdBkLPGTaDs fwYA2d6rLpq1ainI+GITY5imm7FcItfhv2JLGkxdYD/7PPn+MZxTBQEtyEmG4+uUnh1T BvSFRmnnrp6GHsB2qJVml+EpgOje63dosTvaJZoqGLQeOvimpiT/JP7WkpCEMz3qc+X2 D2Kg== MIME-Version: 1.0 X-Received: by 10.224.16.72 with SMTP id n8mr25909874qaa.76.1391803399662; Fri, 07 Feb 2014 12:03:19 -0800 (PST) Received: by 10.224.42.7 with HTTP; Fri, 7 Feb 2014 12:03:19 -0800 (PST) Date: Fri, 7 Feb 2014 21:03:19 +0100 Message-ID: Subject: Networking issues From: ickler@gmail.com To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Fri, 07 Feb 2014 20:03:20 -0000 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? Thanks in advance, Sebastian