首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >BGP数据中心鉴别方法1

BGP数据中心鉴别方法1

作者头像
franket
发布2022-04-25 00:06:14
发布2022-04-25 00:06:14
42700
代码可运行
举报
文章被收录于专栏:技术杂记技术杂记
运行总次数:0
代码可运行

查询出口IP归属

使用whois命令查询AS号的出口IP归属

Tip: whois 是通过 jwhois-4.0-19.el6.x86_64 提供的

代码语言:javascript
代码运行次数:0
运行
复制
[root@h101 ~]# which whois
/usr/bin/whois
[root@h101 ~]# rpm -qf /usr/bin/whois
jwhois-4.0-19.el6.x86_64
[root@h101 ~]# 

直接加IP进行查询

代码语言:javascript
代码运行次数:0
运行
复制
[root@h101 ~]# whois  103.21.118.104
[Querying whois.arin.net]
[Redirected to whois.apnic.net]
[Querying whois.apnic.net]
[whois.apnic.net]
% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to '103.21.116.0 - 103.21.119.255'

inetnum:        103.21.116.0 - 103.21.119.255
netname:        ANCHNET
descr:          ShangHai AnchNet Tec, Inc
descr:          2F,Building 4,N0.1 West Hulan Road,ShangHai,PRC
country:        CN
admin-c:        XC1415-AP
tech-c:         XC1415-AP
mnt-by:         MAINT-CNNIC-AP
mnt-irt:        IRT-CNNIC-CN
mnt-routes:     MAINT-CNNIC-AP
status:         ALLOCATED PORTABLE
changed:        hm-changed@apnic.net 20120926
source:         APNIC

irt:            IRT-CNNIC-CN
address:        Beijing, China
e-mail:         ipas@cnnic.cn
abuse-mailbox:  ipas@cnnic.cn
admin-c:        IP50-AP
tech-c:         IP50-AP
auth:           # Filtered
remarks:        Please note that CNNIC is not an ISP and is not
remarks:        empowered to investigate complaints of network abuse.
remarks:        Please contact the tech-c or admin-c of the network.
mnt-by:         MAINT-CNNIC-AP
changed:        ipas@cnnic.cn 20110428
source:         APNIC

person:         Xiaozhong Cheng
address:        2F,Building 4,N0.1 West Hulan Road,ShangHai,PRC
country:        CN
phone:          +86-21-60832266-6603
e-mail:         x.z.cheng@anchnet.com
nic-hdl:        XC1415-AP
mnt-by:         MAINT-CNNIC-AP
changed:        ipas@cnnic.cn 20120306
source:         APNIC

% This query was served by the APNIC Whois Service version 1.69.1-APNICv1r6 (WHOIS1)


[root@h101 ~]# 

从结果信息得知 103.21.116.0 - 103.21.119.255 段的ip 都属于ANCHNET 安畅网络公司

代码语言:javascript
代码运行次数:0
运行
复制
inetnum:        103.21.116.0 - 103.21.119.255
netname:        ANCHNET

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 查询出口IP归属
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档