- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to check my IP and MAC address
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
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
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
тАО10-25-2003 12:14 PM
тАО10-25-2003 12:14 PM
How to check my IP and MAC address
I have 2 questions actually:
1) How do I check my IP address on my hp-ux machine. Is it possible to do it from the command line? (I know SAM can do it)
2) How do I check the MAC address of all network devices connected to a hp-ux machine? Is there a command that will query the network device directly to retrieve it's MAC address?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2003 01:23 PM
тАО10-25-2003 01:23 PM
Re: How to check my IP and MAC address
1. Yes you can check the IP address of your HP-UX machine on command prompt. Use
#netstat -in
This will tell you all IP address assigned to all network cards like lano, lan1 etc...
2. you can use arp -a command to see the mac address of devices connected.
If you also want to see the users who have connected to you'r system, their IP address, use lsof utility which is available free of the web.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2003 02:24 PM
тАО10-25-2003 02:24 PM
Re: How to check my IP and MAC address
Do a lanscan, and note the lan? numbers for your interfaces. You will also be able to see the MAC address from the lanscan output, although it is called 'station address'. Then do an 'ifconfig lan?' (ifconfig lan1, for example) for each interface and it will show your IP address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2003 07:17 PM
тАО10-25-2003 07:17 PM
Re: How to check my IP and MAC address
ifconfig lanx (for the IP address, where x is your active lan card number, check the output of the lanscan to see the confgured lan cards)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2003 03:14 PM
тАО10-26-2003 03:14 PM
Re: How to check my IP and MAC address
1) To check the ip address of the system use the
ifconfig lan0 command
2) To check the MAC address use the lanscan command
or
You can use the lanadmin command also
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2003 08:36 PM
тАО10-26-2003 08:36 PM
Re: How to check my IP and MAC address
use the "lanscan" command to get an overview of your installed LANICs (including MACs).
# lanscan
In the column "Net-Interface Name Unit" you'll find somethin like "lan0 or lan1".
Then use the "ifconfig" command to obtain the IP-address.
# ifconfig lan1 (or lan0 or lan2)
--Jens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-26-2003 08:46 PM
тАО10-26-2003 08:46 PM
Re: How to check my IP and MAC address
syerp# ifconfig lan0
lan0: flags=843
inet 192.9.168.17 netmask ffffff00 broadcast 192.9.168.255
2.
syerp# lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x001083FFB943 0 UP lan0 snap0 1 ETHER Yes 119
syerp#