1752295 Members
4437 Online
108786 Solutions
New Discussion юеВ

Re: i/p address

 
SOLVED
Go to solution
Ganesh Babu
Honored Contributor

i/p address

Guys.. once again.. how to find the i/p address & host names assigned for an network card??

Ganesh
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: i/p address

Ganesh,

ifconfig will give you the ip address: ifconfig lan0, for example.

nslookup will give you the hostname associated with an ip address: nslookup 100.101.102.103, for example.


Pete

Pete
John Dvorchak
Honored Contributor

Re: i/p address

the info is in /etc/rc.config.d/netconf

You should also have the IP Address and FQDN and short name in /etc/hosts
If it has wheels or a skirt, you can't afford it.
Sridhar Bhaskarla
Honored Contributor

Re: i/p address

Hi Ganesh,

'ifconfig lanx' is the command you are looking for.

netstat -in will also give the information on all the lancards and the IP addresses associated with it.

Hostname will be only one on the box. If the server has multiple lan cards and multiple address, each address may have a different DNS name. An 'nslookup' can give you the name corresponding to the IP address which is displayed in 'netstat -i' output.

'hostname' gives the hostname of the server.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor

Re: i/p address

Use lanscan to get the 'lan?' for each card.

The use 'ifconfig lan?' (where lan? = lan0, lan1, whatever') to get the IP address.

You could then use 'nslookup ip.addy' to get the hostname.
Denver Osborn
Honored Contributor

Re: i/p address

or use

netstat -in
Ganesh Babu
Honored Contributor

Re: i/p address

Thanks Guys..

Ganesh
cl_5
Frequent Advisor

Re: i/p address

Use lanscan to check out your lancard(s) and then ifconfig lanX

regards
cl
Anoop P_2
Regular Advisor

Re: i/p address

Hi

IP Address:
1. #ioscan -fnC lan
Find out the device number from the output. Ex.: lan0, lan2 etc.

2. #ifconfig lanX where X is to be substituted accordingly

Hostname: This is unique to a machine and not to a networkcard. For finding out the hostname,

1. #hostname