1 / 9

網路伺服器應用 Linux Server

網路伺服器應用 Linux Server. Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology andres@dlit.edu.tw http://www.cse.dlit.edu.tw/~andres. Chapter 4 連上 Internet. 4.1 Linux 網路相關設定檔案 4.2 安裝網路卡. 4.1 Linux 網路相關設定檔案. /etc/sysconfig/network 設定主機名稱

frayne
Download Presentation

網路伺服器應用 Linux Server

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 網路伺服器應用Linux Server Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology andres@dlit.edu.tw http://www.cse.dlit.edu.tw/~andres

  2. Chapter 4 連上 Internet 4.1 Linux 網路相關設定檔案 4.2 安裝網路卡

  3. 4.1 Linux 網路相關設定檔案 • /etc/sysconfig/network • 設定主機名稱 • /etc/sysconfig/network-scripts/ifcfg-ethn • 網路卡參數檔案 • network, IP • Netmask • Broadcast • Gateway • IP 取得方式( DHCP, static ) • 是否在開機的時候啟動 • ifcfg-eth0 , ifcfg-eth1, ……

  4. Linux 網路相關設定檔案 • /etc/resolv.conf • 設定 DNS • /etc/hosts • 記錄主機名稱(或別名)與IP對照表 • 可將常連上 Internet 的實體 IP 配合該 IP 的主機名稱寫入這個檔案當中 • 所有的內部保留的 IP • 加快內部網路速度

  5. 4.2 安裝網路卡 • 4.2.1 手動安網路卡驅動程式 • 4.2.2 使用private IP測試網路卡工作 • 1. 設定 /etc/sysconfig/network

  6. 2. 設定網路卡 • /etc/sysconfig/network-scripts/ifcfg-eth0

  7. 3. 啟動與關閉網路卡 • ifup 跟 ifdown

  8. 4. 檢查是否啟動-ifconfig

  9. ping -c 3 192.168.1.2

More Related