Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 32位元 ArchLinux 靜態網路設定錯誤導致無法上網的解決方案

編輯:Windows 7 系統介紹

在 Win7 虛擬機或雙系統中運行 ArchLinux,若靜態 IP 設定錯誤導致無法上網,可透過 ifconfig/route 或 ip 指令手動修正網路參數。

情況一:已安裝 ifconfig 與 route 指令

  1. ifconfig 介面名稱 192.168.200.187 設定靜態 IP(介面名稱前後各一空格,可先用 ifconfig 查詢)。
  2. route add default gw 192.168.200.1 設定預設閘道。
  3. 重啟網路服務生效。

情況二:未安裝 ifconfig/route,使用 ip 指令

  1. ip addr add 192.168.200.187 dev 介面名稱 設定 IP(介面名稱前一空格,可用 ip addr show 查詢)。
  2. ip route add default via 192.168.200.1 設定閘道。
  3. 重啟網路服務。

補充:DNS 解析失敗

若能 Ping 通閘道與 8.8.8.8 但無法開網頁,為 DNS 問題。編輯 /etc/resolv.conf 加入:
nameserver 8.8.8.8
即可解決。

ArchLinux 網路設定錯誤

注意:以上指令需 root 權限執行。實際 IP、閘道、介面名稱請依自身網路環境調整。

Copyright © Windows教程網 All Rights Reserved