Pario TechnoBlob
About
Posts
Tag: ifconfig
IP address change notifier script
This is a simple bash script that is run by crontab every 5 minutes on a linux box. It e-mails me the new address when a change of IP address is detected. The script...
Create virtual / alias IP address
This is the code to make an alias IP address on network interface ethX where X is a number to indicate the device we are attaching the IP. ifconfig eth0:1 192.168.0.30 netmask...
Get your IP address
ifconfig eth0 | awk '/inet addr/{print $2}' | cut -d: -f2