LinuxSEE

  • 首页
  • APACHE
  • CACTI
  • DNS_BIND
  • IPTABLES
  • LINUX杂记
  • LINUX系统性能分析
  • LOG_SERVER
  • LVS+KEEPALIVED
  • MFS
  • MYSQL
  • PHP
  • POSTFIX
  • RSYNC
  • SHELL
  • SQUID
  • VPN

APNIC获取准确的IP地址段

分类:LINUX杂记日期:2011-06-01作者:雨尚

APNIC获取准确的IP地址段

       APNIC是管理亚太地区IP地址分配的机构,它有着丰富准确的IP地址分配库,同时这些信息也是对外公开的!下面就让我们看看如何在Linux下获得一些电信运营商的IP地址分配情况:有时搞一些跨网段的工程和应用,需要尽量准确的知道电信、网通、铁通等电信运营商的IP地址段分配情况.
    1. 软件的安装
     #wget ftp://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz
     #tar -zxvf ripe-dbase-client-v3.tar.gz
     #cd  whois-3.1
     #./configure
     #make

    2.查ip分配信息,找关键字mnt
            打开这个网页    http://www.apnic.net/apnic-info/whois_search2/your-ip
                                      mnt-by:         MAINT-CHINATELECOM-BJ    (我的是北京电信)
                                      source:         APNIC      
                                         http://www.apnic.net/apnic-info/whois_search2  这个也可以搜索
     3.获取ip列表      
            中国联通:# ./whois3 -h whois.apnic.net -l -i mb MAINT-CNCGROUP > ./cnc
            中国电信:# ./whois3 -h whois.apnic.net -l -i mb MAINT-CHINANET > ./chinanet
            中国铁通:# ./whois3 -h whois.apnic.net -l -i mb MAINT-CN-CRTC > ./crtc  
            北京联通 :# ./whois3 -h whois.apnic.net -l -i mb MAINT-CNCGROUP-BJ > ./cncbj  
                          在cncbj文件找一个IP在ip138.com验证下。
      4.整理ip      
            # cat cncbj |grep inet|sed ‘s/^inetnum:      //g’|sort        

    另外一种获取ip端 http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest (需要自己处理下)

Tags: APNIC , IP地址段
  • 上一篇:bind9添加相同前缀的多个子域名
  • 下一篇:Linux下查看硬盘读速度
27条评论
  1. Zyah 说:

    Great common sense here. Wish I’d thoghut of that.

    POST:2011-06-13 03:41 回复
    • 雨尚 说:

      thank u

      POST:2011-06-16 07:54 回复
      • Lawanda 说:

        Now we know who the snsebile one is here. Great post!

        POST:2011-06-25 10:51 回复
        • Nona 说:

          That’s not just logic. That’s ralely sensible.

          POST:2011-09-06 20:43 回复
        • Aggy 说:

          A mlilion thanks for posting this information.

          POST:2011-09-07 17:58 回复
      • Dragon 说:

        You’re the gerteast! JMHO

        POST:2011-06-26 18:16 回复
        • Sagar 说:

          Information is power and now I’m a !@#$ing dcittaor.

          POST:2011-09-07 00:31 回复
          • Monkey 说:

            Appreciaiton for this information is over 9000—thank you!

            POST:2011-10-14 19:25
          • Ryne 说:

            Superior thinking dmeontsrated above. Thanks!

            POST:2011-10-16 23:37
        • Carlinda 说:

          Full of salient points. Don’t stop beilveing or writing!

          POST:2011-09-07 16:33 回复
          • Dayana 说:

            Nothing I could say would give you undue cedrit for this story.

            POST:2011-10-14 01:02
          • Elida 说:

            Yo, that’s what’s up turhtfluly.

            POST:2011-10-17 00:28
    • Keiffer 说:

      So eixcted I found this article as it made things much quicker!

      POST:2011-06-25 20:24 回复
      • Ellen 说:

        I’m not easily impressed. . . but that’s impreissng me! :)

        POST:2011-09-06 09:34 回复
        • Lolly 说:

          More posts of this quality. Not the usual c***, palsee

          POST:2011-10-14 02:00 回复
        • Delonte 说:

          Why does this have to be the ONLY reaillbe source? Oh well, gj!

          POST:2011-10-17 01:15 回复
      • Keli 说:

        What a neat airtcle. I had no inkling.

        POST:2011-09-07 15:40 回复
        • Geralyn 说:

          Too many compliments too litlte space, thanks!

          POST:2011-10-14 07:26 回复
        • Ellyanna 说:

          I much prefer informative articles like this to that high brow litearutre.

          POST:2011-10-16 23:57 回复
    • Daysia 说:

      You have shed a ray of snuhsine into the forum. Thanks!

      POST:2011-06-26 15:13 回复
      • Budd 说:

        A mnutie saved is a minute earned, and this saved hours!

        POST:2011-09-06 07:07 回复
        • Jalen 说:

          I’m imprseesd! You’ve managed the almost impossible.

          POST:2011-10-17 00:32 回复
  2. Courtney Faurrieta 说:

    After study a few of the weblog posts on your website now, and I really like your approach of blogging. I bookmarked it to my bookmark website checklist and can be checking again soon. Pls check out my web page as effectively and let me know what you think.

    POST:2011-11-21 13:57 回复
    • 雨尚 说:

      thanks

      POST:2011-11-22 14:02 回复
  3. Patricia R. Lacy 说:

    Your home is valueble for me. Thanks!…

    POST:2011-12-22 01:44 回复
    • 雨尚 说:

      thank u^

      POST:2011-12-26 16:23 回复
  4. 李寻欢 说:

    I’ve notied that the IP DB is very old!Ten years ago,man!

    POST:2012-02-21 08:51 回复
