Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I find my tcp/ip address?

Posted on 2002-04-02
2
Medium Priority
?
175 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 400 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 Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

963 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