Skip to content

Commit

Permalink
Update README and move start.sh script (and rename)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-scalingo committed Jun 21, 2024
1 parent c63f5b9 commit 1f3eb37
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,31 @@ This is the equivalent of:
ip addr del MY_IP dev MY_INTERFACE
```

## Dev environment
## Development environment

To make it work in dev you might want to create some dummy interfaces:
To make it work in dev you need to create dummy interfaces which will be
manipulated by LinK to simulate failover.

The best way is to use systemd to automate this setup:

```shell
modprobe dummy
ip link add eth10 type dummy
ip link set eth10 up
ip link add eth11 type dummy
ip link set eth11 up
ip link add eth12 type dummy
ip link set eth12 up
```
for idx in 10 11 12 ; do
echo "[NetDev]
Name=eth${idx}
Kind=dummy" | sudo tee "/etc/systemd/network/10-sc-dummy-eth${idx}.netdev"
done
echo "[Match]
Name=eth1*
[Link]
ActivationPolicy=up" | sudo tee "/etc/systemd/network/11-sc-dummy-activation.network"
```

Then run `systemctl restart systemd-networkd` to activate them immediately.

The script `start.sh` can be executed as root to automatically do that.
If you're not using Systemd or want to do the setup manually, the script
`hacks/setup_dummy_netlink_interfaces.sh` can be executed as root to manually
create `eth10`, `eth11` and `eth12`.

## Release a New Version

Expand Down
File renamed without changes.

0 comments on commit 1f3eb37

Please sign in to comment.