如何在/etc/network/interfaces中设置多播?

如何在/etc/network/interfaces中设置多播?

以下/etc/network/interfaces文件在启动时(或使用命令)自动调出 dummy0 接口ifup,但不进行多播。在此文件中启用多播的正确方法是什么?

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto dummy0
iface dummy0 inet static
   address 10.10.0.1
   netmask 255.255.255.0
   multicast 1

source-directory interfaces.d

答案1

尝试:

auto dummy0
iface dummy0 inet static
   address 10.10.0.1
   netmask 255.255.255.0
   post-up ifconfig dummy0 multicast

相关内容