ip address validation rules

Download IP Address Validation Rules

If you can't read please download the document

Upload: vipin-raj

Post on 05-Dec-2015

219 views

Category:

Documents


3 download

DESCRIPTION

A set of well documented rules governing the format and relationships between various IP address entities like Subnet, Supernet etc

TRANSCRIPT

Rules UI Level

1.AS numbera) Allowed range:- 0.0 - 65535.65535 / 0 - 4294967295b) Reserved and Private numbers which cant be used:-0 / 0.0, 65535 / 0.65535, 4294967295 / 65535.65535,64512 - 65534 / 0.64512 - 0.65534,4200000000 - 4294967295 / 64086.59904 - 65535.65535 (private numbers)

2.Supernet/Subneta) Public:i.IPv4 -Can be any address from 0.0.0.0 to 255.255.255.255 excluding: table 110.0.0.0 10.255.255.255 or 10.0.0.0/8

172.16.0.0 172.31.255.255 or 172.16.0.0/12

192.168.0.0 192.168.255.255 or 192.168.0.0/16

0.0.0.0/8

10.0.0.0/8

100.64.0.0/10

127.0.0.0/8

169.254.0.0/16

172.16.0.0/12

192.0.0.0/24

192.0.2.0/24

192.88.99.0/24

192.168.0.0/16

198.18.0.0/15

198.51.100.0/24

203.0.113.0/24

224.0.0.0/4

240.0.0.0/4

255.255.255.255

-Allowed range for CIDR mask: 1 30 -IP address should not have any non zero bits set to right of mask.Example: 172.20.20.0/20 is Invalid

10101100 00010100 00010100 00000000

20th bit Non zero bit right of netmask(/20) While 172.20.20.0/22 is Valid-Gateway and broadcast address must lie in the range of the subnet and should have a cidr 32 and both should be different.ii.IPv6-Can be any address from 0000:0000:0000:0000:0000:0000:0000:0000 to ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff excluding table 20000::/8Reserved by IETF

0100::/8Reserved by IETF

0200::/7Reserved by IETF

0400::/6Reserved by IETF

0800::/5Reserved by IETF

1000::/4Reserved by IETF

2000::/3Global Unicast

4000::/3Reserved by IETF

6000::/3Reserved by IETF

8000::/3Reserved by IETF

a000::/3Reserved by IETF

c000::/3Reserved by IETF

e000::/4Reserved by IETF

f000::/5Reserved by IETF

f800::/6Reserved by IETF

fc00::/7Unique Local Unicast

fe00::/9Reserved by IETF

fe80::/10Link-Scoped Unicast

fec0::/10Reserved by IETF

ff00::/8Multicast

-Allowed range for CIDR mask: 1 127 -IP address should not have any non zero bits set to right of mask. -IPv4-mapped IPv6 address This will have the format like below:::ffff:(standard Ipv4 address in dot-decimal notation)or0000:0000:0000:0000:0000:ffff:(standard IPv4 address in dot-decimal notation)Example:- ::ffff:192.0.2.128 or 0000:0000:0000:0000:0000:ffff:192.0.2.128-Removing leading zeroes from any groups of hexadecimal digits and replacing consicutive sections of zeroes with (::) is also allowed.Example:-Initial address: 2001:0db8:0000:0000:0000:ff00:0042:8329After removing all leading zeroes: 2001:db8:0:0:0:ff00:42:8329After omitting consecutive sections of zeroes: 2001:db8::ff00:42:8329

b) Privatei.IPv4 -Must be within the following range:table 310.0.0.0 10.255.255.255

172.16.0.0 172.315.255.255

192.168.0.0 192.168.255.25

-Allowed range for CIDR mask: 1 30 -IP address should not have any non zero bits set to right of mask.-Gateway and broadcast address must lie in the range of the subnet and should have a cidr - 32ii.IPv6 -Must be within the following range:table 4fc00::/7

fe80::/10

-Allowed range for CIDR mask: 1 127 (for supernet only, see - 3 a) i for subnet) -IP address should not have any non zero bits set to right of mask. -Removing leading zeroes from any groups of hexadecimal digits and replacing consicutive sections of zeroes with (::) is also allowed.Example:-Initial address: 2001:0db8:0000:0000:0000:ff00:0042:8329After removing all leading zeroes: 2001:db8:0:0:0:ff00:42:8329After omitting consecutive sections of zeroes: 2001:db8::ff00:42:8329

