CCNA Sessão 2_mac_b

93
CCNA Cisco Certified Network Associate

description

CCNA

Transcript of CCNA Sessão 2_mac_b

Page 1: CCNA Sessão 2_mac_b

CCNACisco Certified Network Associate

Page 2: CCNA Sessão 2_mac_b

- CIDR- Subnetting- VLSM- Route summarization- Troubleshooting ip address

Page 3: CCNA Sessão 2_mac_b

Private Addresses

Page 4: CCNA Sessão 2_mac_b

Public Addresses

Page 5: CCNA Sessão 2_mac_b
Page 6: CCNA Sessão 2_mac_b

Classless Inter-Domain Routing (CIDR)Method that ISPs (Internet Service Providers) use to allocate

an amount of addresses to a company.CIDR is telling you what your subnet mask is.

The slash notation (/) means how many bits are turned on (1s)

Page 7: CCNA Sessão 2_mac_b

CIDR

Page 8: CCNA Sessão 2_mac_b

SUBNETTING

Page 9: CCNA Sessão 2_mac_b

SubnettingThe ability to divide the original host portion of the address into the new subnet and host fields provides addressing flexibility for the network administrator.

From the outside, a LAN is seen as a single network with no details of the internal network structure.

Page 10: CCNA Sessão 2_mac_b

Advantages of SubnettingReduced network trafficOptimized network performanceSimplified managementFacilitated spanning of large geographical distances

Provide broadcast containment Low-level security on the LAN

Page 11: CCNA Sessão 2_mac_b

Decimal Equivalents of 8-Bit Patterns

Page 12: CCNA Sessão 2_mac_b

Subnetworks

Page 13: CCNA Sessão 2_mac_b

Subdividing the Host Octets of a Class A Address

Page 14: CCNA Sessão 2_mac_b

Subdividing the Host Octets of a Class B Address

Page 15: CCNA Sessão 2_mac_b

Subdividing the Host Octets of a Class C Address

Page 16: CCNA Sessão 2_mac_b
Page 17: CCNA Sessão 2_mac_b

How to Create Subnets1. Determine the number of required network IDs:

- One for each subnet- One for each wide area network connection

2. Determine the number of required host IDs per subnet:- One for each TCP/IP host- One for each router interface

3. Based on the above requirements, create the following:- One subnet mask for your entire network- A unique subnet ID for each physical segment- A range of host IDs for each subnet

Page 18: CCNA Sessão 2_mac_b

Example of subneting

Necessary subnets - 6

- 3 for Wan connections

- 3 for LANs

Page 19: CCNA Sessão 2_mac_b

Number of required host IDs per subnet

n is the number of borrowed digits

x is the number of digits for the hosts

2 nTotal number of subnets =

Total number of hosts =

2 - 2x

Page 20: CCNA Sessão 2_mac_b

Subnets3 bits emprestados: 23 = 8 subnets4 bits emprestados: 24 = 16 subnets5 bits emprestados: 25 = 32 subnets6 bits emprestados: 26 = 64 subnets

Hosts utilizáveis3 bits emprestados sobram 5: 25 -2 = 30 Hosts4 bits emprestados sobram 4: 24 -2= 14 Hosts5 bits emprestados sobram 3: 23 -2 = 6 Hosts6 bits emprestados sobram 2: 22 -2 = 2 Hosts

Page 21: CCNA Sessão 2_mac_b

Determine the Subnet MaskDetermines which part of an IP address is the

network field and which part is the host field.Follow these steps to determine the subnet mask:

1. Express the subnetwork IP address in binary form.

2. Replace the network and subnet portion of the address with all 1s.

3. Replace the host portion of the address with all 0s.

4. Convert the binary expression back to dotted-decimal notation.

Page 22: CCNA Sessão 2_mac_b

Subnet mask in decimal = 255.255.240.0

Subnet Mask

Page 23: CCNA Sessão 2_mac_b

Class B address with 8 bits borrowed for the subnet

130.5.2.144 (8 bits borrowed for subnetting) routes to subnet 130.5.2.0 rather than just to network 130.5.0.0.

Determining Subnet Mask Size

