MDNS Issues

Started by x86, March 17, 2022, 04:25:03 PM

Previous topic - Next topic
Hello,
i´ve got issues with the MDNS plugin.
Current config is like this:
ix0 - LAN
ix0_vlan10 - stuff
ix0_vlan20 - other stuff
ix0_vlan30 - even more stuff

Tried from the gui to bridge the stuff and other stuff networks, MDNS Icon is red and can not be activated.
Tried to bridge lan and other stuff network, MDNS seems to be running.
Stopped it.
Switched to Shell, tried:
root@opnsense:~ # mdns-repeater -f ix0_vlan10 ix0_vlan20
mdns-repeater: send bind(): Address already in use
mdns-repeater: dev ix0_vlan10 addr 0.0.0.0 mask 0.0.0.0 net 0.0.0.0
mdns-repeater: send bind(): Address already in use
mdns-repeater: recv setsockopt(IP_ADD_MEMBERSHIP): Address already in use
mdns-repeater: unable to create socket for interface ix0_vlan20
mdns-repeater: exit.


so... whats happening here? And how do i make it work?

Also...
when trying to bridge LAN and ix0_vlan10 on shell this happens:

root@opnsense:~ # mdns-repeater -f ix0 ix0_vlan10
mdns-repeater: dev ix0 addr 192.168.173.10 mask 255.255.255.0 net 192.168.173.0
mdns-repeater: send bind(): Address already in use
mdns-repeater: dev ix0_vlan10 addr 0.0.0.0 mask 0.0.0.0 net 0.0.0.0
^C


seems to me like the mdns repeater has issues getting the ip addresses of vlan interfaces.


It really is not finding the interfaces of the vlans. No issues with physical interfaces it seems.


root@opnsense:~ # mdns-repeater -f ix0 igb0
mdns-repeater: dev ix0 addr 192.168.173.10 mask 255.255.255.0 net 192.168.173.0
mdns-repeater: dev igb0 addr 192.168.1.254 mask 255.255.255.0 net 192.168.1.0
^C
root@opnsense:~ # mdns-repeater -f ix0_vlan20 ix0_vlan10
mdns-repeater: send bind(): Address already in use
mdns-repeater: dev ix0_vlan20 addr 0.0.0.0 mask 0.0.0.0 net 0.0.0.0
mdns-repeater: send bind(): Address already in use
mdns-repeater: recv setsockopt(IP_ADD_MEMBERSHIP): Address already in use
mdns-repeater: unable to create socket for interface ix0_vlan10
mdns-repeater: exit.
root@opnsense:~ # mdns-repeater -f foo bar
mdns-repeater: send bind(): Address already in use
mdns-repeater: dev foo addr 0.0.0.0 mask 0.0.0.0 net 0.0.0.0
mdns-repeater: send bind(): Address already in use
mdns-repeater: recv setsockopt(IP_ADD_MEMBERSHIP): Address already in use
mdns-repeater: unable to create socket for interface bar
mdns-repeater: exit.
root@opnsense:~ #


So... i need this working. Are there any other options?

So... it might be working, i have to check sometime soon...
At least it shows as running in the webgui for now and the shell does not throw an error.
I had to manually assign different MAC-Adresses for the VLAN-Interfaces.

Don't run tagged and untagged networks on the same interface. E.g. use ix0 for the three VLANs but pick a different port for LAN. Lots of odd problems in the FreeBSD stack if you mix.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

A little strange... bridging... 0.0.0.0 address assignments... have you even assigned a subnet to each VLAN you try to set up? mdns-repeater is not necessary for bridged interfaces without addresses?


Cheers,
Franco

Of course i had the subnets assigned to the VLAN Interfaces.
MDNS-Repeater apparently has issues with different interfaces using the same MAC-address.
As soon as i manually assigned different MAC-adresses to the VLAN interfaces MDNS-Repeater was able to read the ip addresses of the interfaces correctly.

Interesting - I never did that any for me mdnsrepeater works out of the box:
lagg0_vlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 3c:ec:ef:00:54:30
lagg0_vlan2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 3c:ec:ef:00:54:30
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Yeah, this sounds fishy. By default all VLANs have the same MAC and it shouldn't cause issues. Haven't heard this claim ever.


Cheers,
Franco

March 18, 2022, 01:13:07 PM #9 Last Edit: March 18, 2022, 01:19:48 PM by x86
Yup, this is weird.
Just tried on a different installation, set up interfaces and VLANs the same, seems to be working ootb.
Computers are strange ¯\_(ツ)_/¯


March 25, 2022, 11:33:23 AM #11 Last Edit: March 25, 2022, 11:35:11 AM by x86
It got even weirder yesterday when i tried to deploy some clients to the vlans.
I´ve got the vlans 10,20,30 and 40, all on ix0, all configured IP-Adresses/Networks over the webgui, everything was showing fine, DHCP-Server activated for the networks.
I did not get DHCP-Response in VLAN20 and VLAN30, also no network connectivity with static ip set on the client...
Checked my Switchconfigs up an down, thought i had misconfigured VLANS somewhere, everything was fine, checked the webgui again, everything was fine, deleted all VLAN interfaces/networks and VLANs, configured again, everything seemed fine, issue still persisted.
Logged on to the console via ssh, switched to shell, ifconfig showed all the interfaces with the according IP Adresses...
Exited the Shell with Crtl+d, then it struck my eye... the VLAN Interfaces 20 and 30 above the console starting menu did not show any ip adresses.

Assigned the ip adresses over the console menu, suddenly DHCP and networking was working and also the MDNS Repeater started without issues.

Has anyone ever encountered something like this?