VPSYOU合作推广
发表评论 点击取消评论.

*必填

*必填

  • 关于LinuxSEE

日志存档

  • 2012 年五月
  • 2012 年四月
  • 2012 年三月
  • 2012 年一月
  • 2011 年十二月
  • 2011 年十一月
  • 2011 年十月
  • 2011 年九月
  • 2011 年八月
  • 2011 年七月
  • 2011 年六月
  • 2011 年五月
  • 2011 年四月
>

热门文章

  • 用ssh-tunnel模式加密mysql主从复制
  • MYSQL多主一从多实例配置
  • Linux下OPENVPN安装配置
  • 强制LINUX用户第一次登录改密码命令
  • 深入研究linux下命令之ls
  • 非常实用的iptables脚本
  • 新浪微博技术架构分析-转载
  • Linux下路由相关设置
  • 全国各地电信、网通、教育网及铁通的DNS服务器地址
  • 修改MySQL的内存表的三种方法

随机文章

  • Linux下sar使用举例之显示I/O和传送速率
  • Linux下查看文件夹个数命令
  • Linux下路由相关设置
  • MySQL优化笔记
  • Linux服务器性能评估与优化(ZT)
  • Linux下ntop安装笔记
  • Linux下apache+fastcgi+php+mysql搭建配置
  • Linux下sar使用举例之输出内存页面的统计信息
  • Linux下top命令详解
  • 网站排障分析常用的命令

最新评论

  • 今天有空就来看看你的站»
    Post: 2012-04-29 20:03:15
  • 这个脚本不错,来学习下»
    Post: 2012-04-11 03:37:35
  • 来看看你的博客,有空也去»
    Post: 2012-04-07 20:04:03
  • Great articl»
    Post: 2012-02-24 05:58:40
  • Noarmlly I'm»
    Post: 2012-02-24 05:56:32
  • Why does thi»
    Post: 2012-02-24 05:52:00
  • That's a qui»
    Post: 2012-02-24 05:50:44
  • Well macamdi»
    Post: 2012-02-24 05:50:36
  • Yours is a c»
    Post: 2012-02-24 05:31:50
  • These tpocis»
    Post: 2012-02-24 05:09:11

友情链接

  • 80sec
  • 9inow手机资源门户
  • DBA Notes
  • DeBugFs
  • linuxany.com
  • LinuxTone
  • linux论坛
  • 千千春光
  • 叶茂盛
  • 寒.枫
  • 张宴
  • 最实用的Linux博客
  • 服务器运维
  • 木易水瓶
  • 淘宝数据库技术团队
  • 淘宝核心系统团队博客
  • 简朝阳
  • 运维人生
Copyright © 2011-2012 LinuxSEE All rights reserved.