Date: Sun, 9 Feb 2014 17:18:02 -0800 From: Neel Natu <neelnatu@gmail.com> To: ickler@gmail.com Cc: "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org> Subject: Re: Networking issues Message-ID: <CAFgRE9H18qyFZwGbRZUPDC-jntvzxS%2Bci1bG6h=GdACE1nfnXQ@mail.gmail.com> In-Reply-To: <CAHdtd93KTSLUGGbLh3CVkzbL7ft_K4a6zN-YDFXKV3ytxQruYg@mail.gmail.com> References: <CAHdtd93KTSLUGGbLh3CVkzbL7ft_K4a6zN-YDFXKV3ytxQruYg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Sebastian, On Fri, Feb 7, 2014 at 12:03 PM, <ickler@gmail.com> 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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 > mtu 1500 > > options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> > 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<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > media: Ethernet autoselect (1000baseT <full-duplex>) > status: active > bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu > 1500 > ether 02:0d:2a:df:6e:00 > nd6 options=1<PERFORMNUD> > 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<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > ifmaxaddr 0 port 4 priority 128 path cost 2000000 > member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > ifmaxaddr 0 port 1 priority 128 path cost 20000 > tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 > mtu 1500 > options=80000<LINKSTATE> > ether 00:bd:fe:79:0e:00 > nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > 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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 > mtu 1500 > options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE> > 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<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> > media: Ethernet 10Gbase-T <full-duplex> > status: active > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 > options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 > inet 127.0.0.1 netmask 0xff000000 > nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> > > # 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgRE9H18qyFZwGbRZUPDC-jntvzxS%2Bci1bG6h=GdACE1nfnXQ>