"리눅스 이더넷 카드 모델명 확인"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 26개는 보이지 않습니다)
1번째 줄: 1번째 줄:
;리눅스 랜카드 장치 모델명 확인
;리눅스 랜카드 장치 모델명 확인
;리눅스 이더넷 모델명, 벤더 확인
;리눅스 이더넷 모델명, 벤더 확인
;리눅스 NIC 카드 모델 확인
*VM이 아니고, 인터페이스가 PCI인 경우에만 가능
*VM이 아니고, 인터페이스가 PCI인 경우에만 가능


==모델명 확인==
== 모델명 확인==
===명령어===
<source lang='console'>
<source lang='bash'>
[root@localhost ~]# lspci | grep -i Ethernet
/sbin/lspci | grep -i Ethernet
</source>
 
===실행예시 (Dedi)===
<source lang='dos'>
[root@localhost ~]# /sbin/lspci | grep -i Ethernet
04:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
25번째 줄: 20번째 줄:
7a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
7a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
</source>
</source>
→ PCI 포트에 12개의 랜카드가 꽂혀있다.
:→ PCI 이더넷 장치가 12개 있다.


===실행예시 (VM)===
* 상세 보기 ( -m 옵션 )
<source lang='dos'>
<source lang='console'>
[root@localhost ~]# /sbin/lspci
[root@localhost ~]# lspci -m | grep -i Ethernet
04:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.2 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.3 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
0b:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
0b:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
11:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
11:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
71:00.0 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
71:00.1 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
7a:00.0 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
7a:00.1 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
</source>
</source>
→ 가상 머신에서는 lspci 결과가 나오지 않는다.


==제조사 및 벤더 확인==
==벤더 목록 뽑기==
;명령어
<source lang='bash'>
<source lang='bash'>
/sbin/lspci -m | grep -i Ethernet
lspci -m | grep -i Ethernet | while read line
do
echo $line | awk '{split($0,a,"\""); print a[8]}'
done
</source>
</source>


;
<source lang='console'>
[root@localhost ~]# /sbin/lspci -m | grep -i Ethernet | while read line; do echo $line | awk '{split($0,a,"\"); print a[8]}'; done
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
</source>


==서브시스템명 뽑기==
<source lang='bash'>
lspci -m | grep -i Ethernet | while read line
do
echo $line | awk '{split($0,a,"\""); print a[10]}'
done
</source>


<source lang='console'>
[root@localhost ~]# lspci -m | grep -i Ethernet | while read line; do echo $line | awk '{split(0,a,"\""); print a[10]}'; done
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
</source>


==같이 보기==
==같이 보기==
*[[ifconfig]]
*[[서버 모델명 확인]]
*[[리눅스 이더넷 드라이버 확인]]
*[[리눅스 이더넷 펌웨어 버전 수집]]
*[[리눅스 lspci]]
*[[리눅스 ethtool]]
*[[리눅스 ifconfig]]
*[[NIC]]


[[분류: 리눅스 네트워크]]
[[분류: 리눅스 네트워크]]
[[분류: 랜카드]]
[[분류: 랜카드]]
[[분류: lspci]]
[[분류: lspci]]

2016년 6월 18일 (토) 15:50 기준 최신판

리눅스 랜카드 장치 모델명 확인
리눅스 이더넷 모델명, 벤더 확인
리눅스 NIC 카드 모델 확인
  • VM이 아니고, 인터페이스가 PCI인 경우에만 가능

1 모델명 확인[ | ]

[root@localhost ~]# lspci | grep -i Ethernet
04:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.2 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
04:00.3 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
0b:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
0b:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
11:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
11:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
71:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
71:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
7a:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
7a:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
→ PCI 이더넷 장치가 12개 있다.
  • 상세 보기 ( -m 옵션 )
[root@localhost ~]# lspci -m | grep -i Ethernet
04:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.2 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
04:00.3 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC375i Integrated Quad Port Multifunction Gigabit Server Adapter"
0b:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
0b:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
11:00.0 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
11:00.1 "Ethernet controller" "NetXen Incorporated" "NX3031 Multifunction 1/10-Gigabit Server Adapter" -r42 "Hewlett-Packard Company" "NC522SFP Dual Port 10GbE Server Adapter"
71:00.0 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
71:00.1 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
7a:00.0 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"
7a:00.1 "Ethernet controller" "Intel Corporation" "82571EB Gigabit Ethernet Controller" -r06 "Hewlett-Packard Company" "NC360T PCI Express Dual Port Gigabit Server Adapter"

2 벤더 목록 뽑기[ | ]

lspci -m | grep -i Ethernet | while read line
do
	echo $line | awk '{split($0,a,"\""); print a[8]}'
done
[root@localhost ~]# /sbin/lspci -m | grep -i Ethernet | while read line; do echo $line | awk '{split($0,a,"\"); print a[8]}'; done
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company
Hewlett-Packard Company

3 서브시스템명 뽑기[ | ]

lspci -m | grep -i Ethernet | while read line
do
	echo $line | awk '{split($0,a,"\""); print a[10]}'
done
[root@localhost ~]# lspci -m | grep -i Ethernet | while read line; do echo $line | awk '{split(0,a,"\""); print a[10]}'; done
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC375i Integrated Quad Port Multifunction Gigabit Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC522SFP Dual Port 10GbE Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter
NC360T PCI Express Dual Port Gigabit Server Adapter

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}