码迷,mamicode.com
首页 > Web开发 > 详细

netmask IP地址格式转换工具

时间:2019-06-28 11:45:00      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:nbsp   get   工具   netmask   configure   tar   ubuntu   mirror   span   

工具安装

wget http://mirrors.sohu.com/ubuntu/pool/universe/n/netmask/netmask_2.3.12.tar.gz
tar xf netmask_2.3.12.tar.gz
cd netmask-2.3.12
./configure
make && make install

命令使用

# netmask -s 192.168.1.1:192.168.1.255   192.168.1.0    1.1.1.0    1.1.1.1    1.1.1.2:1.1.1.3  1.1.1.4:1.1.1.7
        1.1.1.0/255.255.255.248
    192.168.1.0/255.255.255.0

# netmask -s 192.168.1.1:192.168.1.255
    192.168.1.1/255.255.255.255
    192.168.1.2/255.255.255.254
    192.168.1.4/255.255.255.252
    192.168.1.8/255.255.255.248
   192.168.1.16/255.255.255.240
   192.168.1.32/255.255.255.224
   192.168.1.64/255.255.255.192
  192.168.1.128/255.255.255.128

 

netmask IP地址格式转换工具

标签:nbsp   get   工具   netmask   configure   tar   ubuntu   mirror   span   

原文地址:https://www.cnblogs.com/pzzning/p/11101767.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!