Solved

How do I find my tcp/ip address?

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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…

770 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