From owner-freebsd-virtualization@FreeBSD.ORG Tue Feb 25 01:25:33 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 5E17896A for ; Tue, 25 Feb 2014 01:25:33 +0000 (UTC) Received: from mail-pb0-x230.google.com (mail-pb0-x230.google.com [IPv6:2607:f8b0:400e: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 302721D66 for ; Tue, 25 Feb 2014 01:25:33 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id md12so3151067pbc.21 for ; Mon, 24 Feb 2014 17:25:32 -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 :content-type; bh=qVMrLFgD7ouB0Wo+kU+thBBP8oIokmdiODhZofZXLiQ=; b=D2W3R5M9hfdmMtO59YoJ8ryr8CnePZ8wA9DdEnvZ+OeEbJOGV1c7joHkqiw6NFFgTt cpho//+o46spUJX1QhLaXMZ6I/zYtyckBbQzkRW92BRmxpdvmP/3PQAzvu6poIGbagt2 pmmb4trHtDx5c4YvYdxnYPYHlzUXkQJtH3UOIxsBkWpfMVgulzSUCI2M3IJiaovlvB4I 5QHvm9DE+Xfn4pEgnirQQgdJumTqrghRU0tf7eCpfhqw75ieN3ykF4hAogFnpM5bSi9R 5JLfHSj87ItcsXTjR6QIce5mrYkCGPce+7WY+LGj3sXMlsYuGxwNVCKoX7pnxw1CLmiL 3b/w== MIME-Version: 1.0 X-Received: by 10.68.139.73 with SMTP id qw9mr2967424pbb.121.1393291532765; Mon, 24 Feb 2014 17:25:32 -0800 (PST) Received: by 10.68.155.38 with HTTP; Mon, 24 Feb 2014 17:25:32 -0800 (PST) In-Reply-To: References: Date: Mon, 24 Feb 2014 20:25:32 -0500 Message-ID: Subject: Re: 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:25:33 -0000 Forgot that net.inet.ip.forwarding=1 On Mon, Feb 24, 2014 at 8:20 PM, Aryeh Friedman wrote: > 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 > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org