PDA

View Full Version : what is my ip



namit
17th October 2005, 05:27 PM
Hey what is the aquivalent of ipconfig in linux?

I need to find out what my ip is?

Also when i type setup and try to change ip address i can not seem to change it permantaly? Where is the text file that my ip is stored in?

ieuuk
17th October 2005, 05:35 PM
ifconfig is what your looking for and to change the ip address use
system-config-networking

ieuuk
17th October 2005, 05:45 PM
you can also change the ip address through ifconfig ive just seen using something like:


ifconfig eth0 address 192.168.0.6

see man ifconfig for more info

Twey
17th October 2005, 05:52 PM
If you cannot change your IP, it is likely that either your network or your ISP runs a DHCP server, which is assigning you your IP.

ieuuk
17th October 2005, 05:53 PM
or you might also have a network reservation in the dhcp server which is assigning your mac address to that ip... thats a common one.

smfinley
17th October 2005, 07:39 PM
I case you need to know the IP address that the outside world sees when they try to access your box (in case you're getting your IP address assigned DHCP from a local router or gateway) go to http://myipaddress.com/.

Twey
17th October 2005, 07:49 PM
That's not very reliable. checkip.dyndns.org is far better.

prosen
17th October 2005, 08:17 PM
http://checkip.dyndns.org/ is showing the local IP .. at least for me .. it cant show the public IP as visible frm outside ..
however .. http://myipaddress.com/ and http://www.whatismyip.com/ are showing the same results ..
so I guess these r ok ..

cdlaforc
17th October 2005, 08:29 PM
I've have been using whatismyip.com (http://www.whatismyip.com) and using elinks in a shell script to check my ip address and send it to my email address every 30 minutes if it has changed so I can access my home pc from work. It however looks like checkip.dyndns.org would be far easier to parse.

namit
19th October 2005, 02:36 PM
yes cool was just looking for that command ifconfig eth0 address 192.168.0.6

FTS72
19th October 2005, 10:27 PM
I too am needing to find out my local ip addy.

ifconfig keeps returning

bash: ifconfig: command not found

in both root and user, any ideas?

ieuuk
19th October 2005, 10:50 PM
try /sbin/ifconfig

FTS72
20th October 2005, 12:19 AM
Thanks pal, that did the trick.

namit
23rd October 2005, 03:21 PM
If you cannot change your IP, it is likely that either your network or your ISP runs a DHCP server, which is assigning you your IP.


but surely i could change it from DHCP to Static?

ieuuk
23rd October 2005, 07:36 PM
you should be able to. do a system-config-network and just deselect dhcp and put in the ipaddress you want to use

namit
27th October 2005, 05:30 PM
Hey how do i setup the DNS in that script?

namit
27th October 2005, 11:06 PM
Do i need to setup DNS?

Firewing1
27th October 2005, 11:52 PM
I don't think so. You setup DNS with you Internet connection (In system tools menu in Gnome)
Firewing1