Active Topics

 



Notices


Poll: Do you like ipconfig?
Poll Options
Do you like ipconfig?

Reply
Thread Tools
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
 
Posts: 25 | Thanked: 0 times | Joined on Dec 2006 @ Rio de Janeiro
#2
How about 2 commands:
# ifconfig
# route
__________________
Linux rocks!
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#3
Or...

Connection manager -> Internet connection -> IP address

 
linuxrebel's Avatar
Posts: 182 | Thanked: 46 times | Joined on Jan 2007 @ Silly-Con Valley
#4
ifconfig is the Unix original which windows misnamed (so they could 'patent' it) Thanks but no thanks.

Now that I've noted that ipconfig is copyrighted it might be in you favor to rename it to something less M$. Your call.

Last edited by linuxrebel; 2007-11-26 at 02:44. Reason: adding a warning
 
Posts: 14 | Thanked: 2 times | Joined on Nov 2007
#5
without my ipconfig script you need to run
ifconfig
route
and cat /etc/resolv.conf

I didn't know about m$ patent. I hate them.

winipcfg could a nice alternative.

any idea for a new name?

I like to use this command on evry machine I touch, when you have already a terminal open it comes handy.
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#6
I expect that MS copyrighted, not patented, it. You can't patent a name, so that change couldn't help them patent it.
This is the first I heard of them doing anything beyond changing the name, so I don't know. Perhaps they patented it also. Misnamed and ill-behaved programs are sufficient to anger me, no intellectual property required.
I am accustomed to output from ifconfig and route, so not real interested in having it snipped and formatted to look like Windows output.
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:21.