출처 : http://blog.naver.com/woodair?Redirect=Log&logNo=100025890392
-- CIDR 위키
http://en.wikipedia.org/wiki/CIDR
-- 서브넷 계산법
-- Subnet Mask Information
http://www.ripe.net/rs/ipv4/subnets.html
우선 192.168.4.0/24 는 192.168.4.0/255.255.255.0과 같습니다.
슬래쉬 뒤의 부분은 서브넷을 나타내는 것이구요. 문의하신 형태로 표현하는 것을 CIDR 포맷이라고 합니다. 아래 첨부한 테이블을 보시면 그 의미를 아실 수 있을겁니다.
Wherever in Firestarter a single numerical IP address can be inputted as part of a policy rule, a human readable hostname or a network identifier can also be used. This last form allows you to apply rules to a range of IP addresses.
A range is entered as either address/netmask, for example 192.168.0.1/255.255.255.0, or more commonly in CIDR format as 192.168.0.1/24.
The CIDR address consists of a standard dotted format 32-bit IP address and a postfix of the number of network identifying bits. This might sound confusing, and it is, but it is the only valid way to group IP addresses on the Internet.
Luckily you don't have to break out your pocket calculator to work out an IP range, as there exists many IP calculators online.
CIDR range notation examples | |||
CIDR format | First host | Last host | Number of hosts |
192.168.0.1/24 | 192.168.0.1 | 192.168.0.254 | 254 |
192.168.0.1/25 | 196.168.0.1 | 192.168.0.126 | 126 |
192.168.0.1/26 | 192.168.0.1 | 192.168.0.62 | 62 |
192.168.0.1/27 | 192.168.0.1 | 192.168.0.30 | 30 |
192.168.0.1/28 | 192.168.0.1 | 192.168.0.14 | 15 |
192.168.0.9/29 | 192.168.0.9 | 192.168.0.14 | 6 |
192.168.0.10/30 | 192.168.0.10 | 192.168.0.11 | 2 |
10.0.0.0/8 | 10.0.0.1 | 10.255.255.254 | 16777214 |
10.0.1.17/28 | 10.0.1.17 | 10.0.1.30 | 14 |
'Development > 네트워크 프로그래밍' 카테고리의 다른 글
Graceful shutdown (0) | 2011.08.13 |
---|---|
패킷 압축 방법 (0) | 2011.08.13 |
[펌] IOCP를 이용한 서버 만들기 (0) | 2011.08.13 |
[펌] IOCP를 이용한 서버 만들기(소스) (0) | 2011.08.13 |
[펌] 펌) IOCP - 윈속 프로그래밍 (0) | 2011.08.13 |