tcp/ip addressing & subnetting unit objectives discuss tcp/ip addressing and determine the ip...

71
TCP/IP Addressing & Subnetting Unit objectives • Discuss TCP/IP addressing and determine the IP address class and default subnet mask • Discuss subnetting and special addressing • Discuss the installation and configuration of TCP/IP

Upload: roxanne-horton

Post on 28-Dec-2015

269 views

Category:

Documents


8 download

TRANSCRIPT

Page 1: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

TCP/IP Addressing & SubnettingUnit objectives• Discuss TCP/IP addressing and determine the

IP address class and default subnet mask• Discuss subnetting and special addressing• Discuss the installation and configuration of

TCP/IP

Page 2: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Topic A

• Topic A: IP addressing• Topic B: Subnetting and special addressing• TCP/IP installation and configuration

Page 3: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Addressing

• Each networked system must be identified as unique

• This is accomplished through the machine’s MAC address

• Each machine must also have a unique IP address

Page 4: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addresses

• Made up of a 32-bit address or four octet address

• The three major IP address classes– Class A– Class B– Class C– There are also Class D and Class E addresses, used for

multicasts (D) and for research (E), but these addresses are not used by any group or. individuals

Page 5: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Address conversion

• An IP address is a 32-bit address, written as four octets or bytes, separated by periods.– For example: 195.143.67.2

• This way of representing an IP address is also known as “dotted decimal” notation

Page 6: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

A sample of binary numbers

Page 7: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion

• To convert a binary number to a decimal number– Determine the decimal value for each of the bits– Add up the bit values

Page 8: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion

11000000 11011010 10011101 00000011

Page 9: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion1 1 0 0 0 0 0 0

128 64 32 16 8 4 2 1

128 64 0 0 0 0 0 0

The middle row here is sometimes called a “binary tree – it runs from right to left, increasing by doubling in each subsequent spot – 1, 2, 4, 8, and so on.

The top row is the binary number, the middle row shows the value of each “1” in the top row. If there is a 1 in the top row, the corresponding value for that spot in the binary tree is brought down to the bottom row. The bottom row is just added to give you the decimal equivalent of the binary number. In this example, 1100 0000 = 128 + 64 = 192.

Page 10: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion

1 1 0 1 1 0 1 0

128 64 32 16 8 4 2 1

128 64 0 16 8 0 2 0

Try this one ….

Page 11: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion

1 0 0 1 1 1 0 1

128 64 32 16 8 4 2 1

128 0 0 16 8 4 0 1

Page 12: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Binary-to-decimal conversion

0 0 0 0 0 0 1 1

128 64 32 16 8 4 2 1

0 0 0 0 0 0 2 1

Page 13: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Decimal-to-binary conversion• To convert decimal into binary

– Set up a table as shown – The fourth column provides bit values

Page 14: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

Page 15: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

Page 16: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

Page 17: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

Page 18: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

Page 19: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity A-1 page 10-5

Discussing IP addresses and conversions

Page 20: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

The IP address classes

• Five address classes are supported by TCP/IP: A, B, C, D, and E

• Classes A, B, and C are assigned to the general user community

• Class D addresses are reserved for multicasting

• Class E addresses are reserved for experimental purposes

Page 21: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IP Addressing - (Cisco PPt)

• MAC to IP address translation• IP classes

– Internet Assigned Numbers Authority (IANA)– American Registry of Internet Numbers (ARIN)– Internet Corporation for Assigned Names and Numbers (ICANN)– Class A– Class B– Class C– Class D– Class E– Private IP ranges

Page 22: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

The Class A network • The first octet defines the network portion of the

address• The last three octets are used for subnet masking

and host addresses • A default subnet mask of 255.0.0.0 is assigned for a

Class A network– Subnet masks? The book does get to this later; for now,

it is another 32-bit number in 4 8-bit octet form, just like the IP address. The mask determines which part of the IP address represents the network, and which part the hosts on that network.

Page 23: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

The Class B network • The first two octets are used for the network

address• The last two octets are used for subnetting and

host addresses• A default subnet mask of 255.255.0.0 is assigned

for a Class B network• A Class B address is often used when setting up a

moderate- to large-sized network

Page 24: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

The Class C network

• The first three octets are used for the network address

• The last octet is used for subnetting and host addresses

• A default mask of 255.255.255.0 is assigned to a Class C network

Page 25: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

IPv6

• Addresses are 128 bits• They’re made up of eight 16-bit fields,

allowing for a total of 296 addresses • The fields are represented by 16-bit

hexadecimal numbers • Each field can be from 0 to FFFF (65535 in

decimal) (or 65,536 addresses)

Page 26: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity A-2 Page 10-8

Discussing IP addressing

Page 27: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Managing addresses

• Some potential problems in implementing TCP/IP– Population size– Portability– End users

• The (one of the) standard(s) that has emerged to assist in managing TCP/IP addresses is DHCP

Page 28: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

DHCP: Dynamic Host Configuration Protocol

• An open standard that is defined within RFC 2131, Dynamic Host Configuration Protocol

• Microsoft was the first manufacturer to implement DHCP

• Provides an automated means of managing host IP addresses

Page 29: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Other addressing methods• BootP - an earlier attempt to centralize configuration

IP addresses. The address pool is static rather than in a dynamic pool, as with DHCP. Other differences in the following slides.

• Static assignment – You can assign a specific address to a node; useful if you have a device that other devices must find – like a server or a printer, for example.

• Self assignment (APIPA) – You get an APIPA address when your computer can’t find a DHCP server. You can still communicate with other PCs on your network, but you can never get to another network, like the internet.– The APIPA client keeps searching for a DHCP server until it

finds one.

Page 30: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

