Splitting A Class C Network Into 4 Subnets

12
NAD710 - Introduction to Networks Using Linux Splitting a class C network into 4 subnets February 2,2001 Professor Tom Mavroidi

description

Splitting A Class C Network Into 4 Subnets

Transcript of Splitting A Class C Network Into 4 Subnets

Page 1: Splitting A Class C Network Into 4 Subnets

NAD710 - Introduction to Networks Using Linux

Splitting a class C network into 4 subnets

February 2,2001Professor Tom Mavroidis

Page 2: Splitting A Class C Network Into 4 Subnets

Things to Remember

• RFC950 - old rules, over 5 years old

• Still used in some netware servers, if unsure about environment adhere to RFC950.

• RFC1812 - new rules, simplifies networking, introduces CIDR (Classless Inter-Domain routing).

• Suse 6.4 supports IPv4.

Page 3: Splitting A Class C Network Into 4 Subnets

Review-RFC950

• An IP Address is broken up into three parts: the network portion, the subnet portion (optional), and the host portion. The size of the network portion is determined by the first byte of the address:

Page 4: Splitting A Class C Network Into 4 Subnets

Rules - RFC950

• All hosts on the same subnet must agree on the subnet mask. Otherwise, packets actually intended for another subnet may never leave the existing subnet: a host won't give to the router a packet it thinks is destined for the local segment.

Page 5: Splitting A Class C Network Into 4 Subnets

Rules - RFC950

• No two different subnets can include the same host address.

• The top and bottom host numbers are reserved; the bottom one is shorthand for the whole subnet, and the top one is the broadcast address.

• The bits in the subnet portion cannot be all ones

Page 6: Splitting A Class C Network Into 4 Subnets

Valid Subnet

• Network is unique on either side of the Router. 192.168.1 + 192.168.2

Page 7: Splitting A Class C Network Into 4 Subnets

Invalid Network

• Same Network resides on both sides of Router. 192.168.1

Page 8: Splitting A Class C Network Into 4 Subnets

192.168.1.1 or 11000000.10101000.00000001.00000001

• Lets break this network down into 4 subnets

• That means we need to borrow 2 bits from the host octet (byte).

• Our default subnet mask is 255.255.255.0 or 11111111.11111111.11111111.00000000

• Borrowing 2 bytes gives us 128 + 64 = 192 or 11111111.11111111.11111111.11000000 or referred to as /26 or in dotted decimal notation

Page 9: Splitting A Class C Network Into 4 Subnets

List of networks for 192.168.1.1

• The four networks we will get are

Page 10: Splitting A Class C Network Into 4 Subnets

Network Address Calculation

• Binary and to get the network address 192.168.1.0

Page 11: Splitting A Class C Network Into 4 Subnets

Host Address

• Invert the subnet and do a binary and again to get the host address 0.0.0.1

Page 12: Splitting A Class C Network Into 4 Subnets

Broadcast address

• XOR to get the Broadcast address 192.168.1.63