当前位置:网站首页>网络连接验证
网络连接验证
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
边栏推荐
- 记录一下刷LeetCode瞬间有思路的一道简单题——剑指 Offer 09. 用两个栈实现队列
- xtrabackup的备份还原
- [转载]RSLOGIX 5000实例教程
- Studio5k V28 installation and cracking_ Old bear passing by_ Sina blog
- mysql5.7版本在配置文件my.ini[mysqld]加上skip-grant-tables后无法启动
- Read CSV file data in tensorflow
- Using Google protobuf protocol environment configuration in PHP
- The InputStream stream has been closed, but the file or folder cannot be deleted, indicating that it is occupied by the JVM
- Sword finger offer 48 Longest substring without duplicate characters
- 利用VBScript连接mysql数据库_过路老熊_新浪博客
猜你喜欢

猕猴桃酵素的功效_过路老熊_新浪博客

ValueError: color kwarg must have one color per data set. 9 data sets and 1 colors were provided解决
![寻找翻转数组的最小值[抽象二分]](/img/b9/1e0c6196e6dc51ae2c48f6c5e83289.png)
寻找翻转数组的最小值[抽象二分]

在win10下使用visual studio2015链接mysql数据库

文献调研(一):基于集成学习和能耗模式分类的办公楼小时能耗预测

SSM整合学习笔记(主要是思路)

The role of iomanip header file in actual combat

Some common operation methods of array

懒人教你用猕猴桃一月饱减16斤_过路老熊_新浪博客

【微信公众号H5】 生成带参数进入公众号关注页的二维码 监听用户关注公众号事件 自定义菜单栏 (服务端)
随机推荐
Common methods of object class
Unsigned and signed vernacular
Efficacy of kiwi fruit enzyme_ Old bear passing by_ Sina blog
用ES5的方式实现const
PHP interprocess pass file descriptor
Talk about how to hot restart a spoole or PHP cli process
Static keyword explanation
MySQL InnoDB锁知识点
MySQL InnoDB lock knowledge points
Several common rich text editors
手工制作 pl-2303hx 的USB转TTL电平串口的电路_过路老熊_新浪博客
Unable to start debugging. Unexpected GDB output from command “-environment -cd xxx“ No such file or
Use Baidu map API to set an overlay (infowindow) in the map to customize the window content
Search rotation array ii[Abstract dichotomy exercise]
使用npm创建并发布包时遇到的常见问题
我的博客今天2岁167天了,我领取了先锋博主徽章_过路老熊_新浪博客
Building cloud computers with FRP
Shredding Company poj 1416
文献调研(二):基于短期能源预测的建筑节能性能定量评估
Talk about singleton mode!