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

FAQ
It is currently Thu Dec 07, 2023 9:01 am


Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

Author Message
mandrei99
Post  Post subject: FreeBSD list interface multicast group membership  |  Posted: Tue Dec 03, 2013 9:02 am

Joined: Tue Aug 04, 2009 9:16 am
Posts: 250

Offline
 

FreeBSD list interface multicast group membership

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.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD list interface multicast group membership"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD + IPERF sending IGMP v2 multicast group join / leave via specific interface

mandrei99

0

7248

Mon Jul 22, 2013 10:41 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD + IPerf send multicast source traffic via specific interface

mandrei99

3

6230

Sat Apr 11, 2015 5:28 am

areeba View the latest post

There are no new unread posts for this topic. FreeBSD list the outgoing interface for packets to a specific IP destination

mandrei99

0

2951

Mon Jul 22, 2013 10:12 am

mandrei99 View the latest post

There are no new unread posts for this topic. KVM: List MAC address table and interface that learned them.

mandrei99

0

4579

Sun Feb 01, 2015 6:26 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux list the outgoing interface for packets to a specific IP destination

mandrei99

0

3303

Mon Jul 22, 2013 10:17 am

mandrei99 View the latest post

There are no new unread posts for this topic. "OSPF not enabled on this interface" FreeBSD Quagga ospfd interface status

debuser

1

5519

Thu Apr 01, 2010 5:55 am

debuser View the latest post

There are no new unread posts for this topic. FreeBSD show network interface statistics

mandrei99

0

5693

Wed Sep 25, 2013 9:30 am

mandrei99 View the latest post

There are no new unread posts for this topic. How to accept IPv6 Router Advertisements on interface in FreeBSD

mandrei99

0

3808

Wed Apr 29, 2015 3:54 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: How to list IPv6 neighbors

mandrei99

0

6069

Mon Oct 06, 2014 10:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. Linux How to change hardware MAC address of an interface

debuser

1

3598

Tue Dec 06, 2011 6:26 am

Zettie49 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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