Skip to content

Instantly share code, notes, and snippets.

@chocobn69
Created August 2, 2016 07:57
Show Gist options
  • Save chocobn69/f2586ade071c1c479b027e05dafd3e7f to your computer and use it in GitHub Desktop.
Save chocobn69/f2586ade071c1c479b027e05dafd3e7f to your computer and use it in GitHub Desktop.
vrack @ ovh with archlinux / systemd
[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