欧美日韩不卡一区二区三区,www.蜜臀.com,高清国产一区二区三区四区五区,欧美日韩三级视频,欧美性综合,精品国产91久久久久久,99a精品视频在线观看

操作系統(tǒng)

Ubuntu Linux系統(tǒng)下設(shè)置Static IP的方法

時(shí)間:2025-02-09 02:05:38 操作系統(tǒng) 我要投稿
  • 相關(guān)推薦

Ubuntu Linux系統(tǒng)下設(shè)置Static IP的方法

  Ubuntu的網(wǎng)絡(luò)參數(shù)保存在文件 /etc/network/interfaces中,默認(rèn)設(shè)置使用dhcp,內(nèi)容如下:

  # The primary network interface

  auto eth0

  iface eth0 inet dhcp

  設(shè)置靜態(tài)ip的方法如下:

  (1)編輯 /etc/network/interfaces

  1.1)將dhcp 一行屏蔽

  # The primary network interface

  auto eth0

  #iface eth0 inet dhcp

  1.2)添加和靜態(tài)ip有關(guān)的參數(shù)

  # The primary network interface

  iface eth0 inet static

  address 192.168.0.10

  netmask 255.255.255.0

  gateway 192.168.0.1

  (2)編輯 /etc/resolv.conf,設(shè)置dns

  nameserver 202.96.134.133

  nameserver 202.106.0.20

  (3)執(zhí)行下面兩個(gè)命令,啟用新設(shè)置

  $sudo ifdown eth0

  $sudo ifup eth0

【Ubuntu Linux系統(tǒng)下設(shè)置Static IP的方法】相關(guān)文章:

Linux系統(tǒng)的文件設(shè)置方法05-24

在linux系統(tǒng)下使用命令更改IP地址的方法10-29

entOS 6.7 Linux系統(tǒng)的IP配置方法10-14

Ubuntu Linux系統(tǒng)的分區(qū)方案示例06-12

在Linux系統(tǒng)下安裝QQ的方法07-22

Linux操作系統(tǒng)下串口設(shè)置及編程08-30

Linux系統(tǒng)時(shí)間設(shè)置07-04

Ubuntu系統(tǒng)無(wú)線(xiàn)網(wǎng)絡(luò)連接設(shè)置方法10-04

linux系統(tǒng)下dd命令的使用方法08-20