Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Oct 23, 2021 10:34 am


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - FreeBSD list interface multicast group membership
Author Message
Post subject: FreeBSD list interface multicast group membership  |  Post Posted: Tue Dec 03, 2013 9:02 am
In a previous thread, I used "iperf" command to join a multicast group on FreeBSD command line.

To actually see the status of the group, use "ifmcstat". Quote:
Quote:
NAME
ifmcstat -- dump multicast group management statistics per interface

SYNOPSIS
ifmcstat [-i interface] [-f address-family] [-v] [-K] [-M core]
[-N system]

DESCRIPTION
The ifmcstat command dumps multicast group information from the kernel.

The following options are supported:

-i interface
specifies the interface to be displayed.

-f address-family
specifies the address family to be displayed; inet, inet6 and
link are supported.

-v specifies that link-layer memberships should be printed; they
are suppressed by default. It may not be specified for -f
link. Source lists for each group will also be printed.

If specified twice, and kvm(3) is in use, the control plane
timers for each interface and the source list counters for
each group will also be printed.

The following options are only available if ifmcstat has been built with
support for kvm(3):

-K attempts to use kvm(3) to retrieve the multicast group infor-
mation.

-M core extracts values associated with the name list from the speci-
fied core, instead of the default /dev/kmem.

-N system extracts the name list from the specified kernel instead of
the default, which is the kernel image the system has booted
from.

IMPLEMENTATION NOTES
ifmcstat will always print the embedded scope IDs of IPv6 multicast group
memberships. This is because memberships are always scoped to an inter-
face.

When run with the -v option, ifmcstat may print multicast MAC addresses
twice if they are referenced by a layer 3 protocol.

When run with kvm(3) support, the names of all interfaces configured in
the system will be printed in the first column of output, even if no mul-
ticast group memberships are present on those interfaces. The output may
also be slightly different, as the kernel data structures are being tra-
versed with minimal post-processing of the output.

When built without kvm(3) support, the information displayed by ifmcstat
is more limited. This support is recommended for debugging purposes. It
requires super-user privilege if used to inspect a running kernel.


Example of showing family inet multicast group membership for an interface (if any):
Code:
# ifmcstat  -f inet -v
em0:
        inet 10.1.20.2
        igmpv3 flags=0<> rv 3 qi 0 qri 1 uri 3
                group 239.0.0.1 mode undefined
                        mcast-macaddr 01:00:5e:00:00:01
                group 224.0.0.1 mode exclude
                        mcast-macaddr 01:00:5e:00:00:01
em1:
        inet 192.168.4.5
        igmpv3 flags=0<> rv 3 qi 0 qri 1 uri 3
                group 224.0.0.1 mode exclude
                        mcast-macaddr 01:00:5e:00:00:01
lo0:
        inet 127.0.0.1
        igmpv3 flags=0<> rv 2 qi 125 qri 10 uri 3
                group 224.0.0.1 mode exclude


So I can see that on em0 interface, multicast group membership join requests are sent for 239.0.0.1 multicast group.

Note: '-v' switch is not in FreeBSD7. This switch also displays the multicast MAC address corresponding to the group.
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO