Subnet masks, Example: using subnets on a class c ip internet – Netopia R5300 User Manual

Page 241

Advertising
background image

Understanding IP Addressing B-3

S

S

S

Su

u

u

ub

b

b

bn

n

n

nee

e

etttt m

m

m

maa

a

asssskk

k

kssss

To create subnets, the network manager must define a subnet mask, a 32-bit number that indicates which bits
in an IP address are used for network and subnetwork addresses and which are used for host addresses. One
subnet mask should apply to all IP networks that are physically connected together and share a single assigned
network number. Subnet masks are often written in decimal notation like IP addresses, but they are most easily
understood in binar y notation. When a subnet mask is written in binar y notation, each numeral 1 indicates that
the corresponding bit in the IP address is par t of the network or subnet address. Each 0 indicates that the
corresponding bit is par t of the host address. The following table shows the proper subnet masks to use for
each class of network when no subnets are required.

To know whether subnets are being used or not, you must know what subnet mask is being used—you cannot
determine this information simply from an IP address. Subnet mask information is configured as par t of the
process of setting up IP routers and gateways such as the Netopia R5000 Series Router.

Note: If you receive a routed account from an ISP, there must be a mask associated with your network IP
address. By using the IP address with the mask you can discover exactly how many IP host addresses you
actually have.

To configure subnets properly, you must also be able to conver t between binar y notation and decimal notation.

E

E

E

Exxxxaa

a

am

m

m

mp

p

p

pllllee

e

e:::: U

U

U

Ussssiiiin

n

n

ng

g

g

g ssssu

u

u

ub

b

b

bn

n

n

nee

e

ettttssss o

o

o

on

n

n

n aa

a

a C

C

C

Cllllaa

a

assssssss C

C

C

C IIIIP

P

P

P iiiin

n

n

nttttee

e

errrrn

n

n

nee

e

etttt

When setting up IP routing with a Class A address, or even with multiple Class C addresses, subnetting is fairly
straightfor ward. Subnetting a single Class C address between two networks, however, is more complex. This
section describes the general procedures for subnetting a single Class C network between two Netopia routers
so that each can have Internet access.

Class

Subnet mask for a network with no subnets

A

Binar y: 11111111.00000000.00000000.00000000

Decimal: 255.0.0.0

B

Binar y: 11111111.11111111.00000000.00000000

Decimal: 255.255.0.0

C

Binar y: 11111111.11111111.11111111.00000000

Decimal: 255.255.255.0

Advertising
This manual is related to the following products: