- 论坛徽章:
- 0
|
哈哈明白是什么意思了
刚看到了一句话
route -n add -net 10.1.0.132/30 10.1.0.2
When the router receives a packet for any IP address in the range of 10.1.0.132 to 10.1.0.135, it forwards the complete packet to the Honeyd host and no ARP redirection is necessary
其中Honeyd host的地址为10.1.0.2。
根据后面的10.1.0.132 to 10.1.0.135 及route命令中的 10.1.0.132/30 我猜到了“/30”的意思是30位!
也就是说在32位的ip地址位为00001010.00000001.00000000.100001XX
即前30位固定,00001010.00000001.00000000.100001表示该局域网
后两位不定,是局域网内的地址,00~11即0~3,
那么该局域网内的地址范围就是00001010.00000001.00000000.10000100~~00001010.00000001.00000000.10000111,也就是10.1.0.132~~10.1.0.135
哈哈,明白啦!
那么对于我的问题 10.1.0/24 就是:前24位固定10.1.0.X,最后8位可变,表示局域网内的IP。 |
|