2012-06-15

Ubuntu Server修改IP

  1. sudo vi /etc/network/interfaces

修改檔案內容:
  1. auto eth0
  2. iface eth0 inet static
  3. address xxx.xxx.xxx.xxx #IP
  4. netmask xxx.xxx.xxx.xxx #子網路遮罩
  5. gateway xxx.xxx.xxx.xxx #Gateway
  6. dns-nameservers 168.95.1.1 168.95.192.1
  7. dns-search do.main

存檔後重新啟動網路:
  1. sudo /etc/init.d/networking restart

沒有留言:

張貼留言