1#
2# The Linux Kernel MFC (Multicast Forwarding Cache)
3#
4
5# Check Linux kernel multicast interfaces:
6cat /proc/net/dev_mcast
7
8# Check that interface eth0 is forwarding multicast:
9cat /proc/sys/net/ipv4/conf/eth0/mc_forwarding
10
11# Check Linux kernel multicast VIFs:
12cat /proc/net/ip_mr_vif
13Interface      BytesIn  PktsIn  BytesOut PktsOut Flags Local    Remote
14
15# Check Linux kernel MFC:
16# Oifs format = vifi:TTL
17cat /proc/net/ip_mr_cache
18Group    Origin   Iif     Pkts    Bytes    Wrong Oifs
19
20# iproute2 can display the MFC:
21ip mroute show
22(2.2.2.2, 239.2.2.2)             Iif: eth1       Oifs: eth0
23
24# -- end-of-file --
25