DHCPDynamic Host Configuration Protocol

Five slides from another Power Point …

Page 31: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Introducing DHCP

Rick Graziani [email protected] 31

DHCP clients listen on UDP port 67. DHCP servers listen on UDP port 68

Page 32: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

BOOTP and DHCP differences

There are two primary differences between DHCP and BOOTP:

• DHCP defines mechanisms through which clients can be assigned an IP address for a finite lease period. – This lease period allows for reassignment of the IP address to another client

later, or for the client to get another assignment, if the client moves to another subnet.

– Clients may also renew leases and keep the same IP address. • DHCP provides the mechanism for a client to gather other IP configuration

parameters, such as WINS and domain name.

Rick Graziani [email protected] 32

Page 33: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Major DHCP features

Rick Graziani [email protected] 33

Page 34: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

DHCP Operation

Rick Graziani [email protected] 34

Remember : ‘Dora’ - Acronym

• Note on how DHCP requests are propagated:• Routers, by default, will not forward broadcast packets. • DHCP client messages use the destination IP address of 255.255.255.255 (all Nets

Broadcast).• So DHCP clients will not be able to send requests to a DHCP server on a different subnet

unless the DHCP/BootP Relay Agent is configured on the router.

Page 35: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity A-3 Page 10-11

Discussing IP addressing methods

Page 36: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Topic B

• Topic A: IP addressing• Topic B: Subnetting and special addressing• TCP/IP installation and configuration

Page 37: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnetting • Subnets

–improve network performance and –available bandwidth and –reduce overall traffic levels

Page 38: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

A sample subnet

Page 39: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnet masks

• Are used to identify the network and host portions of the address

• The network portion identifies where the host is located, and the host portion identifies the device connected to that network

Page 40: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Creating a custom subnet mask• A custom subnet mask tells TCP/IP to consider

some of the bits, which by default would identify a host, as part of the network address

• When a network is divided into subnets, all members of that subnet will have the same network prefix

• Routers divide the networks and provide communication between them

Page 41: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnet Addressing - (Cisco PPt)

• Default class subnet masks– Class A subnet mask is 255.0.0.0

11111111.00000000.00000000.00000000– Class B subnet mask is 255.255.0.0

11111111.11111111.00000000.00000000– Class C subnet mask is 255.255.255.0

11111111.11111111.11111111.00000000

• Boolean ANDing operation• Subnet addresses• Broadcast addresses

Page 42: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Broadcast Types - (Cisco PPt)

• Flooded broadcasts– 255.255.255.255

• Directed broadcast– 129.30.255.255

Page 43: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subdividing IP Classes - (Cisco PPt)

Page 44: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnet Masking - (Cisco PPt)

Page 45: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnet Masking - (Cisco PPt)

Page 46: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnet Masking - (Cisco PPt)

Page 47: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Learning To Subnet: (Cisco PPt)

Page 48: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Learning To Subnet - (Cisco PPt)

• Breakdown of 255.255.255.244 subnet mask– 0 (binary 00000000) — unusable– 32 (binary 00100000) – 64 (binary 01000000)– 96 (binary 01100000)– 128 (binary 10000000)– 160 (binary 10100000)– 192 (binary 11000000)– 224 (binary 11100000) — unusable

Page 49: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Learning To Subnet - (Cisco PPt)

Page 50: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Learning To Subnet - (Cisco PPt)

Page 51: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnetting Formulas - (Cisco PPt)

• 2y – 2 = # of usable subnets (where y is the number of bits borrowed)

• 2x – 2 = # of usable hosts per subnet (where x is the number of bits remaining in the host field after borrowing)

Page 52: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnetting Formulas - (Cisco PPt)

Page 53: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Subnetting Formulas - (Cisco PPt)

Page 54: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

CIDR - (Cisco PPt)

• Classless Inter-Domain Routing (CIDR)• Developed to slow the exhaustion of IP

Addresses• Provide efficient use of IP addresses and

address ranges• Subnetting and supernetting

Page 55: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity B-1 page 10-14

Discussing subnet masks

Page 56: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Special addressing• There are several special addressing structures• These conventions are documented and used on

the Internet and are part of the Internet Protocol

Page 57: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Private networks

• A private network is one that will not be connecting directly to the Internet

• The term intranet is commonly used to refer to internetworked environments of this type

Page 58: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

NAT

• Refers to an IP gateway’s translating “private” network addresses into valid “public” Internet addresses

• When a machine attempts to access the Internet, the IP gateway, using NAT, translates between the internal private address and the valid external / public address for both incoming and outgoing traffic

Page 59: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity B-2 page 10-16

Discussing special addressing and private networks

Page 60: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Topic C

• Topic A: IP addressing• Topic B: Subnetting and special addressing• TCP/IP installation and configuration

Page 61: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

TCP/IP configuration• You can configure the TCP/IP protocol and

related components on a Windows Server 2003/XP computer

Page 62: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Guidelines for using TCP/IP• When you have significant routing requirements• When you need UNIX connectivity• If you want to employ TCP/IP utilities in network

management• In environments where TCP/IP is already in use• In Internet/intranet environments

Page 63: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Local Area Connection properties

Page 64: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

TCP/IP Properties, General tab

Page 65: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

TCP/IP Settings, Alternate Configuration tab

Page 66: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Advanced TCP/IP Settings, IP Settings tab

Page 67: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Advanced TCP/IP Settings, DNS tab

Page 68: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Advanced TCP/IP Settings, WINS tab

Page 69: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Advanced TCP/IP Settings, Options tab

Page 70: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Activity C-1 page 10-25

Configuring TCP/IP

Page 71: TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting

Unit summary

• Discussed TCP/IP Addressing• Discussed subnetting and special addressing• Discussed the configuration of TCP/IP