Results 1 to 10 of 23
what is the command to check my pc's ip address?...
- 12-13-2005 #1Linux Newbie
- Join Date
- Dec 2005
- Location
- Singapore
- Posts
- 234
check IP
what is the command to check my pc's ip address?
Proper Planing is a way of success
- 12-13-2005 #2Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
look under "eth0" or whatever your network interface is calledCode:ifconfig
then look for "inet addr"
- 12-13-2005 #3Linux Newbie
- Join Date
- Dec 2005
- Location
- Singapore
- Posts
- 234
Command not found
Originally Posted by spoon! Proper Planing is a way of success
- 12-13-2005 #4
You can su to root before running it.
Or tryand then type the full path as a normal user. (In my case it is /sbin/ifconfig.)Code:which ifconfig
- 12-13-2005 #5Linux Enthusiast
- Join Date
- Aug 2005
- Location
- Hell
- Posts
- 514
"which" is not going to find it if it's not in the PATH (which it obviously isn't). But yes it is usually at /sbin/ifconfig
Originally Posted by anomie
- 12-13-2005 #6Yeah, if you are using Fedora, you have to type the full path (or at least that was what it was like in Fedora Core 3).
Originally Posted by spoon!
BryanLooking for a distro? Look here.
"There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
Queen's University - Arts and Science 2008 (Sociology)
Registered Linux User #386147.
- 12-13-2005 #7
ifconfig will only give the internal address, not the external address,
Is there anyway to find the external address? (I am connected via DHCP through a router)Code:tux ~ # ifconfig eth0 Link encap:Ethernet HWaddr 00:0B:CD:85:A5:8A inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode
- 12-13-2005 #8DISTRO=Arch
Registered Linux User #388732
- 12-13-2005 #9Linux Newbie
- Join Date
- Dec 2005
- Location
- Singapore
- Posts
- 234
it gives me the following error message
Originally Posted by anomie
which: no ifconfig in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:.)Proper Planing is a way of success
- 12-13-2005 #10You can see that spoon already told you it wasn't going to work like that.
Originally Posted by spoon! It will work if you do this.
Originally Posted by anomie
Thanks Cabhan. I was just wondering if there was a way I could do it without using a website like this. Is there some way for me to interrogate the router for this information??
Originally Posted by Cabhan Registered Linux user #388328 || Registered LFS user #15880
AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
Need instant help? Try us on IRC -- #linuxforums on freenode


Reply With Quote
