Chinaunix首页 | 论坛 | 博客
  • 博客访问: 642299
  • 博文数量: 198
  • 博客积分: 4256
  • 博客等级: 上校
  • 技术积分: 1725
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-15 13:12
文章分类

全部博文(198)

文章存档

2012年(12)

2011年(39)

2010年(135)

2009年(12)

我的朋友

分类: 系统运维

2011-06-24 10:39:09

昨天公司内部机房线路短路,机房的所有设备的电源适配器全部烧毁:包裹 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 

参考贴:

阅读(2285) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~