為什麼eth0會變成eth1

2021-06-27 21:55:40 字數 1241 閱讀 2301

虛擬機器新裝的系統怎麼都拼不能,ifconfig,看到如下資訊:

eth1      link encap:ethernet  hwaddr 00:0c:29:a9:22:9d  

inet addr:192.168.1.108  bcast:192.168.1.255  mask:255.255.255.0

inet6 addr: fe80::20c:29ff:fea9:229d/64 scope:link

up broadcast running multicast  mtu:1500  metric:1

rx packets:313 errors:0 dropped:0 overruns:0 frame:0

tx packets:182 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000 

rx bytes:67356 (65.7 kib)  tx bytes:26612 (25.9 kib)

interrupt:19 base address:0x2000 

lo        link encap:local loopback  

inet addr:127.0.0.1  mask:255.0.0.0

inet6 addr: ::1/128 scope:host

up loopback running  mtu:16436  metric:1

rx packets:1788 errors:0 dropped:0 overruns:0 frame:0

tx packets:1788 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0 

rx bytes:89560 (87.4 kib)  tx bytes:89560 (87.4 kib)

坑,記得先前用的是eth0,在網上查了下記錄網絡卡裝置的資訊,

最後執行:

設定ip:

ifconfig eth0 192.168.112.229 netmask255.255.255.0

設定閘道器:

route add default gw 192.168.112.1

linux下 eth0變成eth1的原因

我發現這種情況一般是在用虛擬機器配置集群時容易發生 發生的原因 為什麼eth0會變成eth1?很多linux distribution使用udev動態管理裝置檔案,並根據裝置的資訊對其進行持久化命名。udev會在系統引導的過程中識別網絡卡,將mac位址和網絡卡名稱對應起來記錄在udev的規則指令碼中...

Linux的網絡卡由eth0變成了eth1,如何修復

使用wmware安裝了linux,安裝成功後,使用的網絡卡是eth0,沒有eth1。但是用過一段時間後,不知道為什麼eth0無法使用,系統卻自動生成了eth1網絡卡,這可以使用ifconfig命令看的到。user localhost ifconfig eth1 link encap ethernet...

Linux的網絡卡由eth0變成了eth1,如何修復

環境 centos 6.5 裝在u 盤中的。可以隨身帶 說明 我在一台機器上在u盤上裝好系統以後,網路什麼的都能正常使用,然後我換到另一台機器的時候問題出現了。就是無法使用網路。表現 ifconfig 只顯示lo ifconfig a 顯示lo 和 eth1 沒 eth0 檢視 etc syscon...