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的响应时间却并不慢的原因.