歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Ubuntu 7.10 Linux系統綁定IP及MAC地址

Ubuntu 7.10 Linux系統綁定IP及MAC地址

日期:2017/3/2 16:52:45   编辑:Linux服務器

一。修改/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