linux 设置内网静态ip
大滥贴,本人记忆力不好,故记录之
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0BOOTPROTO=staticBROADCAST=192.168.0.255IPADDR=192.168.0.107NETMASK=255.255.255.0TYPE=EthernetNETWORK=192.168.0.0GATEWAY=192.168.0.1HWADDR=00:11:25:A9:55:0CONBOOT=yesDHCP_HOSTNAME=myhostname
nameserver 8.8.8.8 #主DNSnameserver 168.95.0.1 #次DNS