物理网卡这里指的是服务器上实际的网络接口设备,这里我服务器上双网卡,在系统中看到的2个物理网卡分别对应是eth0和eth1这两个网络接口。?
最近用VMware安装完CentOS后,使用ifconfig配置IP时,发现网卡eth0不见了。?
1、使用命令:ifconfig eth0 up启动网卡,但是IP地址、子网掩码和网关都是错误的。?
可以使用如下命令更改:?
ifconfig eth0 10.0.13.24 netmask 255.255.255.0 gateway 10.0.13.1如果网络连接方式使用的是桥接,可以继续以下操作来配置网络eth0。?
2、修改/etc/sysconfig/network-scripts/ifcfg-eth0文件,内容如下:?
DEVICE=eth0 //?设备名称ONBOOT=yes //?在系统启动时激活设备yes或noBOOTPROTO=static // static或dhcpIPADDR=10.0.13.24 // IP地址NETMASK=255.255.255.0 //?子网掩码GATEWAY=10.0.13.1 //?网关HWADDR=00:0C:29:96:38:F8 // MAC地址3、使用命令:service network restart重启网络服务?
以上就是linux虚拟机找不到网卡eth0的详细内容,更多请关注http://www.vecloud.com/!
The physical network card refers to the actual network interface equipment on the server. Here I have the two network cards on the server. The two physical network cards that I see in the system are eth0 and eth1, respectively.
The recent installation of the CentOS with VMware, the ifconfig configuration of the IP revealed that the webcaeth0 was missing.
1, the use of the command: ifconfig eth0 up, but the IP address, subnet mask, and the gateway are wrong.
The following commandcomm?
ifconfig eth0.10.13.24 netmask 2555.25.gateway 10.0.13.1 If the network is connected by means of a bridge?
, the use of the command: i.e.fconfig eth0.
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论