Download Class A and B IP addresses

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Cracking of wireless networks wikipedia , lookup

Cisco Systems wikipedia , lookup

Zero-configuration networking wikipedia , lookup

Transcript
CCNP 1 v3.0 Module 2
Advanced IP Addressing
Management
Cisco Networking Academy
© 2003, Cisco Systems, Inc. All rights reserved.
1
Objectives
• IPv4 Addressing
• IP Addressing Crisis and Solutions
• VLSM
• Route Summarization
• Private Addressing and NAT
• IP Unnumbered
• DHCP and Easy IP
• Helper Addresses
• IPv6
© 2003, Cisco Systems, Inc. All rights reserved.
2
Address Architecture of the Internet
Dotted Decimal Notation
© 2003, Cisco Systems, Inc. All rights reserved.
3
Class A and B IP addresses
© 2003, Cisco Systems, Inc. All rights reserved.
4
IPv4 Address Classes
1st octet
2nd octet
3rd octet
4th octet
Class A
Network
Host
Host
Host
Class B
Network Network
Host
Host
Class C
Network Network Network
© 2003, Cisco Systems, Inc. All rights reserved.
Host
5
IP Addresses Available to Internet Hosts
© 2003, Cisco Systems, Inc. All rights reserved.
6
One Problem - No Medium Size
• 16 million
• 65,536
• 256
For most organizations, 256 is too small a
limit on hosts, yet 65,536 is far too many.
© 2003, Cisco Systems, Inc. All rights reserved.
7
The Subnet Mask
• The solution to the IP address shortage
was thought to be the subnet mask.
• Formalized in 1985 (RFC 950), the subnet
mask breaks a single class A, B or C
network in to smaller pieces.
Subnetting
© 2003, Cisco Systems, Inc. All rights reserved.
8
Subnet Masking
© 2003, Cisco Systems, Inc. All rights reserved.
9
IP Addressing Crisis
© 2003, Cisco Systems, Inc. All rights reserved.
10
Classless Interdomain Routing (CIDR)
© 2003, Cisco Systems, Inc. All rights reserved.
11
Variable-Length Subnet Masks (VLSM)
• VLSM allows an organization to use more than
one subnet mask within the same network
address space.
• Implementing VLSM is often referred to as
subnetting a subnet and it can be used to
maximize addressing efficiency.
• Over the past 20 years, network engineers have
developed three critical strategies for efficiently
addressing point-to-point WAN links:
Use VLSM
Use private addressing (RFC 1918)
Use IP unnumbered
© 2003, Cisco Systems, Inc. All rights reserved.
12
Enabling the use of subnet 0
• The Cisco IOS allows you to use subnet 0.
On pre-IOS 12.x releases, this feature is
not enabled by default:
router(config)#ip subnet-zero
© 2003, Cisco Systems, Inc. All rights reserved.
13
Using the all-ones subnet
• Although this Cisco IOS will allow you to
configure addresses in the all-ones
subnet.
• Some literature still states that, as a
general rule, you should not use the allones subnet.
However, it is perfectly legal to use these
addresses according to the RFCs.
© 2003, Cisco Systems, Inc. All rights reserved.
14
Classless and Classful Routing Protocols
© 2003, Cisco Systems, Inc. All rights reserved.
15
Supernetting and Address Allocation
© 2003, Cisco Systems, Inc. All rights reserved.
16
Route Aggregation and Supernetting
1st octet
© 2003, Cisco Systems, Inc. All rights reserved.
2nd octet
17
Route Summarization
© 2003, Cisco Systems, Inc. All rights reserved.
18
Private IP Addresses (RFC 1918)
© 2003, Cisco Systems, Inc. All rights reserved.
19
Discontiguous Subnets
© 2003, Cisco Systems, Inc. All rights reserved.
20
Network Address Translation (NAT)
© 2003, Cisco Systems, Inc. All rights reserved.
21
Using IP Unnumbered
168.71.8.0/24
168.71.5.0/24
This is fine as long as both of the routers have a route for
the address used for in the unnumbered configuration.
•Default routes will work too
These ‘unnumbered’ addresses do not need to be on the same subnet
© 2003, Cisco Systems, Inc. All rights reserved.
22
DHCP Overview: Step 1
© 2003, Cisco Systems, Inc. All rights reserved.
23
DHCP Overview: Step 2
© 2003, Cisco Systems, Inc. All rights reserved.
24
DHCP Operation
© 2003, Cisco Systems, Inc. All rights reserved.
25
Key DHCP Server Commands
© 2003, Cisco Systems, Inc. All rights reserved.
26
Key Commands for Monitoring DHCP
Operation
© 2003, Cisco Systems, Inc. All rights reserved.
27
Easy IP
• Easy IP is a combination suite of Cisco IOS features that
allows a router to negotiate its own IP address and to do
NAT through that negotiated address.
© 2003, Cisco Systems, Inc. All rights reserved.
28
Easy IP
• Easy IP is a combination suite of Cisco IOS
features that allows a router to negotiate its own
IP address and to do NAT through that
negotiated address.
• Easy IP is typically deployed on a small office,
home office (SOHO) router.
• It is useful in cases where a small LAN connects
to the Internet by way of a provider that
dynamically assigns only one IP address for the
entire remote site.
– DHCP or PPPoE
http://www.cisco.com/warp/public/cc/pd/iosw/ioft/ionetn/tech/ezip1_wp.htm
© 2003, Cisco Systems, Inc. All rights reserved.
29
Purpose of Helper Addresses
© 2003, Cisco Systems, Inc. All rights reserved.
30
Default Forwarded UDP Services
Router(config-if)#exi
To add a forwarded protocol
Router(config)#ip forward-protocol ?
nd
Sun's Network Disk protocol
sdns
Network Security Protocol
spanning-tree Use transparent bridging to flood UDP broadcasts
turbo-flood
Fast flooding of UDP broadcasts
udp
Packets to a specific UDP port
Router(config)#ip forward-protocol udp 571
Router(config)#no ip forward-protocol udp 69
© 2003, Cisco Systems, Inc. All rights reserved.
31
IP Helper Address Example
Router(config)#int fa0/1
Router(config-if)#ip helper-address 172.24.1.9
© 2003, Cisco Systems, Inc. All rights reserved.
32
IP Address Issues Solutions
Growth of Routing Tables
© 2003, Cisco Systems, Inc. All rights reserved.
33
Long-term solution: IPv6
• IP v6, or IPng (IP – the Next Generation)
uses a 128-bit address space, yielding
340,282,366,920,938,463,463,374,607,431,768,211,456
possible addresses.
© 2003, Cisco Systems, Inc. All rights reserved.
34
IPv6
•
IPv6 has been slow to arrive
– IPv4 revitalized by new features, making
IPv6 a luxury, and not a desperately needed
fix
•
(RFC 1918 address, VLSM)
– IPv6 requires new software; IT staffs must
be retrained
© 2003, Cisco Systems, Inc. All rights reserved.
35
IPv6
• IPv6 will most likely coexist with IPv4 for
years to come.
Some experts believe IPv4 will remain for more
than 10 more years.
© 2003, Cisco Systems, Inc. All rights reserved.
36
IPv6 address format
• IPv6 can be written as 32 hex digits, with colons
separating the values of the eight 16-bit pieces of
the address:
FEDC:BA98:7654:3210:FEDC:BA98:7654:3210
http://www.faqs.org/rfcs/rfc1884.html
http://www.faqs.org/rfcs/rfc2373.html
© 2003, Cisco Systems, Inc. All rights reserved.
37
IPv6 address format
Because IPv6 addresses, especially in the early
implementation phase, may contain consecutive
16-bit values of zero, one such string of 0s per
address can be omitted and replaced by a double
colon, so this:
1080:0:0:0:8:800:200C:417A
can be shortened to become this:
1080::8:800:200C:417A
© 2003, Cisco Systems, Inc. All rights reserved.
38
IPv6 Loopback address
0:0:0:0:0:0:0:1
(the IPv6 loopback address)
Can be written list this:
: :1
http://playground.sun.com/pub/ipng/html/INET-IPng-Paper.html
© 2003, Cisco Systems, Inc. All rights reserved.
39
IPv6 Address Format
• Three general types of addresses:
Unicast
Anycast
Mulicast
• IPv6 global unicast addresses feature three
levels of hierarchy:
Public topology
Site topology
Interface Identifier
© 2003, Cisco Systems, Inc. All rights reserved.
40
IPv6 Address format
• Unicast: An identifier for a single interface.
• Anycast: An identifier for a set of interfaces
(typically belonging to different nodes). A packet
sent to an anycast address is delivered to the
“nearest,” or first, interface in the anycast group.
• Multicast: An identifier for a set of interfaces
(typically belonging to different nodes). A packet
sent to a multicast address is delivered to all
interfaces in the multicast group.
© 2003, Cisco Systems, Inc. All rights reserved.
41
IPv6 address format
IPv6 address has three levels of hierarchy
© 2003, Cisco Systems, Inc. All rights reserved.
42
Summary
© 2003, Cisco Systems, Inc. All rights reserved.
43