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

Windows 7 下 Arch Linux 靜態網路設定錯誤?ifconfig/ip 指令修正 IP 與閘道

編輯:Win7 系統應用技巧

情境

在 Windows 7 環境下(可能為雙系統或虛擬機)配置 Arch Linux 靜態網路失敗,無法上網。

方案一:已安裝 ifconfig 與 route

ifconfig <裝置名> 192.168.200.187
route add default gw 192.168.200.1
# 重啟網路服務

方案二:使用 ip 指令(現代工具)

ip addr add 192.168.200.187 dev <裝置名>
ip route add default via 192.168.200.1
# 重啟網路服務

方案三:DNS 問題

能 ping 通閘道與 8.8.8.8 但無法開網頁,編輯 /etc/resolv.conf 加入 nameserver 8.8.8.8。

提示

裝置名可用 ifconfig 或 ip addr show 查詢,前後須加空格。

Copyright © Windows教程網 All Rights Reserved