Bash script: Turn up eth

A simple script for turning up the eth interface and get ip address via dhcp. #!/bin/bash #Author: Cyrus #Purpose: A simple bash script that turns on eth interface and acquire IP address from dhcp server. n=$1 if [ $n -ge 0 ] then ifconfig eth$n up; dhclient eth$n #ifconfig eth$1 up; dhclient eth$1 else echo … Continue reading Bash script: Turn up eth