昨天公司内部机房线路短路,机房的所有设备的电源适配器全部烧毁:包裹 2台路由器/2台adsl,,一台tplink 48**换机,一台电话交换机,一台dell R610服务器,2台pc服务器。。。
公司的开发环境/内网的svn都部署在pc服务器上面,有一台pc主板烧毁:
我将硬盘拔出,换到另外一台相同配置的pc上面,启动之后发现eth0 无法启动。。。
ifconfig 看不到eth0的配置信息,只有显示环回 lo:
sudo ifup eth0
Ignoring unknown interface eth0=eth0.
使用ifconfig -a 命令查看,原来的eth0 现在显示为eth1
ifconfig -a
eth1 Link encap:Ethernet HWaddr 00:30:18:a1:54:86
inet addr:192.168.39.200 Bcast:192.168.39.255 Mask:255.255.255.0
inet6 addr: fe80::230:18ff:fea1:5486/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20753 errors:0 dropped:0 overruns:0 frame:0
TX packets:7076 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2212172 (2.2 MB) TX bytes:753798 (753.7 KB)
Interrupt:26 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:121902 errors:0 dropped:0 overruns:0 frame:0
TX packets:121902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13263588 (13.2 MB) TX bytes:13263588 (13.2 MB)
接着我将eth0的配置全部修改成eth1
cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet static
address 192.168.39.200
netmask 255.255.255.0
gateway 192.168.39.1
然后执行ifup
sudo ifup eth1
网卡启来了。
检测命令:lspci lsmod modprobe dmesg
参考贴:
阅读(661) | 评论(0) | 转发(0) |