create 3 bridges on the linux server (centos7.x)
configure
[root@Node1 ~]-sharp ip a
1: lo: < LOOPBACK,UP,LOWER_UP > mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: < BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP > mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
3: bond0: < BROADCAST,MULTICAST,MASTER,UP,LOWER_UP > mtu 1500 qdisc noqueue master br0 state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
4: br0: < BROADCAST,MULTICAST,UP,LOWER_UP > mtu 1500 qdisc noqueue state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.220/24 brd 192.168.1.255 scope global br0
valid_lft forever preferred_lft forever
inet6 fe80::5483:d9ff:feea:ce6e/64 scope link
valid_lft forever preferred_lft forever
5: bond0.2@bond0: < BROADCAST,MULTICAST,UP,LOWER_UP > mtu 1500 qdisc noqueue master br2 state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
6: br2: < BROADCAST,MULTICAST,UP,LOWER_UP > mtu 1500 qdisc noqueue state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f68e:38ff:fe72:8ed2/64 scope link
valid_lft forever preferred_lft forever
7: bond0.3@bond0: < BROADCAST,MULTICAST,UP,LOWER_UP > mtu 1500 qdisc noqueue master br3 state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
8: br3: < BROADCAST,MULTICAST,UP,LOWER_UP > mtu 1500 qdisc noqueue state UP qlen 1000
link/ether f4:8e:38:72:8e:d2 brd ff:ff:ff:ff:ff:ff
inet6 fe80::f68e:38ff:fe72:8ed2/64 scope link
valid_lft forever preferred_lft forever
br0 has no association vlan
br2 and br3 are associated with vlan2 and vlan3 respectively
there is a virtual machine on br2 that sends multicast packets with a multicast address of 239.0.0.2. How to set up how to transfer multicast packets to non-vlan br0 and br3 with vlan
the following attempts I have made have no effect (there are no multicast packets with tcpdump-I br3):
1. Open IP forwarding:
echo 1 > / proc/sys/net/ipv4/ip_forward
2. Add a route:
route add-net 239.0.0.2 netmask 255.255.255.255 dev br3
route add-net 239.0.0.2 netmask 255.255.255.255 dev br0
3. Pimd is also installed and started (but the default configuration does not know how to configure)
kernel multicast routing switch has also been turned on
cat / proc/sys/net/ipv4/conf/all/mc_forwarding
1