当前位置:网站首页>网络连接验证
网络连接验证
2022-06-25 22:12:00 【才放一花天地香】
网络连接验证方式
这篇文章主要总结平时开发中访问合作方的地址不通时集中排查问题的方式。以下均是在linux环境下的命令操作。
IP地址分类
- A类:1.0.0.0-127.255.255.255
- B类:128.0.0.0-191.255.255.255
- C类:192.0.0.0-223.255.255.255
- D 类地址用于在IP网络中的 组播( multicasting ,又称为 多目广播)。D类地址的前4位恒为1110 ,预置前3位为1意味着D类地址开始于128+64+32等于224。第4位为0意味着D类地址的最大值为128+64+32+8+4+2+1为239,因此D类 地址空间的范围从224.0.0.0到239. 255. 255.254。
- E类地址保留作研究之用。因此Internet上没有可用的E类地址。E类地址的前4位恒为1,因此有效的地址范围从240.0.0.0 至255.255.255.255。
D类和E类被保留,不能使用。
内网ip,公网ip和出口ip的区别
本机IP(内网ip)是你局域网(内网)中的IP,只能在局域网中使用,在外网和网吧要访问你本机的IP,一般是打不开的,这就要通过你的出口IP去访问,并且在路由器上要做端口映射到你的机子才能访问,出口IP是通常所说的公网IP.
查看出口ip的方式
- curl cip.cc
返回 ip 及运营商信息 - curl ifconfig.me或curl ident.me
返回单个ip - curl ipinfo.io
测试网络是否通畅
telnet测试网络是否通畅只有下面两种方式,但是无论哪种方式都必须加端口,否者就会失败,使用域名时,对应的端口一般为80或者443。
- telnet ip 端口
- telnet 域名 端口
例如:telnet www.baidu.com 443
边栏推荐
- SSM integrated learning notes (mainly ideas)
- 关于运行scrapy项目时提示 ModuleNotFoundError: No module named 'pymongo‘的解决方案
- dhcp复习
- 支付宝支付接口沙箱环境测试以及整合到一个ssm电商项目中
- How to configure SQL Server 2008 Manager_ Old bear passing by_ Sina blog
- Literature research (II): quantitative evaluation of building energy efficiency performance based on short-term energy prediction
- Two ways to center block level elements
- Talk about the copy on write mechanism of PHP variables or parameters
- The InputStream stream has been closed, but the file or folder cannot be deleted, indicating that it is occupied by the JVM
- sqlServer2008中float类型数据与datetime类型数据互转
猜你喜欢

支付宝支付接口沙箱环境测试以及整合到一个ssm电商项目中

Building cloud computers with FRP

Line height for small use
![Find the minimum value of flipped array [Abstract bisection]](/img/b9/1e0c6196e6dc51ae2c48f6c5e83289.png)
Find the minimum value of flipped array [Abstract bisection]

Unable to start debugging. Unexpected GDB output from command “-environment -cd xxx“ No such file or

postman如何测试需要登录的接口

WINCC与STEP7的仿真连接_过路老熊_新浪博客

文献调研(二):基于短期能源预测的建筑节能性能定量评估

One article explains R & D efficiency! Your concerns are

ASA如何配置端口映射及PAT
随机推荐
Problems encountered in Doris operation and maintenance
step7和wincc联合仿真_过路老熊_新浪博客
6. common instructions (upper) v-cloak, v-once, v-pre
推荐系统设计
Find the minimum value of flipped array [Abstract bisection]
php进程间传递文件描述符
On the quantity control mechanism of swoole collaboration creation in production environment
Transformation of communication protocol between Siemens S7-200PLC and Danfoss inverter_ Old bear passing by_ Sina blog
line-height小用
两种块级元素居中的方式
谈一谈生产环境中swoole协程创建数量控制机制
常用的几款富文本编辑器
在win10下使用visual studio2015链接mysql数据库
Talk about the copy on write mechanism of PHP variables or parameters
postman如何测试需要登录的接口
Jenkins 发布PHP项目代码
Compiling protobuf protocol files using makefile in PHP
MySQL InnoDB锁知识点
文献调研(一):基于集成学习和能耗模式分类的办公楼小时能耗预测
final和static