Linux網路相關設定檔

來源:互聯網
上載者:User

1。 /etc/sysconfig/network
 配置主機名稱和是否啟動network

2。 /etc/sysconfig/network-scripts/ifcfg-ethn
 這裡的ethn表示網卡的順序,eth0表示第一張網卡,eth1表示第二張網卡
 這裡設定network,ip,netmask,broadcast,gateway和dhcp等。

3。 /etc/modules.conf
 開機時用來設定載入核心模組的檔案

4。 /etc/reslov.conf
 設定dns網域名稱伺服器的檔案

5。 /etc/hosts
 記錄電腦的ip對應的主機名稱或主機的別名

6。     uname -r 參看核心的版本資訊

7。 ifup eth0,ifdown eth0啟動和關閉網卡,用ifconfig eth0檢查是否啟動


 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.