[Linux] device eth0 does not seem to present
虛擬機器service network restart提示
device eth0 does not seem to present
需要如下動作:
[root@iphone ~]# more /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:9c:52:5a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
記錄下其中mac address
[root@iphone ~]#
[root@iphone ~]# cd /etc/sysconfig/network-scripts/
[root@iphone network-scripts]# mv ifcfg-eth0 ifcfg-eth6
[root@iphone network-scripts]# more ifcfg-eth6 #將device 和 hwaddr 修改為上述內容
DEVICE=eth6
HWADDR=00:50:56:9c:52:5a
TYPE=Ethernet
UUID=7a969bdb-527f-4dc0-980e-e3cc4a6fe8a3
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
DNS1=192.168.169.254
IPV6INIT=no
USERCTL=no
IPADDR=172.16.99.19
NETMASK=255.255.255.0
GATEWAY=172.16.99.1
[root@iphone network-scripts]# service network restart #之後ok
device eth0 does not seem to present
需要如下動作:
[root@iphone ~]# more /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:56:9c:52:5a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6"
記錄下其中mac address
[root@iphone ~]#
[root@iphone ~]# cd /etc/sysconfig/network-scripts/
[root@iphone network-scripts]# mv ifcfg-eth0 ifcfg-eth6
[root@iphone network-scripts]# more ifcfg-eth6 #將device 和 hwaddr 修改為上述內容
DEVICE=eth6
HWADDR=00:50:56:9c:52:5a
TYPE=Ethernet
UUID=7a969bdb-527f-4dc0-980e-e3cc4a6fe8a3
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
DNS1=192.168.169.254
IPV6INIT=no
USERCTL=no
IPADDR=172.16.99.19
NETMASK=255.255.255.0
GATEWAY=172.16.99.1
[root@iphone network-scripts]# service network restart #之後ok
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2120395/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Your host does not meet minimum requirements to run VMware workstation with hyper-v or device/credenUIREMdev
- 翻譯:Linux and the Device TreeLinuxdev
- Linux案例01:eth0網路卡異常Linux
- SciTech-OS-Linux-Device Driver: 英文原版電子書“Linux Device Drivers, Third Edition”Linuxdev
- However small the rewards may seem in comparison
- Structure of Linux Kernel Device Driver(Part II)StructLinuxdev
- [Linux Device Driver] wifi adb 使用方法LinuxdevWiFi
- SSL - SSLHandshakeException: No subject alternative names presentException
- 自定義Push/Pop和Present/Dismiss轉場
- ‘map’ does not name a type
- What does -> do in clojure?
- does not support SSL connections
- 執行時報錯RuntimeError: expected device cpu but got device cuda:0ErrordevGo
- linux nvidia驅動錯誤--NVRM: This PCI I/O region assigned to your NVIDIA device is invalidLinuxVRdev
- 瞭解Linux系統中的Device Mapper機制:使用者空間LinuxdevAPP
- kubernetes container device interface (CDI)AIdev
- Waiting for target device to come onlineAIdev
- As 除錯 no target device found除錯dev
- What does "xargs grep" do?
- error: 'cout' does not name a type|Error
- error: ‘xxx’ does not name a typeError
- The label does not denote a loop in forEachOOP
- centos7的網路卡名修改為eth0CentOS
- XDS: Cross-Device Scripting AttacksROSdev
- iOS Device ID 的前世今生iOSdev
- gpg: signing failed: Inappropriate ioctl for deviceAIAPPdev
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- Property [title] does not exist on this collection instance
- Waring: /dev/centos/swap does not existdevCentOS
- Linux中兩塊device的minor number相同而造成RAC不能啟動的問題Linuxdev
- Centos系統更換網路卡名稱為eth0教程CentOS
- RAC安裝時出現PRKC-1024 : Invalid netmask: eth0
- Error: Connection activation failed: Device not managed by NetworkManagerErrorAIdev
- 淺談 iOS Device ID 的修改iOSdev
- Android Studio: /dev/kvm device permission deniedAndroiddev
- How does an Electric Motor work? (DC Motor)
- error: ‘變數名‘ does not name a type|Error變數
- How does SAP freelancer find a project that is not tough?Project
- does not name a type 的可能性