差異處
這裏顯示兩個版本的差異處。
tech:arp [2008/06/30 12:27] – 建立 jonathan | tech:arp [2012/04/12 17:56] (目前版本) – jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Linux 網路不通先檢查 ARP ====== | ||
+ | 通常是將實體網路更換 switch PORT 或是更換 IP 後,發現網路不通的狀況.. | ||
+ | |||
+ | * 可以先用 arping <gateway ip> 讓 switch 更新 arp table | ||
+ | < | ||
+ | [root@pd920 ~]# arping 192.168.11.254 | ||
+ | ARPING 192.168.11.254 from 220.130.131.239 eth0 | ||
+ | Unicast reply from 192.168.11.254 [00: | ||
+ | Unicast reply from 192.168.11.254 [00: | ||
+ | Unicast reply from 192.168.11.254 [00: | ||
+ | Unicast reply from 192.168.11.254 [00: | ||
+ | Unicast reply from 192.168.11.254 [00: | ||
+ | Sent 5 probes (1 broadcast(s)) | ||
+ | Received 5 response(s) | ||
+ | </ | ||
+ | |||
+ | * 用 arp -a 看看本身的 arp table 是否正確 | ||
+ | < | ||
+ | [root@pd920 ~]# arp -a | ||
+ | 220-130-131-254.HINET-IP.hinet.net (220.130.131.254) at 00: | ||
+ | ? (192.168.11.254) at 00: | ||
+ | www.ichiayi.com (220.130.131.240) at 00: | ||
+ | vm-mail.ichiayi.com (192.168.11.236) at 00: | ||
+ | </ | ||
+ | < | ||
+ | 如果發現本身的 arp table 錯亂 .. \\ | ||
+ | Exp. 出現兩筆相同 ip 不同 mac \\ | ||
+ | 就使用 **server network restart** 清除 arp table 重新自動建立 | ||
+ | </ | ||
+ | |||
+ | {{tag> |