View Single Post
Posts: 14 | Thanked: 2 times | Joined on Nov 2007
#1
How do you know your IP, default gateway, name server, mac address and search in one command?
I wrote ipconfig.pl a while ago I founded that work very well on nokia IT.

you can fetch the file at http://www.riunx.com/public/ipconfig.pl
open xterm inside the nokia:
1)
sudo gainroot
cd /usr/bin
wget www.riunx.com/public/ipconfig.pl
chmod +x ipconfig.pl
ln -s ipconfig.pl ipconfig
2) or
wget www.riunx.com/public/ipconfig.pl
perl ipconfig

and either become root and put it in /usr/bin
or run it invoking perl (perl ipconfig.pl)
here is a sample run:
# ipconfig.pl

Linux IP configuration

Ethernet adapter Local Area Connection(eth0):
HW Address . . . . . . . . . . . . : 00:07:E9:33:E1:01
IP Address . . . . . . . . . . . . : 92.68.22.30
Subnet Mask. . . . . . . . . . . . : 255.255.255.0

Default Gateway . . . . . . . . . : 92.68.22.254

Connection-specific DNS Suffix . . : riunx.com
Name Server . . . . . . . . . . . : 92.68.22.1