etc鐩 綍涓嬬殑閱嶈 鏂囦歡 鐖辯弬鍏堢敓

2022-09-22 23:57:14 字數 335 閱讀 7587

鎬葷粨etc鐩?綍涓嬬殑閱嶈?鏂囦歡

1) 緗戝崱閰嶇疆鏂囦歡

鏂囦歡璺?緞淇℃伅: /etc/sysconfig/network-scripts/ifcfg-eth0

鏂囦歡浣滅敤璇存槑: 閰嶇疆緗戝崱鍦板潃淇℃伅 (ip鍦板潃 鎺╃爜鍦板潃 緗戝叧鍦板潃 dns鍦板潃淇℃伅)

鏂囦歡璇︾粏淇℃伅:

type=ethernet --- 鐫囧畾緗戠粶綾誨瀷 浠ュお緗戠被鍨? bootproto=none --- 鑾峰彇ip鍦板潃鏂瑰紡 none static(鎵嬪姩閰嶇疆鍦板潃) dhcp(鑷?姩鑾峰彇鍦板潃)

defroute=yes --- 鏄?惁嬋