Page 24: CCNA Sessão 2_mac_b

The address 197.15.22.131 would be on the subnet 197.15.22.128.

11000101

00001111

00010110

100 00011

Network Field SNHost Field

Class C address 197.15.22.131 with a subnet mask of 255.255.255.224 (3 bits borrowed)

Determining Subnet Mask Size

Page 25: CCNA Sessão 2_mac_b

Subnetting Example with AND Operation

Page 26: CCNA Sessão 2_mac_b

Depois de achar a subnet mask é necessário definir o seguinte:

1- Quantas subnets é possivel obter com essa subnet mask?

2- Quais são os hosts válidos?

3- Quais as subnets válidas?

4- Qual o broadcast address de cada subnet?

5- Quais os hosts válidos em cada subnet?

Realizar subnetting

Page 27: CCNA Sessão 2_mac_b

Case Study

A empresa Rumos Angola mudou-se de instalações para um novo edifício com 3 andares. Foram reorganizados todos os serviços. Assim no primeiro andar ficaram situadas as salas de aulas. No segundo foi destinado às salas dos formadores e no ultimo piso os serviços administrativos. Ao administrador de rede foi dado um endereço privado de classe C (192.168.10.0) para que criasse o endereçamento IP de forma a permitir conectividade entre todos os utilizadores desta nova rede, conforme desenho em anexo. Não se prevê o aumento do número de utilizadores.

Page 28: CCNA Sessão 2_mac_b
Page 29: CCNA Sessão 2_mac_b

Nº máximo de utilizadores por rede – 28

Nº de bits necessários para os hosts- 5

Nº de sub-redes necessárias- 6

Nº de bits necessários para obter as subnets- 3

Case Study- Resolução

2 - 2=30

5

2 =83

Page 30: CCNA Sessão 2_mac_b

192.168.10.0

255.255.255.0

11111111.1111111.1111111.11100000

Endereço privado de Classe C

Calculo da subnet mask

128+64+32= 224

255.255.255.224

Page 31: CCNA Sessão 2_mac_b

7

6

5

4

3

2

1

0

Broadcast Host RangeSubnet IDSubnet

192.168.10.32

192.168.10.224

192.168.10.192

192.168.10.160

192.168.10.128

192.168.10.96

192.168.10.64

192.168.10.0 192.168.10.31

192.168.10.255

192.168.10.223

192.168.10.191

192.168.10.159

192.168.10.127

192.168.10.95

192.168.10.63

.1-.30

.225-.254

.193-.222

.161-.190

.129-.158

.97-.126

.65-.94

.33-.62

Determinação das redes e dos hosts

Page 32: CCNA Sessão 2_mac_b

Representação em Decimal

Representação em binário

ID Rede 0 192.168.10.0 11000000 10101000 00001010 000000001º Host 192.168.10.1 11000000 10101000 00001010 00000001Ultimo Host 192.168.10.30 11000000 10101000 00001010 00011110

Broadcast 192.168.10.31 11000000 10101000 00001010 00011111           

ID Rede 1 192.168.10.32 11000000 10101000 00001010 001000001º Host 192.168.10.33 11000000 10101000 00001010 00100001Ultimo Host 192.168.10.62 11000000 10101000 00001010 00111110

Broadcast 192.168.10.63 11000000 10101000 00001010 00111111           

ID Rede 2 192.168.10.64 11000000 10101000 00001010 010000001º Host 192.168.10.65 11000000 10101000 00001010 01000001Ultimo Host 192.168.10.94 11000000 10101000 00001010 01011110

Broadcast 192.168.10.95 11000000 10101000 00001010 01011111.  .   .  .  .  .. . . . . ..  . . . . .

ID Rede 7 192.168.10.224 11000000 10101000 00001010 111000001º Host 192.168.10.225 11000000 10101000 00001010 11100001Ultimo Host 192.168.10.254 11000000 10101000 00001010 11111110

Broadcast 192.168.10.255 11000000 10101000 00001010 11111111

Page 33: CCNA Sessão 2_mac_b

Endereçamento final

Page 34: CCNA Sessão 2_mac_b

