- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to find ip
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:14 AM
тАО02-01-2010 05:14 AM
i having 10 lan card in my hp-ux 11.31 system each having ip address from them how can i found the ip address of my system
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:17 AM
тАО02-01-2010 05:17 AM
Re: how to find ip
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:23 AM
тАО02-01-2010 05:23 AM
Re: how to find ip
take note of lan0, lan1, etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:25 AM
тАО02-01-2010 05:25 AM
Solution> system[?]
Your "system" does not have an IP address.
Each of its _interfaces_ can have an IP
address. The system _name_ could be
associated with an IP address.
nslookup system_name
and/or:
nsquery hosts system_name
Is there some actual problem which you are
trying to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:30 AM
тАО02-01-2010 05:30 AM
Re: how to find ip
Another command to know which lan and ip is configured [you could for example configure in netconf file and after that someone configure with ifconfig another lanX, so you could have more lan configured even if there are not all configure in netconf ]
# netstat -in
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 05:59 AM
тАО02-01-2010 05:59 AM
Re: how to find ip
That'll show the routes on the system.
# netstat -in
will show the interfaces and their IP address(es).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 06:17 AM
тАО02-01-2010 06:17 AM
Re: how to find ip
when I m giving netstat -in command it shows all lan cards ip address.
i want to know that which is from them exact ip of my host.
Rgds
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 06:23 AM
тАО02-01-2010 06:23 AM
Re: how to find ip
#nslookup "hostname"
will give you desired results.
Cheers!
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 06:40 AM
тАО02-01-2010 06:40 AM
Re: how to find ip
compare the netstat -in and /etc/hosts also if required consult the /etc/rc.config.d/netconf file.
regards
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 02:00 PM
тАО02-01-2010 02:00 PM
Re: how to find ip
which means that your system has multiple IP addresses.
> i want to know that which is from them exact ip of my host.
There is no such thing. The closest you can come to the 'exact' IP address is to run the nslookup with hostname like this:
nslookup $(hostname)
This might be the lan0 address, or it might be lan7...it depends on how your system administrator set up this server. Note that with 10 LAN cards, there are 10 different ways to get to this server (assuming all of the connections are active). And where you are located on the network will determine the 'correct' IP address to use for this server.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 03:10 PM
тАО02-01-2010 03:10 PM
Re: how to find ip
Perhaps you'll have better luck with this
than I did.
> Is there some actual problem which you are
> trying to solve?
Still wondering.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 08:23 PM
тАО02-01-2010 08:23 PM
Re: how to find ip
/etc/rc.config.d/netconf
to check you Server/System IP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 08:39 PM
тАО02-01-2010 08:39 PM
Re: how to find ip
U can find as follows,
#ifconfig lan0
#ifconfig lan1
#ifconfig lan2.....lan10
or /etc/rc.config.d/netconf
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 09:11 PM
тАО02-01-2010 09:11 PM
Re: how to find ip
>
> /etc/rc.config.d/netconf
Always better how? Why? A configuration
file like this will tell you what is desired
at system start-up, not necessarily what is
true now. A method is "better" if it tells
you what you wish to know, and, with my weak
psychic powers, I don't know what the
questioner wishes to know. A method is
"always better" only if one always wants the
same thing.
> to check you Server/System IP
Again, a network _interface_ can have an IP
address, not a "Server/System". (That's why
the program is called "ifconfig", not
"serverconfig" or "systemconfig".)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 10:06 PM
тАО02-01-2010 10:06 PM
Re: how to find ip
Just wanted to point out that there are at least 10 different ways (from the IP point of view) to get to the box in the same condition as above. Any of this card can have aliases.
Best regards
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 10:17 PM
тАО02-01-2010 10:17 PM
Re: how to find ip
you can check it by viewing the file
/etc/rc.config.d/netconf
than you can use
netstat -in
if you are sure about the interface name than you can use
ifconfig interface_name
you can also check that which ip is mentioned in your /etc/hosts file
do
nslookup server_name
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 10:53 PM
тАО02-01-2010 10:53 PM
Re: how to find ip
Thanks a lot for your reply.
Finally I found that exact method to find the host ip is following-
$nslookup hostname
Thanks & Regards
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 11:02 PM
тАО02-01-2010 11:02 PM
Re: how to find ip
$nslookup hostname
Just wanted to point out this:
It depends on some other facts if this is giving you the right answer.
You should check on your server how nslookup resolved the hostname to IP. (/etc/nsswitch.conf)
If this looks like this:
hosts: dns files
then you relay on your DNS. If the DNS have a wrong IP address to return when asked for hostname, then you will use that wrong IP adress, regardless the fact that your server have or not assigned that IP address.
Best regards.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 11:36 PM
тАО02-01-2010 11:36 PM
Re: how to find ip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2010 11:50 PM
тАО02-01-2010 11:50 PM
Re: how to find ip
Now, if you can find the right question to go
with it, ...