ubuntu配置更新修改IP位址

2021-06-05 17:21:39 字數 410 閱讀 7916

auto eth0
iface eth0 inet static
address 172.9.4.51
netmask  255.255.255.0
gateway  172.9.4.1

2、ubuntu系統修改dns: sudo gedit /etc/resolv.conf
nameserver 192.0.0.200

3、使網路生效:sudo /etc/init.d/networking restart
刪除快取檔案,重啟後解決。
sudo rm /etc/udev/rules.d/70-persistent-net.rules
reboot

ubuntu修改配置靜態ip

ubuntu配置和修改ip位址 1 修改配置檔案 etc network inte ces root ubuntu sudo gedit etc network inte ces 新增以下內容 auto eth0 設定自動啟動eth0介面 iface eth0 inet static 配置靜態ip ...

Ubuntu配置和修改IP位址

習慣了使用redhat和centos,今天客戶要修改ubuntu的ip位址,怎麼著配置檔案也找不到,也沒有setup圖形配置程式,只能谷歌了一下,問題解決了,在此做一下備忘。1 修改配置檔案 etc network inte ces sudo vim etc network inte ces新增以下...

ubuntu配置和修改IP位址

習慣了使用redhat和centos,今天客戶要修改ubuntu的ip位址,怎麼著配置檔案也找不到,也沒有setup圖形配置程式,只能谷歌了一下,問題解決了,在此做一下備忘。1 修改配置檔案 etc network inte ces sudo vim etc network inte ces新增以下...