IP Subnetting

Page 35: CCNA Sessão 2_mac_b

IP Subnetting

Page 36: CCNA Sessão 2_mac_b

IP Subnetting

Page 37: CCNA Sessão 2_mac_b

IP Subnetting

Page 38: CCNA Sessão 2_mac_b

IP Subnetting

Page 39: CCNA Sessão 2_mac_b

IP Subnetting

Page 40: CCNA Sessão 2_mac_b

IP Subnetting

Subnet

Broadcast

Page 41: CCNA Sessão 2_mac_b

IP Subnetting

Page 42: CCNA Sessão 2_mac_b

IP Subnetting

Page 43: CCNA Sessão 2_mac_b

IP Subnetting

00000000.0000000

00000001.11111111

00000010.0000000

00000011.11111111

Page 44: CCNA Sessão 2_mac_b

IP Subnetting

Page 45: CCNA Sessão 2_mac_b

00000000.0000000

00000000.01111111

Page 46: CCNA Sessão 2_mac_b

IP Subnetting

Page 47: CCNA Sessão 2_mac_b
Page 48: CCNA Sessão 2_mac_b

IP Subnetting

Page 49: CCNA Sessão 2_mac_b

IP Subnetting

Page 50: CCNA Sessão 2_mac_b

IP Subnetting

Page 51: CCNA Sessão 2_mac_b
Page 52: CCNA Sessão 2_mac_b

Variable Length Subneeting Mask- VLSM

Page 53: CCNA Sessão 2_mac_b

VLSM overviewAs IP subnets have grown, administrators have

looked for ways to use their address space more efficiently

With VLSM, a network administrator can use a long mask on networks with few hosts, and a short mask on subnets with many hosts

VLSM allows an organization to use more than one subnet mask within the same network address space

VLSM implementation maximizes address efficiency, and is often referred to as subnetting a subnet

Page 54: CCNA Sessão 2_mac_b

VLSM

Page 55: CCNA Sessão 2_mac_b

A Waste of Space

Page 56: CCNA Sessão 2_mac_b

When to Use VLSM?

Page 57: CCNA Sessão 2_mac_b
Page 58: CCNA Sessão 2_mac_b

A Working VLSM Example

172.16.33.0/30

Page 59: CCNA Sessão 2_mac_b

Configuring VLSM

Page 60: CCNA Sessão 2_mac_b

VLSM

16

Page 61: CCNA Sessão 2_mac_b

VLSM

Page 62: CCNA Sessão 2_mac_b

VLSM

Page 63: CCNA Sessão 2_mac_b

VLSM

Page 64: CCNA Sessão 2_mac_b
Page 65: CCNA Sessão 2_mac_b

VLSMUse a Class C network address 192.168.10.0 for the following network

Page 66: CCNA Sessão 2_mac_b

VLSM

14

30

20

6

Page 67: CCNA Sessão 2_mac_b
Page 68: CCNA Sessão 2_mac_b

VLSM

Page 69: CCNA Sessão 2_mac_b

VLSMVLSM

Page 70: CCNA Sessão 2_mac_b
Page 71: CCNA Sessão 2_mac_b

Exercicio- Realizar endereçamento IP a partir da rede 172.24.1.0

Page 72: CCNA Sessão 2_mac_b

Route summarization reduces the burden on upstream routers

Complex hierarchy of variable-sized networks and subnetworks is summarized at various points with a prefix address, until the entire network is advertised as a single aggregate route

Route summarization, or supernetting, is only possible if the routers of a network use a classless routing protocol, such as OSPF or EIGRP

Route Summarization

Page 73: CCNA Sessão 2_mac_b

Route Summarization

Page 74: CCNA Sessão 2_mac_b

Route Summarization

Page 75: CCNA Sessão 2_mac_b

ExercícioAddress First

octetSecond octet

Third octet

Fourth octet

172.16.0.0

172.16.2.0

172.16.3.128

172.16.4.0

172.16.4.128

Page 76: CCNA Sessão 2_mac_b
Page 77: CCNA Sessão 2_mac_b

Troubleshooting IP Addressing

