LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to find out correct NIC to configure for an IP or vlan. (https://www.linuxquestions.org/questions/linux-networking-3/how-to-find-out-correct-nic-to-configure-for-an-ip-or-vlan-4175533395/)

yashraj221087 02-07-2015 09:30 PM

How to find out correct NIC to configure for an IP or vlan.
 
HI Admins...

I have 8 NIC's available on one of our Red hat Linux server. I want to configure a public/data IP on one of the NIC. How can I find out the correct NIC's to use to configure for that IP or that particular vlan?

I don't want to test each available individual NIC by configuring IP on it and all...

Let me know ...Thanks in advance.

linuxtech99 02-07-2015 10:04 PM

Try to find which NIC is active and connected. You can check using ethtool command on each NIC. Example,

Code:

ethtool eth0
Whatever has "Link Detected :Yes", you can configure IP and test on them.

yashraj221087 02-14-2015 07:47 PM

Thanks for the reply. But is there any other way to figure it out the vlan from these connected links ?

TB0ne 02-15-2015 10:42 AM

Quote:

Originally Posted by yashraj221087 (Post 5317371)
Thanks for the reply. But is there any other way to figure it out the vlan from these connected links ?

There are only 8 NICS...it took you longer to log in here and post that question, than it would have taken you to run ethtool and FIND OUT. Or run "ifconfig -a", and display their information.


All times are GMT -5. The time now is 06:13 PM.