相關(guān)資訊
本類常用軟件
-
福建農(nóng)村信用社手機(jī)銀行客戶端下載下載量:584212
-
Windows優(yōu)化大師下載量:419776
-
90美女秀(視頻聊天軟件)下載量:366966
-
廣西農(nóng)村信用社手機(jī)銀行客戶端下載下載量:365708
-
快播手機(jī)版下載量:325899
RedHat 更改網(wǎng)卡的方法
2014/5/4 21:08:01 出處:本站原創(chuàng) 人氣:254次 字號(hào):小 中 大
ifconfig -a 發(fā)現(xiàn)有三個(gè)網(wǎng)卡: eth0 eth1 eth2。
vi /etc/udev/rules.d/70-persistent-net.rules
把沒(méi)用的網(wǎng)卡(8139too)信息刪除或注釋掉,再修改新網(wǎng)卡(r8169)參數(shù)NAME="eth2"
例子:
[root@smalarm rules.d]# cat 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 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f8:b1:56:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8139 (8139too)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4d:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"