Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@xs1-pdx0 ~]# interface-rename -l
- Name MAC PCI ethN Phys SMBios Driver Version Firmware
- eth0 00:1b:78:5c:74:34 0000:4b:00.0 eth4 e1000e 3.1.0.2-NAPI 5.11-2
- eth1 00:1b:78:5c:74:35 0000:4b:00.1 eth5 e1000e 3.1.0.2-NAPI 5.11-2
- eth2 00:26:55:d2:ee:50 0000:48:00.0 eth2 e1000e 3.1.0.2-NAPI 5.11-2
- eth3 00:26:55:d2:ee:51 0000:48:00.1 eth3 e1000e 3.1.0.2-NAPI 5.11-2
- eth4 00:1f:29:c4:9d:ba 0000:42:00.0 eth0 em1 bnx2 2.2.5f bc 1.9.6
- eth5 00:1f:29:c4:9d:c2 0000:44:00.0 eth1 em2 bnx2 2.2.5f bc 1.9.6
- [root@xs1-pdx0 ~]# lspci -k
- ...
- 42:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
- Subsystem: Hewlett-Packard Company NC373i Integrated Multifunction Gigabit Server Adapter
- Kernel driver in use: bnx2
- Kernel modules: bnx2
- ...
- 44:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
- Subsystem: Hewlett-Packard Company NC373i Integrated Multifunction Gigabit Server Adapter
- Kernel driver in use: bnx2
- Kernel modules: bnx2
- ...
- 48:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
- Subsystem: Hewlett-Packard Company NC360T PCI Express Dual Port Gigabit Server Adapter
- Kernel driver in use: e1000e
- Kernel modules: e1000e
- 48:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
- Subsystem: Hewlett-Packard Company NC360T PCI Express Dual Port Gigabit Server Adapter
- Kernel driver in use: e1000e
- Kernel modules: e1000e
- 4b:00.0 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
- Subsystem: Hewlett-Packard Company NC360T PCI Express Dual Port Gigabit Server Adapter
- Kernel driver in use: e1000e
- Kernel modules: e1000e
- 4b:00.1 Ethernet controller: Intel Corporation 82571EB Gigabit Ethernet Controller (rev 06)
- Subsystem: Hewlett-Packard Company NC360T PCI Express Dual Port Gigabit Server Adapter
- Kernel driver in use: e1000e
- Kernel modules: e1000e
- [root@xs1-pdx0 ~]# cat /etc/sysconfig/network-scripts/interface-rename-data/dynamic-rules.json
- # Automatically adjusted file. Do not edit unless you are certain you know how to
- {
- "lastboot": [
- [
- "00:1f:29:c4:9d:ba",
- "0000:42:00.0",
- "eth4"
- ],
- [
- "00:1f:29:c4:9d:c2",
- "0000:44:00.0",
- "eth5"
- ],
- [
- "00:26:55:d2:ee:50",
- "0000:48:00.0",
- "eth2"
- ],
- [
- "00:26:55:d2:ee:51",
- "0000:48:00.1",
- "eth3"
- ],
- [
- "00:1b:78:5c:74:34",
- "0000:4b:00.0",
- "eth0"
- ],
- [
- "00:1b:78:5c:74:35",
- "0000:4b:00.1",
- "eth1"
- ]
- ],
- "old": []
- }[root@xs1-pdx0 ~]#cat /etc/sysconfig/network-scripts/interface-rename-data/static-rules.conf
- # Static rules. Autogenerated by the installer from the answerfile or previous install
- # WARNING - rules in this file override the 'lastboot' assignment of names,
- # so editing it may cause unexpected renaming on next boot
- # Rules are of the form:
- # target name: id method = "value"
- # target name must be in the form eth*
- # id methods are:
- # mac: value should be the mac address of a device (e.g. DE:AD:C0:DE:00:00)
- # pci: value should be the pci bus location of the device (e.g. 0000:01:01.1)
- # ppn: value should be the result of the biosdevname physical naming policy of a device (e.g. p1p1)
- # label: value should be the SMBios label of a device (for SMBios 2.6 or above)
- [root@xs1-pdx0 ~]# /etc/sysconfig/network-scripts/interface-rename.py --update eth0 eth5
- ERROR [2015-10-27 10:59:41] No valid update rules after processing. Doing nothing
Advertisement
Add Comment
Please, Sign In to add comment