LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-07-2015, 09:30 PM   #1
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
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.

Last edited by yashraj221087; 02-07-2015 at 09:31 PM.
 
Old 02-07-2015, 10:04 PM   #2
linuxtech99
Member
 
Registered: Jan 2015
Posts: 35

Rep: Reputation: 4
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.
 
Old 02-14-2015, 07:47 PM   #3
yashraj221087
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks for the reply. But is there any other way to figure it out the vlan from these connected links ?
 
Old 02-15-2015, 10:42 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by yashraj221087 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] We cannot find the correct way to configure a ldap server as master and other as slav mfran Linux - Software 2 08-17-2012 07:52 AM
Single physical nic with two ip's on the same vlan pgb205 Linux - Networking 3 08-23-2011 07:57 PM
VLAN--Can I still have main NIC interface ip'd pgb205 Linux - Networking 1 05-14-2011 09:28 AM
Need to add correct paths for './configure' to find X libraries. GTrax Linux - Software 7 10-12-2009 04:31 AM
vlan - multiple ip -same nic lord-fu Linux - Networking 1 12-06-2007 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration