I have a user that uses a laptop on two different networks. One network would require a hard IP (192.168.10.x) while the other is DHCP (192.168.0.x). Is there a script that can be executed to swap ...
Ever wanted to get the MAC or IP address of your computer in a Linux shell script? The following two commands should work on most flavours of Linux/Unix.