Solved

How do I find my tcp/ip address?

Posted on 2002-04-02
2
173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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 …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

617 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