#1 编辑/etc/sysconfig/network-scripts/ifcfg-eth0
[root@...]#vi /etc/sysconfig/network-scripts/ifcfg-eth0
更改如下:
BOOTPROTO=static
IPADDR=192.168.2.100
NETMASK=255.255.255.0
GATEWAY=192.168.2.1
#2 重启网络服务
[root@...]#service network restart
阅读(477) | 评论(0) | 转发(0) |