Aqui está minha configuração de / etc / network / interface
auto lo
iface lo inet loopback
auto enp4s0
#allow-hotplug enp0s20f0u4
iface enp4s0 inet static
pre-up ifconfig enp4s0 hw ether 54:e1:ad:xx:xx:xx
address 225.0.0.100
netmask 255.255.255.0
#network 192.168.1.0 can be reached through the enp4s0 interface
post-up ip route add 192.168.1.0/24 dev enp4s0 src 225.0.0.100 table
rt2
#set default gateway
post-up ip route add default via 192.168.1.254 dev enp4s0 table rt2
post-up ip rule add from 225.0.0.100 table rt2
post-up ip rule add to 225.0.0.100 table rt2
post-up ip r add default via 192.168.1.254 metric 99 dev enp4s0
post-down ip rule del from 0/0 to 0/0 table rt2
post-down ip rule del from 0/0 to 0/0 table rt2
se a configuração ip do endereço for 192.168.xx.xx do que funciona, mas quando ela muda para a classe d endereço IP (multicast), mostre a mensagem de falha.
a situação ideal é se (classe d IP) {ir gateway padrão 192.168.1.254} mais ir gateway dhcp padrão