网络设备接口名
2017-03-29 16:09
302 查看
参考资料
/*
* Predictable network interface device names based on:
* - firmware/bios-provided index numbers for on-board devices
* - firmware-provided pci-express hotplug slot index number
* - physical/geographical location of the hardware
* - the interface’s MAC address
*
* http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
*
* Two character prefixes based on the type of interface:
* en – ethernet
* sl – serial line IP (slip)
* wl – wlan
* ww – wwan
*
* Type of names:
* b – BCMA bus core number
* ccw – CCW bus group name
* o[d] – on-board device index number
* s[f][d] – hotplug slot index number
* x – MAC address
* [P]ps[f][d]
* – PCI geographical location
* [P]ps[f][u][..][c][i]
* – USB port number chain
*
* All multi-function PCI devices will carry the [f] number in the
* device name, including the function 0 device.
*
* When using PCI geography, The PCI domain is only prepended when it is not 0.
*
* For USB devices the full chain of port numbers of hubs is composed. If the
* name gets longer than the maximum number of 15 characters, the name is not
* exported.
* The usual USB configuration == 1 and interface == 0 values are suppressed.
*
* PCI ethernet card with firmware index “1”:
* ID_NET_NAME_ONBOARD=eno1
* ID_NET_NAME_ONBOARD_LABEL=Ethernet Port 1
*
* PCI ethernet card in hotplug slot with firmware index number:
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0
* ID_NET_NAME_SLOT=ens1
*
* PCI ethernet multi-function card with 2 ports:
* /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/enp2s0f0
* ID_NET_NAME_MAC=enx78e7d1ea46da
* ID_NET_NAME_PATH=enp2s0f0
* /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.1/net/enp2s0f1
* ID_NET_NAME_MAC=enx78e7d1ea46dc
* ID_NET_NAME_PATH=enp2s0f1
*
* PCI wlan card:
* /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlp3s0
* ID_NET_NAME_MAC=wlx0024d7e31130
* ID_NET_NAME_PATH=wlp3s0
*
* USB built-in 3G modem:
* /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.6/net/wwp0s29u1u4i6
* ID_NET_NAME_MAC=wwx028037ec0200
* ID_NET_NAME_PATH=wwp0s29u1u4i6
*
* USB Android phone:
* /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/net/enp0s29u1u2
* ID_NET_NAME_MAC=enxd626b3450fb5
* ID_NET_NAME_PATH=enp0s29u1u2
*/
例如:
enp0s10:
en – ethernet
p0 – bus number (0)
/*
* Predictable network interface device names based on:
* - firmware/bios-provided index numbers for on-board devices
* - firmware-provided pci-express hotplug slot index number
* - physical/geographical location of the hardware
* - the interface’s MAC address
*
* http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
*
* Two character prefixes based on the type of interface:
* en – ethernet
* sl – serial line IP (slip)
* wl – wlan
* ww – wwan
*
* Type of names:
* b – BCMA bus core number
* ccw – CCW bus group name
* o[d] – on-board device index number
* s[f][d] – hotplug slot index number
* x – MAC address
* [P]ps[f][d]
* – PCI geographical location
* [P]ps[f][u][..][c][i]
* – USB port number chain
*
* All multi-function PCI devices will carry the [f] number in the
* device name, including the function 0 device.
*
* When using PCI geography, The PCI domain is only prepended when it is not 0.
*
* For USB devices the full chain of port numbers of hubs is composed. If the
* name gets longer than the maximum number of 15 characters, the name is not
* exported.
* The usual USB configuration == 1 and interface == 0 values are suppressed.
*
* PCI ethernet card with firmware index “1”:
* ID_NET_NAME_ONBOARD=eno1
* ID_NET_NAME_ONBOARD_LABEL=Ethernet Port 1
*
* PCI ethernet card in hotplug slot with firmware index number:
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0
* ID_NET_NAME_SLOT=ens1
*
* PCI ethernet multi-function card with 2 ports:
* /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/net/enp2s0f0
* ID_NET_NAME_MAC=enx78e7d1ea46da
* ID_NET_NAME_PATH=enp2s0f0
* /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.1/net/enp2s0f1
* ID_NET_NAME_MAC=enx78e7d1ea46dc
* ID_NET_NAME_PATH=enp2s0f1
*
* PCI wlan card:
* /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlp3s0
* ID_NET_NAME_MAC=wlx0024d7e31130
* ID_NET_NAME_PATH=wlp3s0
*
* USB built-in 3G modem:
* /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.6/net/wwp0s29u1u4i6
* ID_NET_NAME_MAC=wwx028037ec0200
* ID_NET_NAME_PATH=wwp0s29u1u4i6
*
* USB Android phone:
* /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/net/enp0s29u1u2
* ID_NET_NAME_MAC=enxd626b3450fb5
* ID_NET_NAME_PATH=enp0s29u1u2
*/
例如:
enp0s10:
en – ethernet
p0 – bus number (0)
s10 -- slot number (10)
相关文章推荐
- Cisco 网络设备的接口类型
- Linux网络之设备接口层:发送数据包流程dev_queue_xmit
- 网络设备MAC和接口MAC
- 初学python-获取网络设备配置文件接口IP信息
- 获取支持SRIOV的网络接口设备信息
- 重画了一下网络设备接口图
- 设备VMnet0上的网桥因桥接的以太网接口关闭而暂时停止运行。(此虚拟机可能无法与主机或网络中的其他计算机通信)
- zabbix通过自动发现功能实现自动识别网络设备接口
- Linux网络之设备接口层:发送数据包流程dev_queue_xmit(二)
- [网络基础]网络设备接口(水晶头)的制作及连接
- 一致性网络设备命名——linux 网络接口 命名 p1p1 em1
- 网络设备驱动第一课--------接口与定义
- Jpcap包的学习笔记(四)打开网络接口设备[网卡设备]
- IMS网络中设备间的接口
- 【网络】如何快速查找设备的网络接口
- 使用 rvictl 暴露 iOS 设备网络接口
- zabbix通过自动发现功能实现自动识别网络设备接口
- 有线电缆数据服务接口规范(DOCSIS)--网络大典