Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2013 15:55:43 -0500 (CDT)
From:      Bryan Venteicher <bryanv@daemoninthecloset.org>
To:        Aryeh Friedman <aryeh.friedman@gmail.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: ot: who to report a bug in if_tap to?
Message-ID:  <407363932.15961.1376427343454.JavaMail.root@daemoninthecloset.org>
In-Reply-To: <CAGBxaXnR%2BwTcB=vK95TmVhbmDMwDc%2BU6Vv0JWMWTLBH0yX%2Bs4w@mail.gmail.com>
References:  <CAGBxaXk0_%2BN711Zu5k0bY=AB3iYmJb4C0_zK5PgGKbfpPR-t3g@mail.gmail.com> <520A6A9C.7090209@freebsd.org> <CAGBxaXnR%2BwTcB=vK95TmVhbmDMwDc%2BU6Vv0JWMWTLBH0yX%2Bs4w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


----- Original Message -----
> It is connected to the physical nic via a switch (no intermediate
> routers).   DHCP doesn't even attempt because there is no carrier on
> tap0:
> 
> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
> 	ether 30:85:a9:ec:24:95
> 	inet 10.0.10.10 netmask 0xffffff00 broadcast 10.0.10.255
> 	inet6 fe80::3285:a9ff:feec:2495%em0 prefixlen 64 scopeid 0x1
> 	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
> 	ether 90:f6:52:00:40:e6
> 	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> 	media: Ethernet autoselect (100baseTX <half-duplex>)
> 	status: no carrier
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> 	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
> 	inet 127.0.0.1 netmask 0xff000000
> 	inet6 ::1 prefixlen 128
> 	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
> 	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=80000<LINKSTATE>
> 	ether 00:bd:0c:6e:02:00
> 	inet6 fe80::2bd:cff:fe6e:200%tap0 prefixlen 64 scopeid 0x4
> 	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> 	media: Ethernet autoselect
> 	status: no carrier
> root@petitecloud:/home/aryeh # if
> if       ifconfig ifmcstat
> root@petitecloud:/home/aryeh # ifconfig bridge0 create
> root@petitecloud:/home/aryeh # ifconfig bridge0 addm em0 addm tap0
> root@petitecloud:/home/aryeh # ifconfig tap0 10.0.10.3


You need to at least up the bridge.


> bridge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	ether f6:3c:f0:0f:b9:48
> 	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 0 ifcost 0 port 0
> 	member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> 	        ifmaxaddr 0 port 4 priority 128 path cost 2000000
> 	member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
> 	        ifmaxaddr 0 port 1 priority 128 path cost 200000
> root@vcloud:/home/aryeh # dhclient tap0
> tap0: no link .............. giving up
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?407363932.15961.1376427343454.JavaMail.root>