Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5387880
  • 博文数量: 890
  • 博客积分: 12876
  • 博客等级: 上将
  • 技术积分: 10760
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-04 14:18
个人简介

猝然临之而不惊,无故加之而不怒。

文章分类

全部博文(890)

文章存档

2016年(1)

2014年(18)

2013年(41)

2012年(48)

2011年(65)

2010年(84)

2009年(121)

2008年(101)

2007年(129)

2006年(95)

2005年(118)

2004年(69)

分类: LINUX

2012-05-19 11:43:34

今天将VMware Server 2.0里面的虚拟机迁移到到ESXi Server 4.1时,发现Windows操作系统的有提示找到一块新网卡(原来网卡是单块AMD,类型桥接,现在网络适配器是VM Netowk),到了迁移OCS-NG的CentOS 6.0的操作系统后,登陆后发现,找不到网卡,只有LO。
#ifconfig
只有LO
#ifconfgi eth0
eth0: error fetching interface information: Device not found
#cat   /proc/net/dev 
[root@ocsinventory-ng net]# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  eth1: 3087873    6145    1    0    0     0          0         0  1545883    2126    0    0    0     0       0          0
  sit0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
[root@ocsinventory-ng net]# 
里面有没有eth0,只有新生成的eth1,于是
#cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
#编辑一下ifcfg-eth1,更改里面配置eth0为eth1
#ifup eth1
搞定!
阅读(14113) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~