自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Ubuntu網(wǎng)卡IP設(shè)置

系統(tǒng) Linux
本文主要是教大家如何在Ubuntu系統(tǒng)下設(shè)置網(wǎng)卡的IP地址,相信對于許多使用Ubuntu系統(tǒng)的新手來說應(yīng)該會有很大的幫助!

Ubuntu里網(wǎng)卡IP設(shè)置的步驟:

1.單網(wǎng)卡配單IP(普遍)

 

  1. vi /etc/network/interface  
  2. auto eth0  
  3. iface eth0 inet static  
  4. address IP  
  5. netmask 子網(wǎng)掩碼  
  6. gateway 網(wǎng)關(guān)  

2.單網(wǎng)卡雙IP (情況較少,多用于區(qū)分服務(wù)或者安全隱藏)

 

  1. vi /etc/network/interface  
  2. auto eth0:0  
  3. iface eth0:0 inet static  
  4. address IP  
  5. netmask 子網(wǎng)掩碼  
  6. gateway 網(wǎng)關(guān)  
  7. auto eth0:1  
  8. iface eth0:1 inet static  
  9. address IP  
  10. netmask 子網(wǎng)掩碼  
  11. gateway 網(wǎng)關(guān) 

3.雙網(wǎng)卡雙IP(應(yīng)用情況較多,一般為一個(gè)內(nèi)網(wǎng)一個(gè)為外網(wǎng))

 

  1. auto eth0  
  2. iface eth0 inet static  
  3. address IP  
  4. netmask 子網(wǎng)掩碼  
  5. gateway 網(wǎng)關(guān)  
  6. auto eth1  
  7. iface eth1 inet static  
  8. address IP  
  9. netmask 子網(wǎng)掩碼  
  10. gateway 網(wǎng)關(guān) 

綜上,配置后保存推出,一般需要重啟下網(wǎng)卡才能設(shè)置生效,方法很多,比如ifdown eth0 ,ifup eth0,最直接的方法直接在終端鍵入/etc/init.d/networking restart www.kissgz.com

至于DNS,都是一樣的,如下

 

  1. vi /etc/resolv.conf(實(shí)際系統(tǒng)默認(rèn)的并不存在resolv.conf該文件,屬于自己創(chuàng)建)  
  2. nameserver 主DNS  
  3. nameserver 后備DNS 
【編輯推薦】
責(zé)任編輯:馮宇 來源: ChinaUnix文檔頻道
相關(guān)推薦

2010-01-07 14:22:17

Ubuntu IP地址

2016-01-07 14:02:55

Ubuntu 15.1網(wǎng)卡 IP地址

2010-02-22 08:56:30

Ubuntu DNS

2011-09-09 10:37:27

UbuntuinterfaceStun server

2013-11-27 11:16:09

Ubuntu技巧

2010-02-22 13:31:32

Ubuntu安裝

2011-08-30 15:19:23

2022-10-27 10:02:58

UbuntuLinux

2010-03-05 15:14:55

Ubuntu網(wǎng)絡(luò)配置

2010-07-26 13:44:33

Ubuntu teln

2010-02-22 15:59:48

2010-01-04 15:49:11

Ubuntu Serv

2010-01-04 13:29:37

2010-02-07 14:41:28

Ubuntu 8.10

2010-01-06 18:40:10

Ubuntu無線網(wǎng)卡

2011-09-08 11:07:25

Ubuntu藍(lán)牙

2011-09-09 10:59:03

2010-02-05 12:59:19

Ubuntu IP

2011-02-22 09:04:57

DebianBonding雙網(wǎng)卡單IP

2010-09-09 17:37:48

Ubuntu tftp
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號