From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 25 01:20:39 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E50A780 for ; Tue, 25 Feb 2014 01:20:39 +0000 (UTC) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 31EA41CCD for ; Tue, 25 Feb 2014 01:20:39 +0000 (UTC) Received: by mail-pb0-f51.google.com with SMTP id un15so7312513pbc.24 for ; Mon, 24 Feb 2014 17:20:38 -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=G22BsxlPnP8Q/sCRc+TdqKAJZsxMmU8kwkvxT7HQ+CU=; b=igBUxLLmtBYf546CvxEgvmmj7xdievmmpYbsqeNOvmkYqq29W4Ynd0tB+cmkgFyKLM MVdtoy97DMb1L312Fmg4PgiqD3m7ICYo2YTcGk6MHVexuLvNfHdede6dw2JwrUzvC3KA /LPU5+cyydoF/UUVpybYJgplsQNYC+EDI3khorK0/Ei2WfWuTh4aAwUAjhLGEDwfTmYH Yx3ynWX2h7q8C85eamRxjoWXIFqWxfL5s8pmOVQJz8+e1dnxZqdFo76Zspc+gnHKZN+X kHtQyspzmZDgJBb/DYobobTT9aUbBsj6EBse6HRHjUxiMwtWZXQmbtLpLLQA2twQ3CIq XWbA== MIME-Version: 1.0 X-Received: by 10.66.149.37 with SMTP id tx5mr17144812pab.81.1393291237918; Mon, 24 Feb 2014 17:20:37 -0800 (PST) Received: by 10.68.155.38 with HTTP; Mon, 24 Feb 2014 17:20:37 -0800 (PST) Date: Mon, 24 Feb 2014 20:20:37 -0500 Message-ID: Subject: correctly putting all bhyve vm's on the same internal networtk From: Aryeh Friedman To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 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: Tue, 25 Feb 2014 01:20:39 -0000 Setting up a ineternal network on the bridge nic seems to now allow guests to communicate (see below for failed attempt transcript) root@lilith:/tmp # ifconfig bridge0 192.168.0.1 ... Install an instance and put it on 192.168.0.2 ... Host: root@lilith:/tmp # netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.0.10.1 UGS 0 0 re0 10.0.10.0/24 link#2 U 0 107642 re0 10.0.10.20 link#2 UHS 0 0 lo0 127.0.0.1 link#3 UH 0 4 lo0 192.168.0.0/24 link#4 U 0 316 bridge 192.168.0.1 link#4 UHS 0 68 lo0 ... ral0: flags=8802 metric 0 mtu 2290 ether 20:10:7a:58:b9:29 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier re0: flags=8943 metric 0 mtu 1500 options=82099 ether e8:40:f2:97:38:d1 inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:66:19:ad:68:00 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 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: tap8 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 member: tap3 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: re0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 20000 tap3: flags=8902 metric 0 mtu 1500 options=80000 ether 00:bd:1a:4b:06:03 nd6 options=21 media: Ethernet autoselect status: no carrier tap8: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:65:09:16:08 inet6 fe80::2bd:65ff:fe09:1608%tap8 prefixlen 64 scopeid 0x6 nd6 options=21 media: Ethernet autoselect status: active Opened by PID 1362 root@lilith:/tmp # ifconfig ral0: flags=8802 metric 0 mtu 2290 ether 20:10:7a:58:b9:29 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier re0: flags=8943 metric 0 mtu 1500 options=82099 ether e8:40:f2:97:38:d1 inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:66:19:ad:68:00 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 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: tap8 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 member: tap3 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: re0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 20000 tap3: flags=8902 metric 0 mtu 1500 options=80000 ether 00:bd:1a:4b:06:03 nd6 options=21 media: Ethernet autoselect status: no carrier tap8: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:65:09:16:08 inet6 fe80::2bd:65ff:fe09:1608%tap8 prefixlen 64 scopeid 0x6 nd6 options=21 media: Ethernet autoselect status: active Opened by PID 1362 root@lilith:/tmp # root@lilith:/tmp # root@lilith:/tmp # ifconfig ral0: flags=8802 metric 0 mtu 2290 ether 20:10:7a:58:b9:29 nd6 options=21 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier re0: flags=8943 metric 0 mtu 1500 options=82099 ether e8:40:f2:97:38:d1 inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255 nd6 options=29 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 bridge0: flags=8843 metric 0 mtu 1500 ether 02:66:19:ad:68:00 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 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: tap8 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 member: tap3 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 member: re0 flags=143 ifmaxaddr 0 port 2 priority 128 path cost 20000 tap3: flags=8902 metric 0 mtu 1500 options=80000 ether 00:bd:1a:4b:06:03 nd6 options=21 media: Ethernet autoselect status: no carrier tap8: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:65:09:16:08 inet6 fe80::2bd:65ff:fe09:1608%tap8 prefixlen 64 scopeid 0x6 nd6 options=21 media: Ethernet autoselect status: active Opened by PID 1362 ... root@lilith:/tmp # ping 128.114.27.16 PING 128.114.27.16 (128.114.27.16): 56 data bytes 64 bytes from 128.114.27.16: icmp_seq=0 ttl=45 time=164.864 ms 64 bytes from 128.114.27.16: icmp_seq=1 ttl=45 time=184.155 ms 64 bytes from 128.114.27.16: icmp_seq=2 ttl=45 time=222.135 ms ... $ ping 192.168.0.2 PING 192.168.0.2 (192.168.0.2): 56 data bytes 64 bytes from 192.168.0.2 : icmp_seq=0 ttl=64 time=0.225 ms 64 bytes from 192.168.0.2 : icmp_seq=1 ttl=64 time=3.790 ms ... login into guest ... $ ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=0.225 ms 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=3.790 ms ^C --- 192.168.0.1 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.225/2.007/3.790/1.783 ms $ ping 10.0.10.20 PING 10.0.10.20 (10.0.10.20): 56 data bytes 64 bytes from 10.0.10.20: icmp_seq=0 ttl=64 time=0.222 ms 64 bytes from 10.0.10.20: icmp_seq=1 ttl=64 time=0.121 ms ^C --- 10.0.10.20 ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.121/0.171/0.222/0.051 ms $ ping 10.0.10.1 PING 10.0.10.1 (10.0.10.1): 56 data bytes ^C --- 10.0.10.1 ping statistics --- -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org