Add static routes for IGMP multicast

For example, I have a server model with 2 network cards, and sometimes by default the IGMP packets don’t run to the correct card required (the KRX up card in the picture).

If the server wins:


– Set default route to point to KRX

-The following routes then need to be added so that multicast request packets (IGMP packets) from departments reach the correct network card:

route add -p mask (IP gateway to KRX)

If the server is Linux, such as centos:



add to row via dev eth0