Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Script

Attached is a script which should setup all the necessary linux routing and parameters as indicated on this wiki. You can download the script here.

Usage

Code Block
## Dry run
python3 mrrouting.py --dry-run --verbose --if=<comma or space separated interface names>
## Example
python3 mrrouting.py --dry-run --verbose --if=eth0,eth1,eth2,ib0,ib1

## Run the script and setup the parameters:
python3 mrrouting.py --verbose --if=<comma or space separated interface names>
## or
python3 mrrouting.py --if=<comma or space separated interface names>
## Example
python3 mrrouting.py --if=eth0,eth1,eth2,ib0,ib1

The script requires the following python modules installed using the correct version of pip

Code Block
pip3 install netaddr
pip3 install netifaces

Overview

Due to Linux routing quirks, if there are two network interfaces on the same node, the HW address returned in the ARP for a specific IP might not necessarily be the one for the exact interface being ARPed.

...