LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2018, 11:19 AM   #1
triley831
Member
 
Registered: Feb 2017
Posts: 34

Rep: Reputation: Disabled
Identifying specific ports on a Fiber card


Hoping someone can provide a tip.

So we have a server with multiple Broadcom Fiber nic PCI cards, which take SFPs. RHEL7 of course loads all these interfaces as something like enps0f1, whatver. The software I have to install and get running on this server is dependent on the nics being named "ethx". Does anyone know of an easy way to determine, that a specific port on a card is enps0xxxxx, so that I can then use the bus id in a udev rule to rename that interface as ethx?

When we were working with copper nics, it was easy to just use ethtool --identify "nic name" and it would blink. Apparently ethtool won't make these kind of nics blink.

Thanking you in advance....
 
Old 10-25-2018, 01:28 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,016

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Many distros have udev configured to use predictable network interface naming as described here. If you require (or prefer) traditional naming, you can specify 'net.ifnames=0' kernel boot parameter (in grub).

References...
https://wiki.archlinux.org/index.php...nterface_names
https://wiki.archlinux.org/index.php...interface_name

Quote:
When we were working with copper nics, it was easy to just use ethtool --identify "nic name" and it would blink. Apparently ethtool won't make these kind of nics blink.
Another method that can be used is to light up an optical interface (eg via another SFP and patch cable), then use 'ethtool' or even 'ip link' to check the status of a given port.

This will watch dynamically for example....
Code:
watch ip link
 
  


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
how to get details of the installed fiber card Maxandmin Linux - Newbie 1 01-18-2011 11:37 AM
how? redirect apache2 outbound ports to specific ports w/iptables? nowshining Linux - Security 5 05-27-2008 02:46 AM
Fiber Card Config in SUSE 10 ES jgiles6 SUSE / openSUSE 0 09-07-2006 11:55 AM
Installing A QLA2200 Fiber Card!! mkersh Linux - Hardware 5 02-02-2004 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:55 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