Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2020 12:21:48 +0300
From:      =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   How to force Multicast VIF disable
Message-ID:  <CAAcX-AEBTQnaFZ%2BVF73ZYzT3zxj5Y%2B_LaaOmfcr2mtBVmFMvDQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

I'm using FreeBSD 12.1-STABLE. After restarting multicast routing daemon,
daemon can't start with this error: "Failed adding VIF 1 (MRT_ADD_VIF) for
iface em1: Address already in use". pimd tries to disable all vifs from
kernel (shown in output below) but still throws same error.

I tried with both mrouted and pimd. Both of them shows same behaviour.
My opinion is kernel doesn't disable VIFs.

Is there any tool to disable all VIFs in kernel ?

# pimd -N -d -s debug
debug level 0xffffffff
(dvmrp_detail,dvmrp_prunes,dvmrp_routes,dvmrp_neighbors,dvmrp_timers,igmp_p=
roto,igmp_timers,igmp_members,trace,timeout,packets,interfaces,kernel,cache=
,rsrr,pim_detail,pim_hello,pim_register,pim_join_prune,pim_bootstrap,pim_as=
serts,pim_cand_rp,pim_routes,pim_timers,pim_rpf)
11:52:23.035 pimd version 2.3.2 starting ...
11:52:23.035 Got 262144 byte send buffer size in 0 iterations
11:52:23.035 Got 262144 byte recv buffer size in 0 iterations
11:52:23.035 Got 262144 byte send buffer size in 0 iterations
11:52:23.035 Got 262144 byte recv buffer size in 0 iterations
11:52:23.035 Getting vifs from kernel
11:52:23.035 Installing em0 (10.2.4.20 on subnet 10.2.4/24) as vif #0 -
rate 0
11:52:23.035 Installing em1 (192.168.58.1 on subnet 192.168.58) as vif #1 -
rate 0
11:52:23.035 Installing em2 (192.168.59.1 on subnet 192.168.59) as vif #2 -
rate 0
11:52:23.035 Installing em1.1600 (192.168.16.1 on subnet 192.168.16) as vif
#3 - rate 0
11:52:23.035 Installing em1.1700 (192.168.17.1 on subnet 192.168.17) as vif
#4 - rate 0
11:52:23.035 Disabling all vifs from kernel
11:52:23.035 Getting vifs from /usr/local/etc//pimd.conf
11:52:23.035 Local Cand-BSR address 192.168.59.1, priority 5
11:52:23.035 Local Cand-RP address 192.168.59.1, priority 20, interval 30
sec
11:52:23.035 spt-threshold packets 0 interval 100
11:52:23.035 Local static RP: 169.254.0.1, group 232.0.0.0/8
11:52:23.035 IGMP query interval  : 12 sec
11:52:23.035 IGMP querier timeout : 41 sec
11:52:23.035 Interface em0 is DISABLED; vif #0 out of service
11:52:23.035 **Failed adding VIF 1 (MRT_ADD_VIF) for iface em1: Address
already in use**



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AEBTQnaFZ%2BVF73ZYzT3zxj5Y%2B_LaaOmfcr2mtBVmFMvDQ>