用vi編輯 /etc/sysconfig/network and /etc/sysconfig/network-scripts/ifcfg-eth01) /etc/sysconfig/networkNETWORKING = yesFORWARD_IPV4 = yesHOSTNAME = xxxx.com #你的主機名GATEWAY = 123.123.123.123 #網關GATEWAYDEV = eth02) /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE = eth0IPADDR = xxx.xxx.xxx.xxx #你的IP地址NETMASK = xxx.xxx.xxx.xxx #你的子網掩碼NETWORK = xxx.xxx.xxx.xxx #你的工作網絡BROADCAST = xxx.xxx.xxx.xxx #你的廣播址ONBOOT = yes然後運行 /etc/sysconfig/network-scripts/ifup eth0 啟動。