目的:當客戶講「上唔到網/慢/某些網站唔得」,你可以即刻用命令把問題縮到一兩個方向。
Windows(終端用這幾個就夠)
1) 先看自己拿到咩網絡參數
ipconfig /all 重點看:
- IPv4(唔係 169.254.x.x)
- Default Gateway(有冇)
- DNS Servers(係邊個)
2) 測出街(繞過 DNS)
ping 1.1.1.1 tracert 1.1.1.1 如果 ping IP 都唔得:多數係 gateway/NAT/上游/斷線。
3) 測 DNS
nslookup google.com nslookup google.com 8.8.8.8 ipconfig /flushdns 判斷:
- 內網 DNS 唔得,但 8.8.8.8 得:DNS server 或轉發/上游 DNS 問題
4) DHCP 重新攞 IP
ipconfig /release ipconfig /renew Cisco(路由/防火牆/NAT 的快速定位)
DHCP server(如由路由器派)
show ip dhcp binding show ip dhcp conflict show run | section dhcp NAT(內網出街)
show ip nat translations show ip nat statistics show run | include ip nat show access-lists 路由/介面(最基本)
show ip interface brief show ip route show arp 你做單最好記住的判斷樹(超實用)
1) ping gateway:唔通 -> VLAN/L2/線/網卡/ARP 2) ping 1.1.1.1:唔通 -> gateway/NAT/上游 ISP 3) nslookup:唔通 -> DNS(最常見「以為上唔到網」其實係 DNS)
留言
暫時未有公開留言。
登入後可以留言。