{"id":110956,"date":"2024-12-09T23:25:11","date_gmt":"2024-12-09T15:25:11","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=110956"},"modified":"2024-12-09T23:25:11","modified_gmt":"2024-12-09T15:25:11","slug":"linux-etc-file","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-etc-file.html","title":{"rendered":"linux\u4e0b\u7684\u7f51\u7edc\u8bbe\u5907\u6587\u4ef6\u914d\u7f6e"},"content":{"rendered":"
\u7cfb\u7edf\u7f51\u7edc\u8bbe\u5907\u7684\u914d\u7f6e\u6587\u4ef6\u4fdd\u5b58\u5728\"\/etc\/sysconfig\/network-scripts<\/span>\u201d\u76ee\u5f55\u4e0b\uff0cifcfg-eth0<\/span> \u5305\u542b\u7b2c\u4e00\u5757\u7f51\u5361\u7684\u914d\u7f6e\u4fe1\u606f\uff0cifcfg-eth1 <\/span>\u5305\u542b\u7b2c\u4e8c\u5757\u7f51\u5361\u7684\u914d\u7f6e\u4fe1\u606f\u3002 \u82e5\u5e0c\u671b\u624b\u5de5\u4fee\u6539\u7f51\u7edc\u5730\u5740\u6216\u5728\u65b0\u7684\u63a5\u53e3\u4e0a\u589e\u52a0\u65b0\u7684\u7f51\u7edc\u754c\u9762\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u5bf9\u5e94\u7684\u6587\u4ef6(ifcfg-ethN<\/span>) \u6216\u521b\u5efa\u65b0\u7684\u6587\u4ef6\u6765\u5b9e\u73b0\u3002<\/p>\n \u539f\u6587\u6765\u81ea\uff1ahttp:\/\/www.jsgho.net\/help\/fwq\/29646.html<\/a><\/p>\n
\n\u4e0b\u9762\u662f\u201c\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span>\u201d\u6587\u4ef6\u7684\u793a\u4f8b\uff1a<\/p>\nDEVICE=eth0\r\nONBOOT=yes\r\nBOOTPROTO=static\r\nIPADDR=192.168.0.66\r\nNETMASK=255.255.255.0\r\nGATEWAY=192.168.0.65<\/pre>\n
\n