aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/button-hotplug
diff options
context:
space:
mode:
authorJohannes Kimmel <fff@bareminimum.eu>2020-07-20 08:05:10 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-07-20 13:43:36 +0200
commit65e9de3c333bae1ccef1dfb0cc008ad6f13958e4 (patch)
treedeb5b7a7ab3181860a85b375b00a553ec9075b5b /package/kernel/button-hotplug
parent5222aadbf353b7cc030c39aa816f33951b104552 (diff)
downloadupstream-65e9de3c333bae1ccef1dfb0cc008ad6f13958e4.tar.gz
upstream-65e9de3c333bae1ccef1dfb0cc008ad6f13958e4.tar.bz2
upstream-65e9de3c333bae1ccef1dfb0cc008ad6f13958e4.zip
vxlan: add capability for multiple fdb entries
Similar to wireguard, vxlan can configure multiple peers or add specific entries to the fdb for a single mac address. While you can still use peeraddr/peer6addr option within the proto vxlan/vxlan6 section to not break existing configurations, this patch allows to add multiple sections that conigure fdb entries via the bridge command. As such, the bridge command is now a dependency of the vxlan package. (To be honest without the bridge command available, vxlan isn't very much fun to use or debug at all) Field names are taken direclty from the bridge command. Example with all supported parameters, since this hasn't been documented so far: config interface 'vx0' option proto 'vxlan6' # use vxlan over ipv6 # main options option ip6addr '2001:db8::1' # listen address option tunlink 'wan6' # optional if listen address given option peer6addr '2001:db8::2' # now optional option port '8472' # this is the standard port under linux option vid '42' # VXLAN Network Identifier to use option mtu '1430' # vxlan6 has 70 bytes overhead # extra options option rxcsum '0' # allow receiving packets without checksum option txcsum '0' # send packets without checksum option ttl '16' # specifies the TTL value for outgoing packets option tos '0' # specifies the TOS value for outgoing packets option macaddr '11:22:33:44:55:66' # optional, manually specify mac # default is a random address Single peer with head-end replication. Corresponds to the following call to bridge: $ bridge fdb append 00:00:00:00:00:00 dev vx0 dst 2001:db8::3 config vxlan_peer option vxlan 'vx0' option dst '2001:db8::3' # always required For multiple peers, this section can be repeated for each dst address. It's possible to specify a multicast address as destination. Useful when multicast routing is available or within one lan segment: config vxlan_peer option vxlan 'vx0' option dst 'ff02::1337' # multicast group to join. # all bum traffic will be send there option via 'eth1' # for multicast, an outgoing interface needs # to be specified All available peer options for completeness: config vxlan_peer option vxlan 'vx0' # the interface to configure option lladdr 'aa:bb:cc:dd:ee:ff' # specific mac, option dst '2001:db8::4' # connected to this peer option via 'eth0.1' # use this interface only option port '4789' # use different port for this peer option vni '23' # override vni for this peer option src_vni '123' # see man 3 bridge Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
Diffstat (limited to 'package/kernel/button-hotplug')
0 files changed, 0 insertions, 0 deletions