歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 7.10下綁定IP及MAC地址

Ubuntu 7.10下綁定IP及MAC地址

日期:2017/2/28 17:08:18   编辑:Linux教程

收到荷蘭免費郵寄來的Ubuntu 7.10發行版光盤兩張,32位和64位各一張,讓我高興得屁顛屁顛。

花一個多小時成功安裝在舊機器上,因為學校IP分配時綁定在MAC地址,舊機器沒法獲取IP,只有借另一台分配了IP的主機的資源了。

一.修改/etc/network/interfaces,注釋自動獲取IP,並添加自動從網卡獲取地址。

#auto lo

#iface lo inet lockloop

auto eth0

二. 修改/etc/network/interfaces,添加靜態IP信息

iface eth0 inet static

address ***.***.***.***

netmask 255.255.255.0

gateway ***.***.***.254

三.修改/etc/resolv.conf,設置DNS

namaserver ***.***.***.***

nameserver ***.***.***.***

四.重啟網絡

管理員身份執行 /etc/init.d/networking restart

五.重新啟動網絡,enjoy Ubuntu。

Copyright © Linux教程網 All Rights Reserved