Ubuntu1404設定靜態ip

2021-06-29 16:10:50 字數 419 閱讀 8805

設定固定ip前先檢視系統自動分配的ip所屬網段,通過命令ifconfig檢視。這裡假設看到的是192.168.134網段,那麼你可以設定固定ip為192.168.134.138或192.168.134.139等

auto lo

iface lo inet loopback

iface eth0 inet static

address 192.168.134.138

netmask 255.255.255.0

gateway 192.168.134.2

dns-nameservers 192.168.134.2

auto eth0

2.、重啟ubuntu的網絡卡

sudo /etc/init.d/networking restart

注:不行的話,重啟系統應該就可以

ubuntu14 04設定靜態ip

1.找到檔案並作如下修改 sudo vim etc network inte ces 修改如下部分 auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 這個位址你要確認下 閘道器是不是這個位址 netm...

ubuntu14 04設定靜態ip

ubuntu14.04設定靜態ip 1.找到檔案並作如下修改 sudo vim etc network inte ces 修改如下部分 auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 這個位址你要確...

Ubuntu14 04設定靜態IP

networkmanager配置檔案位置 etc networkmanager system connections 有線 802 3 ethernet duplex full mac address b8 27 eb 14 e0 bf connection id eth0 這個uuid並沒有任何含...