Solved

How do I find my tcp/ip address?

Posted on 2002-04-02
2
166 Views
Last Modified: 2013-12-05
I have configured my Linux Laptop to use DHCP.  How do I find out what tcp/ip address has been assigned to my system?  I have tried "netstat" (with limited success), "ifconfig" (which I don't seem to have), "who | grep myusername" (which gives me pts/0 and pts/1).

I am currently using Redhat 7.2, but would like a solution that works with any Linux distribution.

Thanks.
0
Comment
Question by:kkennedy
2 Comments
 
LVL 4

Expert Comment

by:LionBSD
ID: 6914420
netstat -n interface device.
like let's say your interface device called eth0
netstat -n eth0
also you can use "arp -a"
and best for you to install the ifconfig pkg
0
 
LVL 5

Accepted Solution

by:
Mishou earned 100 total points
ID: 6914641
you surrely do have the ifconfig package already installed on the system. it's part of the tcp package.

If you connect as a normal user (and not as root) then the path to ifconfig is not in your environment setup.

On a standard RedHat install the command is located in /sbin.
Do a find / -name ifconfig -print(as root) and it will show you the location. Then just cd to that directory and launch ifconfig from there or make a link to it in /bin.

If you run it from /sbin you star it like ./ifconfig

Mishou
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now