Page 78: CCNA Sessão 2_mac_b

Troubleshooting IP addressing issues

ping uses the ICMP protocol to verify the hardware connection and the IP address of the network layer. This is a basic test mechanism.

telnet verifies the application layer software between a source and a destination. This is the most complete test mechanism available.

traceroute locates failures in a path from a source to a destination. This command uses Time to Live values to generate messages from each router along a path.

Page 79: CCNA Sessão 2_mac_b

Testing Local StackPing is a utility for testing IP connectivity

between hostsPing sends out requests for responses

from a specified host addressIf the host at the specified address

receives the Echo request, it responds with an ICMP Echo Reply datagram.

After all the requests are sent, the ping utility provides an output with the summary of the responses.

Page 80: CCNA Sessão 2_mac_b

Troubleshooting IP addressing is obviously an important skill.

Four troubleshooting steps Cisco recommends:1- Open a DOS window and ping the

diagnostic, or loopback, address (127.0.0.1)2- From the DOS window, ping the IP address

of the local host.3- From the DOS window, ping the default

gateway (router).4- If steps 1 through 3 were successful, try to

ping the remote server.

Troubleshooting IP Addressing

Page 81: CCNA Sessão 2_mac_b

Ping command

Page 82: CCNA Sessão 2_mac_b

Pinging the Local Loopback

For testing the internal configuration of IP on the local host ping the special reserve address of local loopback (127.X.X.X).

A response from 127.X.X.X indicates that IP is properly installed on the host.

Page 83: CCNA Sessão 2_mac_b

Ping the GatewayTest the host ability to communicate on the local

network. Ping the IP address of the gateway of the host.

Page 84: CCNA Sessão 2_mac_b

Ping remote hostYou can also use ping to test the ability of the local IP

host to communicate across an internetwork. Ping an operational host of a remote network,

Page 85: CCNA Sessão 2_mac_b

Traceroute (tracert)Traceroute (tracert) is a utility that allows us to observe

the path between the hosts.The trace generates a list of hops that were successfully

reached along the path.

Page 86: CCNA Sessão 2_mac_b

Traceroute (tracert)The first sequence of messages sent from traceroute

will have a TTL field of one. This causes the TTL to time out the packet at the first router. This router then responds with an ICMP Message. Traceroute now has the address of the first hop.

Traceroute then progressively increments the TTL field (2, 3, 4...) for each sequence of messages. This provides the trace with the address of each hop as the packets timeout further down the path. The TTL field continues to be increased until the destination is reached or it is incremented to a predefined maximum.

Once the final destination is reached, the host responds with either an ICMP Port Unreachable message or an ICMP Echo Reply message instead of the ICMP Time Exceeded message.

Page 87: CCNA Sessão 2_mac_b

Telnet is a virtual terminal protocol that is part of the TCP/IP protocol suite

Allows connections to be made to remote hosts Telnet is an IOS EXEC command used to verify

the application layer software between source and destination

This is the most complete test mechanism available

Telnet

Page 88: CCNA Sessão 2_mac_b

Telnet

Page 89: CCNA Sessão 2_mac_b

Establishing Telnet ConnectionsA host name table or access to DNS for Telnet

must be present for a name to work. Otherwise, the IP address of the host must be entered.

Denver>connect parisDenver>parisDenver>131.108.100.152Denver>telnet paris

Telnet can be used to perform a test to determine whether access can be obtained from a remote router.

Page 90: CCNA Sessão 2_mac_b

Establishing and verifying a Telnet connection

If remote access can be obtained through another router, then at least one TCP/IP application can reach the remote router

A successful Telnet connection indicates that the upper-layer application functions properly.

If Telnet to one router is successful, failure to another router is likely caused by addressing, naming, or access permission problems

The next step is to use the ping command. The ping command can be used to test end-to-end connections at the network layer.

Page 91: CCNA Sessão 2_mac_b

Advanced Telnet

Multiple Telnet sessions can be used and suspended by using the Ctrl+Shift+6 and x sequence.

Page 92: CCNA Sessão 2_mac_b
Page 93: CCNA Sessão 2_mac_b

Dúvidas ?