#!/bin/bash
if [ $# -ne 1 ]; then
    echo "Incorrect args"
    exit 1
fi
interface=$1

#flush the adress
ip addr flush $interface

#Bring the interface down
ip link set dev $interface down

