You can execute this script as follows:
$bash sipconfig.sh
or
$chmod u+x sipconfig.sh
$./sipconfig.sh
To install it, and only put sipconfig as a common command:
$cp sipconfig.sh /usr/bin/sipconfig
$chmod +x /usr/bin/sipconfig
- All active interfaces IP's.
- If a wifi interface is present and connected, show AP name.
- Default Gateway and interface used.
- Nameservers stored in /etc/resolv.conf.