Solved

How do I find my tcp/ip address?

Posted on 2002-04-02
2
167 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
to update from RHEL 6.0 to 6.8 anything needed other than "yum update"? 7 86
PC upgrade to Linux Mint 7 64
Remove a folder in Linux 9 90
networking details on centos 6.6 4 49
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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 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…

930 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

9 Experts available now in Live!

Get 1:1 Help Now