Hello,
I have an issue with tap interface participating the bridge. The ]tap interface doesn't seems to receive anything, but it does send staff.
I have recently update the BSD
# uname -mrs -> FreeBSD 12.1-RELEASE-p7 amd64
Here is what I done:
Now if I run dhclient inside virtual machine (which is using tap11) here is what I got in tcpdump:
Please pay attention to tap mac address and the address which is visible from the vm guest:
mac on guest 00:a0:98:c4:01:57
mac on tap 00:bd:02:1a:f7:0b
also the received packet counter on the guest machine shows 0 all the time....
here is the output of the netstat: (credits to <RhodiumToad> on freebsd irc)
- the amount of Oerrs on bridge, slowly increasing...
- the amount of Opkts on tap11 - stay the same while Ipkts increasing ...
I think i'am not the only one who experience the same issue: https://forums.freebsd.org/threads/iohyve-networking-issue.76037/#post-468970
also please note, no firewalls are enabled....
Thanks in advance...
I have an issue with tap interface participating the bridge. The ]tap interface doesn't seems to receive anything, but it does send staff.
I have recently update the BSD
# uname -mrs -> FreeBSD 12.1-RELEASE-p7 amd64
Here is what I done:
Code:
# bge0 - lan interface
# sysctl net.link.tap.up_on_open
net.link.tap.up_on_open: 1
# ifconfig bridge0 create
# ifconfig tap11 create
# ifconfig bridge0 addm tap11 bge0
# ifconfig bge0 up # just in case...
# ifconfig tap11 up
# ifconfig tap11
tap11: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:02:1a:f7:0b
groups: tap
media: Ethernet autoselect
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Opened by PID 3777
# ifconfig bridge0
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:76:87:07:be:00
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: bge1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 2 priority 128 path cost 2000000
member: tap11 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 5 priority 128 path cost 2000000
member: bge0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 55
groups: bridge
nd6 options=9<PERFORMNUD,IFDISABLED>
Now if I run dhclient inside virtual machine (which is using tap11) here is what I got in tcpdump:
Code:
tcpdump -vv -i <interface>
---------------------------------------------------------------------------
BRIDGE
14:23:00.740429 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:a0:98:c4:01:57 (oui Unknown), length 300, xid 0x146abb0f, Flags [none] (0x0000)
Client-Ethernet-Address 00:a0:98:c4:01:57 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Parameter-Request Option 55, length 7:
Subnet-Mask, BR, Time-Zone, Default-Gateway
Domain-Name, Domain-Name-Server, Hostname
Client-ID Option 61, length 19: hardware-type 255, 98:c4:01:57:00:01:00:01:26:9c:6b:51:00:a0:98:c4:01:57
14:23:00.741089 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
10.51.0.1.bootps > 10.51.0.54.bootpc: [udp sum ok] BOOTP/DHCP, Reply, length 300, xid 0x146abb0f, Flags [none] (0x0000)
Your-IP 10.51.0.54
Client-Ethernet-Address 00:a0:98:c4:01:57 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Offer
Server-ID Option 54, length 4: 10.51.0.1
Lease-Time Option 51, length 4: 86400
Subnet-Mask Option 1, length 4: 255.255.255.0
BR Option 28, length 4: 10.51.0.255
Default-Gateway Option 3, length 4: 10.51.0.1
Domain-Name Option 15, length 4: "itcs"
Domain-Name-Server Option 6, length 4: 10.51.0.1
--------------------------------------------------------------------------
TAP
14:22:41.641348 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:a0:98:c4:01:57 (oui Unknown), length 300, xid 0x68a8bd2c, secs 58, Flags [none] (0x0000)
Client-Ethernet-Address 00:a0:98:c4:01:57 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Parameter-Request Option 55, length 7:
Subnet-Mask, BR, Time-Zone, Default-Gateway
Domain-Name, Domain-Name-Server, Hostname
Client-ID Option 61, length 19: hardware-type 255, 98:c4:01:57:00:01:00:01:26:9c:6b:51:00:a0:98:c4:01:57
14:23:00.740422 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:a0:98:c4:01:57 (oui Unknown), length 300, xid 0x146abb0f, Flags [none] (0x0000)
Client-Ethernet-Address 00:a0:98:c4:01:57 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Parameter-Request Option 55, length 7:
Subnet-Mask, BR, Time-Zone, Default-Gateway
Domain-Name, Domain-Name-Server, Hostname
Client-ID Option 61, length 19: hardware-type 255, 98:c4:01:57:00:01:00:01:26:9c:6b:51:00:a0:98:c4:01:57
14:23:09.172556 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
0.0.0.0.bootpc > 255.255.255.255.bootps: [udp sum ok] BOOTP/DHCP, Request from 00:a0:98:c4:01:57 (oui Unknown), length 300, xid 0x146abb0f, secs 8, Flags [none] (0x0000)
Client-Ethernet-Address 00:a0:98:c4:01:57 (oui Unknown)
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Discover
Parameter-Request Option 55, length 7:
Subnet-Mask, BR, Time-Zone, Default-Gateway
Domain-Name, Domain-Name-Server, Hostname
Client-ID Option 61, length 19: hardware-type 255, 98:c4:01:57:00:01:00:01:26:9c:6b:51:00:a0:98:c4:01:57
Please pay attention to tap mac address and the address which is visible from the vm guest:
mac on guest 00:a0:98:c4:01:57
mac on tap 00:bd:02:1a:f7:0b
also the received packet counter on the guest machine shows 0 all the time....
here is the output of the netstat: (credits to <RhodiumToad> on freebsd irc)
- the amount of Oerrs on bridge, slowly increasing...
- the amount of Opkts on tap11 - stay the same while Ipkts increasing ...
Code:
# netstat -in
Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll
bge0 1500 <Link#1> 4c:d9:8f:b6:0b:9d 232753649 2 0 119002207 0 0
bge0 - 10.51.0.0/24 10.51.0.97 232729261 - - 118991519 - -
bge1 1500 <Link#2> 4c:d9:8f:b6:0b:9e 9068 0 0 27695 0 0
lo0 16384 <Link#3> lo0 780 0 0 780 0 0
lo0 - ::1/128 ::1 0 - - 0 - -
lo0 - fe80::%lo0/64 fe80::1%lo0 0 - - 0 - -
lo0 - 127.0.0.0/8 127.0.0.1 780 - - 780 - -
bridg 1500 <Link#4> 02:76:87:07:be:00 39509 0 0 119030052 13351 0
tap11 1500 <Link#5> 00:bd:02:1a:f7:0b 2035 0 0 150 0 0
I think i'am not the only one who experience the same issue: https://forums.freebsd.org/threads/iohyve-networking-issue.76037/#post-468970
also please note, no firewalls are enabled....
Thanks in advance...
Last edited by a moderator: