分类: LINUX
2011-05-18 15:39:30
执行效果:
./ip_mask_scope 10.24.55.0 255.255.240.0
ip_start:a183000,ip_end:a183fff
ip start:10.24.48.0,ip end:10.24.63.255
ipcalc 10.24.55.0/255.255.240.0
Address: 10.24.55.0 00001010.00011000.0011 0111.00000000
Netmask: 255.255.240.0 = 20 11111111.11111111.1111 0000.00000000
Wildcard: 0.0.15.255 00000000.00000000.0000 1111.11111111
=>
Network: 10.24.48.0/20 00001010.00011000.0011 0000.00000000
HostMin: 10.24.48.1 00001010.00011000.0011 0000.00000001
HostMax: 10.24.63.254 00001010.00011000.0011 1111.11111110
Broadcast: 10.24.63.255 00001010.00011000.0011 1111.11111111
Hosts/Net: 4094 Class A, Private Internet