Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | About

第 14 章 Networking

目錄

14.1. ping
14.2. ss - another utility to investigate sockets
14.3. hosts
14.3.1. /etc/hostname
14.3.2. hostnamectl - Control the system hostname
14.3.3. /etc/host.conf
14.3.4. /etc/hosts
14.3.5. hosts.allow / hosts.deny
14.3.6. /etc/resolv.conf
14.4. Hostname
14.5. Network adapter
14.5.1. 介面名稱
14.6. Ethernet Interfaces
14.6.1. ifquery
14.6.2. DHCP
14.6.3. Static IP
14.7. Mask
14.8. Gateway
14.9. Configuring Name Server Lookups
14.10. IP forwarding(IP轉發)
14.11. bonding
14.11.1. Ubuntu
14.12. Finding optimal MTU
14.13. wireless
14.13.1. rfkill - tool for enabling and disabling wireless devices
14.13.2. iwlist - Get more detailed wireless information from a wireless interface
14.13.3. iwconfig - configure a wireless network interface
14.13.4. /proc/net/wireless
14.14. Linux IP And Router
14.14.1. netmask
14.14.1.1. iptab
14.14.1.2. netmask - a netmask generation and conversion program
14.14.2. arp - manipulate the system ARP cache
14.14.2.1. display hosts
14.14.2.2. delete a specified entry
14.14.2.3. /proc/net/arp
14.14.2.4. /etc/ethers
14.14.3. iproute2
14.14.3.1. 添加路由
14.14.3.2. 刪除路由
14.14.3.3. 變更路由
14.14.3.4. 替換已有的路由
14.14.3.5. 增加預設路由
14.14.3.6. cache
14.14.4. 策略路由
14.14.5. 負載均衡
14.14.6. MASQUERADE
14.14.7. ip tunnel
14.14.8. VLAN
14.14.9. Zebra
14.15. CentOS 網絡配置
14.15.1. Gateway
14.15.2. bonding
14.15.3. brctl
14.15.4. nmtui

14.1. ping

-f: 發送洪水請求,每個請求打印一個點,每個響應刪除一個點.如果網絡存在丟包,那麼會呈現出一長串不斷增加的點.

-n: 選項,加上之後可以阻止ping程序去進行反向dns查詢
    當每次ping完得到響應之後,ping程序會嘗試一次反向dns查詢(reverse dns lookup)來獲取“64 bytes from”後面的域名,如果查詢速度很慢的話,就會給人似乎延遲很大的感覺,其實這也是ping感覺慢,但是每次ping的響應時間卻並不慢的原因.