본문으로 바로가기
반응형

SR-IOV를 사용하다보면, 해당 인터페이스뒤에 v0 등으로 표시되면 좋은데 그렇지 않은 경우 물리NIC인지, VF 인지 확인하기 번거로울때가 있는데, 이때 "lshw -c network -businfo" 명령어를 통해 쉽게 network 종류를 확인할 수 있습니다.

 

확인하기 편한 예

4: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether e4:43:4b:b5:28:b0 brd ff:ff:ff:ff:ff:ff
    vf 0     link/ether 12:64:a4:b8:e1:f2 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
    vf 1     link/ether ce:e9:dd:b9:86:d5 brd ff:ff:ff:ff:ff:ff, spoof checking on, link-state auto, trust off, query_rss off
    
490: eno1v0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 12:64:a4:b8:e1:f2 brd ff:ff:ff:ff:ff:ff
491: eno1v1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether ce:e9:dd:b9:86:d5 brd ff:ff:ff:ff:ff:ff

 

 

[root@hk-kvm network-scripts]# lshw -c network -businfo
Bus info          Device       Class          Description
=========================================================
pci@0000:02:00.0  eno1         network        NetXtreme BCM5719 Gigabit Ethernet PCIe
pci@0000:02:00.1  eno2         network        NetXtreme BCM5719 Gigabit Ethernet PCIe
pci@0000:02:00.2  eno3         network        NetXtreme BCM5719 Gigabit Ethernet PCIe
pci@0000:02:00.3  eno4         network        NetXtreme BCM5719 Gigabit Ethernet PCIe
pci@0000:12:00.0  ens1f0       network        Ethernet Controller X710 for 10GbE SFP+
pci@0000:12:00.1  ens1f1       network        Ethernet Controller X710 for 10GbE SFP+
pci@0000:12:02.0  enp18s2      network        Ethernet Virtual Function 700 Series
pci@0000:12:02.1  enp18s2f1    network        Ethernet Virtual Function 700 Series
pci@0000:12:02.2  enp18s2f2    network        Ethernet Virtual Function 700 Series
pci@0000:12:02.3  enp18s2f3    network        Ethernet Virtual Function 700 Series
pci@0000:12:0a.0               network        Ethernet Virtual Function 700 Series
pci@0000:12:0a.1  enp18s10f1   network        Ethernet Virtual Function 700 Series
pci@0000:12:0a.2  enp18s10f2   network        Ethernet Virtual Function 700 Series
pci@0000:12:0a.3  enp18s10f3   network        Ethernet Virtual Function 700 Series
pci@0000:37:00.0  ens2f0       network        Ethernet Controller 10G X550T
pci@0000:37:00.1  ens2f1       network        Ethernet Controller 10G X550T

 

 

 

728x90