Skip to content

Instantly share code, notes, and snippets.

@T-X
Last active January 19, 2025 00:17
Show Gist options
  • Select an option

  • Save T-X/7ede1fbac3dd83be52983ee2c6ae921f to your computer and use it in GitHub Desktop.

Select an option

Save T-X/7ede1fbac3dd83be52983ee2c6ae921f to your computer and use it in GitHub Desktop.
# /etc/systemd/network/20-eth0-pim-router-id.network
[Match]
Name=eth0
[Network]
Address=2001:67c:2d50::2/128
# /etc/systemd/network/25-pim-router-id.netdev
[NetDev]
Name=pim-router-id
Kind=dummy
# /etc/systemd/network/25-pim-router-id.network
[Match]
Name=pim-router-id
[Network]
Address=2001:67c:2d50::2/128
[Link]
Multicast=true
# Defaults for babeld initscript
# sourced by /etc/init.d/babeld
# List of interfaces on which the protocol should operate
INTERFACES="ff_hl_v_mc_link"
# Additional arguments
DAEMON_ARGS="-S /var/lib/babeld/state"
# /etc/systemd/system/[email protected]
# https://github.com/troglobit/mrdisc
# enable like this for instance: $ systemctl enable [email protected]
[Unit]
Description=Multicast Router Discovery daemon (RFC4286)
BindsTo=pim6sd.service
[Service]
Type=exec
RestartSteps=10
RestartMaxDelaySec=30
Restart=always
ExecStart=mrdisc -6 %i
[Install]
WantedBy=multi-user.target
# /etc/pim6sd.conf
# disable all interfaces by default
default_phyint_status disable;
# enable the pim-router-id interface first to acquire the correct primary address
phyint pim-router-id enable;
# Even with "nolistener", MLD reports will be parsed.
# However this allows disabling the MLD querier.
# Gluon provides the querier and we use mrdisc to
# announce ourself via MRD.
phyint eth0 nolistener mld_version any enable;
# This one is for PIM / routing, not listeners / MLD.
# Add more interfaces as required below
phyint ff_hl_v_mc_link nolistener enable;
# configure rendezvous point for the personal multicast prefix
cand_rp pim-router-id;
group_prefix ff7e:240:2001:67c:2d50::/96;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment