Skip to content

Instantly share code, notes, and snippets.

@jstrosch
Created April 6, 2022 22:11
Show Gist options
  • Save jstrosch/07126ed964203075a1d4815a42a1f9de to your computer and use it in GitHub Desktop.
Save jstrosch/07126ed964203075a1d4815a42a1f9de to your computer and use it in GitHub Desktop.
#! /bin/sh
set -e
echo "Removing existing dummy interface."
nmcli con delete dummy-dummy0 || true
echo "Adding dummy0."
nmcli con add ifname dummy0 type dummy ipv4.method link-local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment