iohyve icon indicating copy to clipboard operation
iohyve copied to clipboard

MTU size mismatch on bridge0 and tapX

Open swaor opened this issue 5 years ago • 0 comments

Hi! When MTU size is another than 1500, is a problem.

Network interfaces (with fixed problem):

em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 8232 options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:25:90:a0:ee:99 hwaddr 00:25:90:a0:ee:99 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: no carrier em1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 8232 options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:25:90:a0:ee:99 hwaddr 00:25:90:a0:ee:98 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,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> groups: lo lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 8232 options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC> ether 00:25:90:a0:ee:99 inet 192.168.16.16 netmask 0xffffff00 broadcast 192.168.16.255 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: active groups: lagg laggproto lacp lagghash l2,l3,l4 laggport: em0 flags=0<> laggport: em1 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 8232 description: iohyve-bridge-lagg0 ether 02:e4:10:39:cd: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 6 priority 128 path cost 2000000 member: lagg0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 4 priority 128 path cost 20000 tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 8232 description: iohyve-docker-- options=80000<LINKSTATE> ether 00:bd:8e:cf:cb:00 hwaddr 00:bd:8e:cf:cb:00 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: active groups: tap Opened by PID 81275

iohyve added interface tap0 with MTU 1500. But bridge0 has MTU 8232, and add tap0 to bridge0 (ifconfig bridge0 addm tap0) has error: ifconfig: BRDGADD tap0: Invalid argument`

Need create tapX interfaces with MTU like bridge0.

ps. Sorry for my english. It's not my native language.

swaor avatar Mar 09 '19 23:03 swaor