https://bbs.archlinux.org/viewtopic.php?
id=266712
duplicate package
# ping -n 233.5.5.6
# ping -A 233.5.5.6
# run ping 233.5.5.6 - vmware
Task: Send ARP request
# arping -I eth0 -c 3 233.5.5.6 - linux
Task: Find duplicate IP
arping -D -I eth0 -c 2 192.168.1.1
# while read ip ; do ping -c4 $ip | grep -q 'DUP!' && echo "$ip duplicates" ; done
< ip_list.txt
Enable Promiscuous Mode
# ifconfig eth0 promisc
Disable Promiscuous Mode
# ifconfig eth0 –promisc
# multicast group
# ip maddr show odin-local-lan
# ip link set odin-local-lan multicast on
#ifconfig odin-local-lan
#iperf -s -u -B 233.6.6.7 -i 1
# iperf -c 233.6.6.7 -u -T 32 -t 3 -i 1
#ifconfig|ip -s link
# tcpdump -nnXs 0 -i odin-local-lan udp port 34330 and dst 233.6.6.7
# netstat -ng
# ip maddr add 233.6.6.7 dev odin-local-lan
# route add 233.5.5.6 dev odin-local-lan
omping -p 5404 192.168.122.81 192.168.122.82
# ip route add 233.5.5.6 dev odin-local-lan
# ip addr add 233.5.5.6 dev odin-local-lan autojoin
# ip addr add 233.6.6.7 dev odin-local-lan autojoin
# ip -f inet maddr show dev odin-local-lan
./multicast.py -I 172.17.50.10 -M 233.5.5.6 -s -p 34330
./multicast.py -I 172.17.50.10 -M 239.0.0.1 -s -p 5405
# sudo ip addr del 233.54.12.234/32 dev eth1 autojoin
nmcli connection modify odin-local-lan +ipv4.routes "233.5.5.6 172.17.50.1"
ip route add 233.6.6.7 via 172.17.50.1 dev odin-local-lan
ip route add -host 233.6.6.7 dev odin-local-lan
ip route add 233.5.5.6 dev odin-local-lan
omping 233.5.5.6 172.17.50.10
omping -p 34330 233.5.5.6 172.17.50.10
Enabling IP Multicast with IGMP
#ip maddr show dev odin-local-lan
# ip link show odin-local-lan --display multicast on same line
To disable multicast on a device and to check that multicast is disabled
#ip link set multicast on dev odin-local-lan
#ip link show odin-local-lan
#ethtool -i odin-local-lan
#ip maddr
To check current version of IGMP and IP addresses subscribed for multicasting
#cat /proc/net/igmp
configuring Static Routes Using nmcli
#nmcli connection modify enp1s0 +ipv4.routes "192.168.122.0/24 10.10.10.1"
This will direct traffic for the 192.168.122.0/24 subnet to the gateway at
10.10.10.1
To display the IP routing table, use the ip route command. For example:
#ip route
To add a static route to a host address, in other words to a single IP address:
ip route add 192.0.2.1 via 10.0.0.1 [dev interface]
To remove the assigned static route:
ip route del 192.0.2.1
# tcpdump -i odin-local-lan -s 34330 host 233.5.5.6
ip addr add 233.5.5.6 dev odin-local-lan autojoin
I can also confirm that the interface is receiving mcast packets.
#ethtool -S odin-local-lan | grep mcast_pack
# netstat -sgu ; sleep 10 ; netstat -sgu
# ip maddress add
# ip maddress delete
# ip maddress show
netstat -g should be used to verify the interfaces' multicast group memberships
netstat -s shows a packet counter for multicast packets; this should increase when
multicast traffic is received/sent
tcpdump, 'wireshark' and other sniffing tools can be used to inspect multicast
traffic
ifconfig should show interfaces flagged MULTICAST; 'route' should show the
multicast ranges
#ifconfig odin-local-lan -multicast - remove multicast
#ifconfig odin-local-lan multicast - add multicast
# ip link show
# ip maddress show
# ip link set eth0 multicast off
# ip link show eth0
Multicast Information
# netstat --groups
# cat /proc/net/igmp
#
R1# ip route add 233.5.5.6 dev odin-local-lan
R1# iperf -u -c 233.5.5.6 -T 3
R4# iperf -s -u -B 233.5.5.6
# netstat -s | grep Udp: -A 5
# sar -n UDP 1 1
# ethtool -g odin-local-lan
# netstat -s| grep err
net.core.rmem_max = 124928
net.core.wmem_max = 4194304
net.core.rmem_default = 124928
net.core.wmem_default = 124928
sysctl -a |grep rmem_max
netstat -unlp|grep -e PID -e syslog
ncat -u 233.54.12.234 22001