懂得网络的人对于Ping这个最基本的网络命令一定很熟悉,它是一个非常好用的TCP/IP工具.它可以向你提供的地址发送一个小的数据包,然后侦听这台机器是否有“回答”.你可以使用机器的 Internet 地址,如:ping 192.78.222.81,或者也可使用机器名,如:ping MyComputer. 在使用Ping时,Ping工具程序发送一个ICMP(Internet Control Management Protocol,简称Internet控制管理协议)应答请求给对方,以验证另一台计算机
1- Linux添加永久路由vi /etc/sysconfig/network-scripts/route-eth1ADDRESS0=192.168.10.0NETMASK0=255.255.255.0GATEWAY=10.10.10.2542- 添加ip及其路由ip link:网络接口属性 addr:协议地址 route:路由link show ip -s link show //详细信息包 ip link show
Centos iptables防火墙添加IP白名单,指定IP可访问端口 vi /etc/sysconfig/iptables 以下为我虚拟机的防火墙为例(Centos 7) # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to add additional ports/services to t
添加 ip -f inet addr add 192.168.1.245/32 brd 192.168.1.245 dev ens32 删除 ip -f inet addr del 192.168.1.245/32 brd 192.168.1.245 dev ens32 查看 ip -f inet addr haproxy需要和虚ip在同一台机器上