On 2016-03-16 23:29, Russell L. Carter wrote:
> Greetings,
> 
> I have installed the latest -current snapshot iso as a bhyve guest on
> a -stable host, and I am unable to ping the network from either side.
> This is my first attempt at bhyve virtualization so likely I have made
> an error somewhere.
> 
> I'm using the git iohyve script to orchestrate the install, but from
> looking at the commits and the script source (which is written quite
> beautifully), I don't see anything troublesome.
> 
> So here is what I see from inside the bhyve FreeBSD-current VM:
> 
> root@freebsd-current:~ # route -n show default
>    route to: 0.0.0.0
> destination: 0.0.0.0
>        mask: 0.0.0.0
>     gateway: 10.0.10.5
>         fib: 0
>   interface: vtnet0
>       flags: <UP,GATEWAY,DONE,STATIC>
>  recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
>        0         0         0         0      1500         1         0
> 
> root@freebsd-current:~ # ifconfig -a
> vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST>
> metric 0 mtu 1500
>         options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
>         ether 00:a0:98:98:e6:ad
>         inet 10.0.10.20 netmask 0xffffff00 broadcast 10.0.10.255
>         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>
>         groups: lo
> 
> And then, on the host side:
> 
> root@feyerabend> ifconfig -a
> em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0
> mtu 1500
> 
> options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
> 
>         ether 00:15:17:bc:29:ba
>         inet 10.0.10.6 netmask 0xffffff00 broadcast 10.0.10.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (1000baseT <full-duplex>)
>         status: active
> em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 
> options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
> 
>         ether 00:15:17:bc:29:bb
>         inet 10.0.11.6 netmask 0xffffff00 broadcast 10.0.11.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect (1000baseT <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 0x3
>         inet 127.0.0.1 netmask 0xff000000
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
>         description: iohyve-bridge
>         ether 02:63:ec:5e:4b: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: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
>                 ifmaxaddr 0 port 1 priority 128 path cost 20000
> tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         description: iohyve-FreeBSD-current
>         options=80000<LINKSTATE>
>         ether 00:bd:81:b8:05:00
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: Ethernet autoselect
>         status: active
>         Opened by PID 1370
> root@feyerabend> route -n show default
>    route to: 0.0.0.0
> destination: 0.0.0.0
>        mask: 0.0.0.0
>     gateway: 10.0.10.5
>         fib: 0
>   interface: em0
>       flags: <UP,GATEWAY,DONE,STATIC>
>  recvpipe  sendpipe  ssthresh  rtt,msec    mtu        weight    expire
>        0         0         0         0      1500         1         0
> root@feyerabend>
> 
> Any ideas appreciated.
> 
> Best regards,
> Russell
> _______________________________________________
> freebsd-virtualization@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
> To unsubscribe, send any mail to
> "freebsd-virtualization-unsubscr...@freebsd.org"

Your tap0 is not a member of the bridge0.

run: ifconfig bridge0 addm tap0

-- 
Allan Jude

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to