How can i setup vxlan for group peers

I want setup vxlan for multipeers,when i setup vxlan tunnel
peer to peer ,it can worked normally.
the user guide say create multipeers can use multicast address,
likes this

config interface 'VXLAN_WAN'
        option proto 'static'
        option device 'eth0'
        option netmask '255.255.255.0'
        option metric '200'
        option ipaddr '172.24.11.4'
        option gateway '172.24.11.1'

config interface 'vxlan_tunnel'
        option proto 'vxlan'
        option peeraddr '224.0.1.100'
        option vid '101'
        option force_link '1'
        option ipaddr '172.24.11.4'

no packet passed this tunnel
Protocol: VXLAN (RFC7348)
RX: 0 B (0 Pkts.)
TX: 0 B (0 Pkts.)
what's the matter? must config multicast first?

Are all peers within the same layer2? Otherwise you will need to have a working multicast routing first. I have never tried to use multicast addresses and always sticked to unicast addresses for the vxlan peer.

If you have the resources I would suggest to use frr and configure bgp evpn if you have multiple peers and you do not want to have the n to n configuration on each peer.

yes,within the same layer2。
thks,i just direct connected two openwrt test multipeers ,
i think it must run multicast normally first,
so i try to config igmg,manager jion group ,and the add multicast route。

If they are within the same layer2 domain you do not need to setup anything that local multicast traffic hits each other.

In September 2022 someone else had issues setting up vxlan with UCI and /etc/config/network, see Layer 2 vxlan tunnel setup
Have you seen this thread? Maybe you will find some hints there? At least the user was able to get it working in the end...

Hi all,

My 'hacked' setup has been working for a few months, so far without issues.

HTH,
Pedro

1 Like

I got it! runs well....
the topo is tow openwrt Direct connected,
at first i had test in pve(openwrt) and x86 pc(openwrt), it can't run , i think pve did not forward multicast normally。
replace pve with a rampis router run openwrt, direct connect to x86pc ,
multicast through vxlan transmit normally。
tcpdump the packet
it's miracle
first arp packet is multicast, the reply is unicast, follow packets all run unicast.

arp query
Frame 9: 114 bytes on wire (912 bits), 114 bytes captured (912 bits)
Ethernet II, Src: S-Bluete_06:54:a0 (60:be:b4:06:xxx), Dst: IPv4mcast_01:01:01 (01:00:5e:01:01:01)
Internet Protocol Version 4, Src: 172.24.11.199, Dst: 239.1.1.1
User Datagram Protocol, Src Port: 54943, Dst Port: 4789
Virtual eXtensible Local Area Network
Ethernet II, Src: IntelCor_34:6f:0c (f4:b3:01:3xxxc), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
arp reply
Frame 10: 92 bytes on wire (736 bits), 92 bytes captured (736 bits)
Ethernet II, Src: RalinkTe_76:20:29 (00:0c:43:76:20:29), Dst: S-Bluete_06:54:a0 (60:be:b4:06:54:a0)
Internet Protocol Version 4, Src: 172.24.11.252, Dst: 172.24.11.199
User Datagram Protocol, Src Port: 53942, Dst Port: 4789
Virtual eXtensible Local Area Network
Ethernet II, Src: RalinkTe_76:20:28 (00:0c:43:76:20:28), Dst: IntelCor_34:6f:0c (f4:b3:01:34:6f:0c)
Address Resolution Protocol (reply)

the next packet....

Frame 13: 116 bytes on wire (928 bits), 116 bytes captured (928 bits)
Ethernet II, Src: S-Bluete_06:54:a0 (60:be:b4:06:xxx), Dst: RalinkTe_76:20:29 (00:0c:43:76:20xxx)
Internet Protocol Version 4, Src: 172.24.11.199, Dst: 172.24.11.252
User Datagram Protocol, Src Port: 43202, Dst Port: 4789
Virtual eXtensible Local Area Network
Ethernet II, Src: IntelCor_34:6f:0c (f4:b3:01:34:xxx), Dst: RalinkTe_76:20:28 (00:0c:43:76:xxx)
Internet Protocol Version 4, Src: 192.168.31.200, Dst: 192.168.31.252
Transmission Control Protocol, Src Port: 50844, Dst Port: 80, Seq: 0, Len: 0

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.