well u know how windows have its ipconfig.... i was wondering if linux has something similar in terminal (so that i dont have to go to website to view my ip when i ahve to) and also... how to release/renew ip and the command for it >_> lol
Page 1 of 1
release/renew ip
#2
Posted 06 February 2006 - 06:31 AM
Try ifconfig as Root.
This will list your network interfaces.
ifup [interface_name] to start up one of the listed interfaces
ifdwon [interface_name] to bring down one of the listed network interfaces
Ive only been using linux a week, and still a wicked newbie, but I found this wonderful page with tons of commands and info: http://linux-newbie.sunsite.dk/
good-luck!
#3
Posted 06 February 2006 - 09:01 PM
QUOTE (speX @ Feb 6 2006, 01:17 AM) <{POST_SNAPBACK}>
well u know how windows have its ipconfig.... i was wondering if linux has something similar in terminal (so that i dont have to go to website to view my ip when i ahve to) and also... how to release/renew ip and the command for it >_> lol
If you are under a router, then its the router that is aware of its external IP, not your system. Therefore you will need to query it to find out.
Also to renew:
CODE
/etc/init.d/network restart
That will restart the networking scripts..
Bye
#4
Posted 06 February 2006 - 09:45 PM
If you want to get your public IP from a terminal check this thread. You could add an alias to your ~/.bashrc:
Afterwards you can retrieve your public IP with the 'myip' command.
CODE
alias myip="wget -q www.whatismyip.com && grep displaycopy index.html|cut -d\' -f2 && rm -f index.html"
Afterwards you can retrieve your public IP with the 'myip' command.
Old C programmers never die. They're just cast into void.
#6
Posted 07 February 2006 - 06:36 PM
QUOTE (speX @ Feb 7 2006, 03:58 AM) <{POST_SNAPBACK}>
but wat about releaseing and renewing ip like in windows if i ever need to renew my ip for a new ip
Either you restart your network as znx suggested or you run the following commands (first one not neccessary at all but you wanted the release, too):
CODE
ifconfig eth0 down
dhclient eth0
dhclient eth0
Old C programmers never die. They're just cast into void.
Page 1 of 1

Sign In
Register
Help

MultiQuote

