Created
August 2, 2016 07:57
-
-
Save chocobn69/f2586ade071c1c479b027e05dafd3e7f to your computer and use it in GitHub Desktop.
vrack @ ovh with archlinux / systemd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Vrack Connectivity | |
Wants=network.target | |
Before=network.target | |
BindsTo=sys-subsystem-net-devices-eth1.device | |
After=sys-subsystem-net-devices-eth1.device | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/sbin/ip addr flush dev eth1 | |
ExecStart=/sbin/ip link set dev eth1 up | |
ExecStart=/sbin/ip addr add 172.16.0.9/12 broadcast 255.240.0.0 dev eth1 | |
ExecStop=/sbin/ip addr flush dev eth1 | |
ExecStop=/sbin/ip link set dev eth1 down | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment