1,760
edits
Changes
no edit summary
#! /bin/bash
# get all the NIC device name in the system
dev_names=$(/sbin/ifconfig | grep HWaddr| awk -F: '{print $1}'| sort -u ) # for centos7 replace HWaddr with flags
# set a loop to loop through each device name