PDA

View Full Version : What is the linux command for ipconfig?


spotdog14
02-12-2007, 07:57 AM
Im having problems with my campus's wireless network again, and need to know what the linux (under Ubuntu) commands are for ipconfig /release, /renew and ipconfig /flushdns?

I finally figured out that i didnt have traceroute installed, so i got that module and it works fine, but just wondering what those commands might be.

Thanks!

richard.unwin2
02-12-2007, 09:29 AM
Hi there,

Try using the man pages for ifconfig

just type "man ifconfig" without the exclamation marks.

Also just a reminder, in Ubuntu the NIC is, by default, disabled you have to enable it first.

I hope that this helps.

All the best regards

Rich

abf
02-12-2007, 02:39 PM
ifconfig to list your nics

ifconfig ath0 up (brings up ath0...replace as needed for your device name)
iwconfig ath0 essid myessidhere key myhexkeyhere (configures essid and wep)
dhclient ath0 (connects via dhcp)

owenjh
12-14-2007, 02:27 PM
Check out this article on using the Linux ifconfig (http://www.thelinuxblog.com/linux-ipconfig/) command without being root.

precipice
12-15-2007, 11:52 PM
ifconfig -a will list all nics and ips in Redhat and Suse. I believe it is also true in Ubuntu.

wonnage
01-21-2008, 11:25 PM
Im having problems with my campus's wireless network again, and need to know what the linux (under Ubuntu) commands are for ipconfig /release, /renew and ipconfig /flushdns?

I finally figured out that i didnt have traceroute installed, so i got that module and it works fine, but just wondering what those commands might be.

Thanks!

ipconfig /release and /renew actually have more to do with getting an IP address from the DHCP server. If I remember correctly, this is what dhclient does. ifconfig is mainly for ethernet connections as well - for wireless interface management you'd use iwconfig.

adewolf
01-28-2008, 01:02 PM
route -f will flush the routing cache.
dhcpcd or dhclient
For dhclient info:
http://linux.die.net/man/8/dhclient
For dhcpcd info:
http://www.phystech.com/download/dhcpcd_man.html

Alex

seablade
01-28-2008, 01:12 PM
Its the thread that just won't die! ;)

Seablade