cd /etc/sysconfig/network-scripts
vi ifcfg-eth0
-----------------------------
#dhcp
DEVICE=eth0
HWADDR=00:0C:29:17:87:4E
ONBOOT=yes
BOOTPROTO=dhcp
-----------------------------
OR
-----------------------------
#static
DEVICE=eth0
HWADDR=00:0C:29:17:87:4E
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.1.4
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
vi /etc/resolv.conf
nameserver 8.8.8.8
阅读(1554) | 评论(0) | 转发(1) |