久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      centos如何設(shè)置ip

      centos如何設(shè)置ip

      centos設(shè)置ip的方法:

      在配置網(wǎng)絡(luò)之前我們先要知道centos的網(wǎng)卡名稱是什么,centos7不再使用ifconfig命令,可通過(guò)命令 IP addr查看。

      centos如何設(shè)置ip

      1、動(dòng)態(tài)獲取ip(前提是你的路由器已經(jīng)開(kāi)啟了DHCP)

      修改網(wǎng)卡配置文件 vi /etc/sysconfig/network-scripts/ifcfg-ens32 (最后一個(gè)為網(wǎng)卡名稱)

      動(dòng)態(tài)獲取IP地址需要修改兩處地方即可

      (1)bootproto=dhcp

      (2)onboot=yes

      centos如何設(shè)置ip

      修改后重啟一下網(wǎng)絡(luò)服務(wù)即可 systemctl restart network

      [root@mini ~]# systemctl restart network

      2、配置靜態(tài)IP地址

      設(shè)置靜態(tài)IP地址與動(dòng)態(tài)iIP差不多,也是要修改網(wǎng)卡配置文件 vi /etc/sysconfig/network-scripts/ifcfg-ens32 (最后一個(gè)為網(wǎng)卡名稱)

      (1)bootproto=static

      (2)onboot=yes

      (3)在最后加上幾行,IP地址、子網(wǎng)掩碼、網(wǎng)關(guān)、dns服務(wù)器

      IPADDR=192.168.1.160 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 DNS1=119.29.29.29 DNS2=8.8.8.8

      (4)重啟網(wǎng)絡(luò)服務(wù)

      [root@mini ~]# systemctl restart network

      推薦教程:centos教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)