ip — Manipulate network device, routing and tunnels
The ip is a swiss army knife command. It does many functions like assigning IP addresses to interfaces, for setting up routes and display configurations etc. Read the man page to know more about other options. In this part, we will see some of the multicast address, route cache management and status monitoring using IP command.
$ ip maddress -- Show all multicast addresses attached to each interface. $ ip maddr show dev eth0 -- Show all multicast addresses attached to device eth0. # ip maddr add 01:00:5E:00:00:02 dev eth0 -- Attach the link layer multicast address to device eth0. # ip maddr del 01:00:5E:00:00:02 dev eth0 -- Delete the multicast address from device eth0. $ ip mroute show -- Show the multicast route cache table. $ ip monitor all -- Monitor and show the status of link, address and route. (Test: Disconnect and Reconnect the network cable) $ ip monitor link -- Monitor and show the status of link alone.
Read: man ip