- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- which NIC talks to server?
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
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
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
12-18-2003 05:52 AM
12-18-2003 05:52 AM
need some help here!!
I have 3 NIC on my HP-UX 11.0 machine. I need to find out which NIC talks to my server?
How do I do that?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 05:57 AM
12-18-2003 05:57 AM
Re: which NIC talks to server?
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 05:58 AM
12-18-2003 05:58 AM
Re: which NIC talks to server?
You can then do a lanscan and match that lan name with the Name-PPA and find what is the hardware path of your NIC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 06:00 AM
12-18-2003 06:00 AM
Re: which NIC talks to server?
post the output of the lanscan command.
-Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 07:06 AM
12-18-2003 07:06 AM
Re: which NIC talks to server?
Easiest way is to do a traceroute:
traceroute servername
or
/usr/sbin/traceroute servername
The result should make it clear which interface was used to transmit out. If you repeat the traceroute from the server back to the client you will see which interface receives it.
It's fairly simple to tell from
netstat -rn
which interface goes with which IP address. The trick on a UNIX box is to figure out which physical RJ45 each interface refers to. I think on HPUX the builtin one is always the lowest number but after that you are on your own. (Is the top NIC in a quad card lan1 or lan4?)
We used to have some SCOs which would play musical chairs with the NICs after each boot. IF in doubt set up a ping to a local IP so you know which IP address is involved and then momentarily unplug the CAT5 cable from each NIC until you see the ping stop.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 08:01 AM
12-18-2003 08:01 AM
Solution+ lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/8/0/0/4/0 0x00306E3812AD 0 UP lan0 snap0 1 ETHER Yes 119
1/0/1/0/0/4/0 0x00306E4A9088 2 UP lan2 snap2 2 ETHER Yes 119
0/0/14/0/0 0x00306E4BD75A 1 UP lan1 snap1 3 ETHER Yes 119
+ netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
172.20.202.107 172.20.202.107 UH 0 lan0 4136
172.20.202.0 172.20.202.107 U 2 lan0 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 172.20.202.107 U 0 lan0 1500
The "lanscan" tells me which hardware address is what "lanX".
Then the "netstat -rn" shows me my "routing tables". The active LAN card is the one that has my host IP address in it twice, plus the "UH" in the "flags" column. In this case (I only have 1 LAN card active), it's lan0 at address "0/0/8/0/0/4/0".
This may not be too scientific, but it works for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 08:43 AM
12-18-2003 08:43 AM
Re: which NIC talks to server?
That helped. one more question..
How do I determine the MAC address of the machine?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 08:51 AM
12-18-2003 08:51 AM
Re: which NIC talks to server?
sam will tell you, when you go to nic configuration. Or use lanadmin.
have fun,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 08:56 AM
12-18-2003 08:56 AM
Re: which NIC talks to server?
-Hazem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 08:57 AM
12-18-2003 08:57 AM
Re: which NIC talks to server?
lanscan will give you the MAC of EACH NIC in the server. It will be in the Station Address column
The machine doesn't have a MAC - per se - but some SW uses the MAC of the built-in NIC as a license key.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:21 AM
12-18-2003 09:21 AM
Re: which NIC talks to server?
gives
station
address
XXXXXXXXXXXXX
But I just want the XXXXXXXXXXXXXXX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:30 AM
12-18-2003 09:30 AM
Re: which NIC talks to server?
that is:
lanscan | awk '{ print $2 }' | grep "0x"
greetings,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:32 AM
12-18-2003 09:32 AM
Re: which NIC talks to server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2003 09:38 AM
12-18-2003 09:38 AM
Re: which NIC talks to server?
a mac address is displayed in hex and hex numbers start with 0x.
greetings,
Michael