Closed narkisr closed 8 years ago
I am unable to reproduce this. I have DHCP working on a host with a Realtec adapter.
Iv set the bridge on re0
How did you accomplish this? I don't see re0
as a member of bridge0
in your ifconfig
output.
After running iohyve setup net=re0
my ifconfig
output looks like this:
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 XXXXXXXXXXXX
inet XXXXXXXX netmask 0xffffff00 broadcast XXXXXX
inet XXXXXXX netmask 0xffff0000 broadcast XXXXXX
inet6 XXXXXXXXXXX prefixlen 64 scopeid 0x1
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
media: Ethernet autoselect (none)
status: no carrier
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
tap0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:8e:82:14:00
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: no carrier
groups: tap
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:57:1b:a5:a5:00
nd6 options=1<PERFORMNUD>
groups: bridge
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 3 priority 128 path cost 2000000
member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
If you roll your own rc.conf
instead of having iohyve take care of it, you might have an issue there.
If I ran the setup (again):
iohyve setup net=re0 <<<
bridge0 is already enabled on this machine...
Following what you saw iv delete and recreated the bridge
$ ifconfig bridge0 destroy
$ sudo ./iohyve setup net=re0
Seting up bridge0 on re0...
ifconfig: create: bad value
net.link.tap.up_on_open: 1 -> 1
Iv noticed the ifconfig: create: bad value, clearing tap0 solved this as well resulting in:
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:a9:30:b5:0d: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
Iv also disabled ipfw which seemed to cause an issue, now dhcp seems to be working but DNS doesn't :)
Ok, ftp port was blocked now freebsd is installing!
I think that better docs (like what to look for after net setup) might help, also in the case of pc-bsd ipfw is enabled by default (I'm still not sure what rules to enable in order to make it work)
Thanks
I'm installing both Debian and Freebsd guests, both seems to fail to get an IP address (they do detect virtio0), my listed nics:
Iv set the bridge on re0
Thanks