3.Subneta) Private/Publici.IPv6 -Minimum CIDR mask = 1 maximum = 126 (by convention Minimum CIDR mask = 64 )4.Hosta) Publici.IPv4 - Can be any address from 0.0.0.0 to 255.255.255.255 excluding addresses listed in table1 - CIDR mask must be 32 (or without a CIDR mask - also considered as 32)ii.IPv6Can be any address from 0000:0000:0000:0000:0000:0000:0000:0000 to ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff excluding address listed in table 2

IPv4-mapped IPv6 address allowed

CIDR mask must be 128 (or without a CIDR mask - also considered as 128)b) Private

i.IPv4Must be within the following range of address listed in table 3

CIDR mask must be 32 (or without a CIDR mask - also considered as 32)ii.IPv6

- Must be within the following range of address listed in table 4 - CIDR mask must be 128 (or without a CIDR mask - also considered as 128)- Removing leading zeroes from any groups of hexadecimal digits and replacing consicutive sections of zeroes with (::) is also allowed.Example:-Initial address: 2001:0db8:0000:0000:0000:ff00:0042:8329After removing all leading zeroes: 2001:db8:0:0:0:ff00:42:8329 After omitting consecutive sections of zeroes: 2001:db8::ff00:42:8329

DB Level1. ASa) autonomous system number (asn)Must be unique in both form. For example 4200000000 and 64086.59904 are same and should not co-exist in DB.2. Areaa) common_nameMust be unique3. IPv4 Public Superneta) netblock addressMust be unique.Should not overlap. Example: if 122.20.0.0/16 is already available one should not be able to create 122.0.0.0/8 and vice versa4. IPv6 Public Superneta) netblock addressMust be unique.Should not overlap.

5. IPv4 Public Subneta) netblock addressMust be unique.Must be equal to the parent supernet/subnet address or contained within the range of parent supernet or subnetMust not overlap with any subnet or host of the parent supernet or subnet.The no of addresses available in the IP range must be minimum 4.

b) broadcast addressMust be within the range of addresses of the Subnet netblock address (generally the last address in the range).

c) gateway addressMust be within the range of addresses of the Subnet netblock address.

6. IPv6 Public Subneta) netblock addressMust be unique.Must be equal to the parent supernet/subnet address or contained within the range of parent supernet or subnetMust not overlap with any subnet or host of the parent supernet or subnet.The no of addresses available in the IP range must be minimum 4.b) gateway addressMust be within the range of addresses of the Subnet netblock address.

7. IPv4 Public Hosta) netblock addressMust be within the range of addresses of the parent Subnet netblock address.Must be unique.Must not be the same as the gateway/broadcast address of the parent subnet.

8. IPv6 Public Hosta) netblock addressMust be within the range of addresses of the parent Subnet netblock address.Must be unique.Must not be the same as the gateway address of parent subnet.9. IPv4 Private Superneta) netblock address10. IPv6 Private Superneta) netblock address11. IPv4 Private Subneta) netblock addressMust be unique within the parent supernet.Must be equal to the parent supernet/subnet address or contained within the range of parent supernet or subnetMust not overlap with any subnet or host of the parent supernet or subnet.The no of addresses available in the IP range must be minimum 4.

b) broadcast addressMust be within the range of addresses of the Subnet netblock address (generally the last address in the range).

c) gateway addressMust be within the range of addresses of the Subnet netblock address.

12. IPv6 Private Subneta) netblock addressMust be within the parent supernet.Must be equal to the parent supernet/subnet address or contained within the range of parent supernet or subnetMust not overlap with any subnet or host of the parent supernet or subnet.The no of addresses available in the IP range must be minimum 4.

b) gateway addressMust be within the range of addresses of the Subnet netblock address.

13. IPv4 Private Hosta) netblock addressMust be within the range of addresses of the parent Subnet netblock address.Must be unique within parent subnet.Must not be the same as the gateway/broadcast address of the parent subnet.

14. IPv6 Private Hosta) netblock addressMust be within the range of addresses of the parent Subnet netblock address.Must be unique within parent subnet.Must not be the same as the parent subnet gateway address.