(1)[root@bogon test]# cd /etc/sysconfig/network-scripts/
(2)[root@bogon network-scripts]# vi ifcfg-eth0 (3)# Intel Corporation 82566DM-2 Gigabit Network Connection DEVICE=eth0 BOOTPROTO=none BROADCAST=10.255.255.255 HWADDR=00:1E:4F:D6:1A:B5 IPADDR=10.2.4.120 IPV6INIT=yes IPV6_AUTOCONF=yes NETMASK=255.0.0.0 NETWORK=10.0.0.0 ONBOOT=yes GATEWAY=10.0.0.1 TYPE=Ethernet(4)如(3)中所示,可以根据需要设置IP地址(IPADDR), 子网掩码(NETMASK),网关(GATEWAY)(5) service network restart 或者/etc/init.d/network restart 重启网卡即可