• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to configure multicast on an IP address (interface)

By admin

Multicast can be used to send IP packets to a group of interested receivers. Compared with broadcast, the packets are only sent to the members of a multicast group with the help of a multicast router.

Multicast Addresses

Class D addresses (224.0.0.0 – 239.255.255.255) are assigned to multicast. So the first 4 bits of a multicast address should be 1110 and the remaining 28 bits represent different goups. Some addresses are reserved and have been assigned to specified groups. For example,

  • 224.0.0.1 – all hosts group, all hosts configured IP multicast will join this group when an interface starts up.
  • 224.0.0.2 – all multicast routers group
  • 224.0.0.22 – IGMP Multicast router. An IGMP member report will be sent this addresses when a host joins a multicast group, then the multicast router can receive that report and maitain the membership of a group. We can capture the following packet when a program join the multicast group 225.0.0.37.

Enabling multicast on an IP address

1. To check if multicast is enabled already on an IP address use the “ifconfig” command.

# ifconfig eth0 | grep -i multi
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Note : Please replace ethX with appropriate Ethernet. If multicast is enabled, a flag will be displaying.

2. To disable multicast on a spcific ip/interface:

# ifconfig ethX -multicast

3. To enable multicast on a specific ip/interface :

# ifconfig ethX multicast

Listing IPs subscribed to a multicast group

In order to look at the IP address which has subscribed the multicast group, one can take a look at in the content of following file /proc/net/igmp. For example:

# cat /proc/net/igmp
Idx	Device    : Count Querier	Group    Users Timer	Reporter
1	lo        :     1      V3
				010000E0     1 0:00000000		0
2	eth0      :     1      V3
				010000E0     1 0:00000000		0

Based on multicast application, IP will be receiving or transferring packets.

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to Setup a sudo Switch to Another User That Has no Password or ssh Key Set in Linux
  2. Linux OS Service ‘kudzu’
  3. Beginners Guide to MySQL User Management
  4. How to Calculate Memory Usage in Linux using sar, ps, and free
  5. CIFS Share Filesystem Is Not Mounted after Reboot on CentOS/RHEL 7
  6. Installing CentOS / RHEL 7 (step by step with screen shots)
  7. Configuring Persistent Storage in CentOS/RHEL 5,6 for Single Path using udev rules
  8. Server Application Getting “connection refused” From Remote Servers [due to firewalld or iptables] – CentOS/RHEL 7
  9. Managing MySQL Using Systemd As A Non Root User
  10. How to find the inode size of an ext2/ext3/ext4 filesystem?

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • What Is Oracle Key Vault
  • Auditing with Oracle Database Vault Reports
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary