Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello guys,
how can I find out MAC address and also IP addresses of my computer under linux console.
I know that in Win XP there is a cmd command ipconfig to get IP informations.
What about linux?
Thanks
I have a similar question I was hoping you could answer. How can I find out the IP address of a machine on my LAN, such as my GameCube? I have run Linux on my GameCube in the past, and I recently bought a new router, so my GameCube's IP address has changed. How can I find out what it is?
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
As far as I know there is no straightforward way to identify the IP address of a single host on the network unless your using a name resolution service and know the hostname of the specific host in question.
/sbin/arp -v
This will display the MAC addresses and the corresponding IP addresses of hosts that your machine has had contact with. I have found this method rather useless since this assumes you know the target host's MAC.
A technique I have found a little more useful is to use a combination of ping broadcasts and nmap.
First perform a broadcast ping to all hosts on your network.
ping -b <broadcast address>
For example on a network with address and subnet:
192.168.0.0/24
ping -b 192.168.0.255
This will give you a list of all 'live' hosts on your network.
Next use the nmap -vAO command to identify the OS on a specific system.
Example:
nmap -vAO 192.168.0.10
However, this again assumes that you have an idea of what to look for (specific ports/services and unique OS). Its time consuming so is really only effective for small networks.
Last edited by SlackDaemon; 08-20-2006 at 11:19 PM.
You can also use nmap to scan your whole network so If you do not know what the ipaddress of the host you are try to contact then let nmap find it for you.
Thanks, but how to use nmap?
Does it meant that If i don't know what are Ip addresses are of compuuters in my network, I can use nmap to find them?
Thanks
Thanks, but how to use nmap?
Does it meant that If i don't know what are Ip addresses are of compuuters in my network, I can use nmap to find them?
Thanks
Sure. I use that here at work to find out whats on my network. Check out this page. This is what I used to learn more about nmap. http://insecure.org/ it also has other security tools that you can look into.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.