Date: Mon, 29 Apr 2019 20:38:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 237660] Networking bridge config with vlan bug? Message-ID: <bug-237660-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237660 Bug ID: 237660 Summary: Networking bridge config with vlan bug? Product: Base System Version: 12.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: peo_s@incedo.org Hi I have a firewall where I have named vlan interfaces and the IP:s directly = on the vlan interfaces. All good there... Now... To use bhyve with vlans in bridge setups I think I have found a bug (This is just a lab as I usually use SR-IOV...) Now I have struggled a bit, but now know what is wrong.... This is FreeBSD 12.0p3 relese #### This is my switch port.=20 interface 1/g8 description 'MISC TRUNK - LABORATION' switchport mode trunk switchport trunk native vlan 2008 switchport trunk allowed vlan 2-4,21,899,2008 vlan participation exclude 1,999 exit Setting an IP directly on the vlan interface and it works OK Setting an IP directly on a bridge not connected to a vlan and it works OK = (but of course the switch port must be reconfigured for that first to an access port) But... if I try to set the IP on the bridge that has a named vlan interface attached, it simply did not work to communicate. I have used this vlan config scheme below a-lot before, but not with bridge= s. It looks 100% ok with ifconfig. But it does not work. #### *NOT* WORKING #### ifconfig_re0=3D"up" cloned_interfaces=3D"bridge2 " vlans_re0=3D"vlan2" create_args_vlan2=3D"vlan 2" ifconfig_vlan2_descr=3D"Local LAN network interface (vlan 2)" ifconfig_bridge2_name=3D"LAN_BRIDGE" ifconfig_LAN_BRIDGE=3D"inet 192.168.0.35/24 addm vlan2 up" ifconfig_vlan2=3D"up" Now... I had to try something... :) so I rewrote the config in a different = way. This also looks ok with ifconfig. Bu THIS, THIS WORKS. #### WORKING #### ifconfig_re0=3D"up" cloned_interfaces=3D"bridge2" vlans_re0=3D"2" ifconfig_re0_2_descr=3D"Local LAN network interface (vlan 2)" ifconfig_bridge2=3D"inet 192.168.0.35/24 addm re0.2 up" ifconfig_re0_2=3D"up" I think there maybe is a bug. Otherwise, please enlighten me of my stupidit= y :) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-237660-227>