Ch.2 - Advanced IP Address Management: CCNP 1 Version 3.0 - Advanced Routing Rick Graziani Cabrillo College
Ch.2 - Advanced IP Address Management: CCNP 1 Version 3.0 - Advanced Routing Rick Graziani Cabrillo College
2 – Advanced IP Address
Management
1
Note to instructors
Class D Addresses
• A Class D address begins with binary 1110 in the first octet.
• First octet range 224 to 239.
• Class D address can be used to represent a group of hosts called a
host group, or multicast group.
Class E Addresses
First octet of an IP address begins with 1111
• Class E addresses are reserved for experimental purposes and should
not be used for addressing hosts or multicast groups.
• Address Depletion
• Internet Routing Table Explosion
Rick Graziani [email protected] 8
IPv4 Addressing
Subnet Mask
• One 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.
Using /24
subnet... Network Network Subnet Host
RFC 1878 states, "This practice (of excluding all-zeros and all-ones subnets) is
obsolete! Modern software will be able to utilize all definable networks."
Today, the use of subnet zero and the all-ones subnet is generally accepted
and most vendors support their use, though, on certain networks, particularly
the ones using legacy software, the use of subnet zero and the all-ones
subnet can lead to problems.
• By 1992, members of the IETF were having serious concerns about the
exponential growth of the Internet and the scalability of Internet routing
tables.
• The IETF was also concerned with the eventual exhaustion of 32-bit IPv4
address space.
• Projections were that this problem would reach its critical state by 1994
or 1995.
• IETF’s response was the concept of Supernetting or CIDR, “cider”.
• To CIDR-compliant routers, address class is meaningless.
– The network portion of the address is determined by the network
subnet mask, network-prefix or prefix-length (/8, /19, etc.)
– The network address is NOT determined by the first octet (first two
bits), 200.10.0.0/16 or 15.10.160.0/19
• CIDR helped reduced the Internet routing table explosion with
supernetting and reallocation of IPv4 address space.
Rick Graziani [email protected] 16
Active BGP entries
http://bgp.potaroo.net/
Rick Graziani [email protected] 17
CIDR (Classless Inter-Domain Routing)
With CIDR, a
router can
summarize
these routes
into eight
networks by
using a 13-bit
prefix:
172.24.0.0 /13
Steps:
1. Count the number of left-most matching bits, /13
2. Add all zeros after the last matching bit:
172.24.0.0 = 10101100 00011000 00000000 00000000
Rick Graziani [email protected] 19
CIDR (Classless Inter-Domain Routing)
N A P ( N e t w o r k A c c e s s P o in t )
N e tw o rk N e tw o rk
S e r v ic e S e r v ic e
P r o v id e r P r o v id e r
R e g io n a l R e g io n a l R e g io n a l R e g io n a l
S e r v ic e S e r v ic e S e r v ic e S e r v ic e
P r o v id e r P r o v id e r P r o v id e r P r o v id e r
IS P IS P IS P IS P IS P IS P IS P IS P
S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s S u b s c r ib e r s
• With the ISP acting as the addressing authority for a CIDR block of
addresses, the ISP’s customer networks, which include XYZ, can be
advertised among Internet routers as a single supernet.
200.199.48.0/25
Summarization from
200.199.56.0/23 the customer
networks to their
provider.
Even Better:
200.199.48.32/27 11001000 11000111 00110000 0 0100000
200.199.48.64/27 11001000 11000111 00110000 0 1000000
200.199.48.96/27 11001000 11000111 00110000 0 1100000
200.199.48.0/25 11001000 11000111 00110000 0 0000000
(As long as there are no other routes elsewhere within this range, well…)
20 bits in common
• Dynamic routing protocols must send network address and mask (prefix-
length) information in their routing updates.
• In other words, CIDR requires classless routing protocols for dynamic routing.
• However, you can still configure summarized static routes, after all, that is
what a 0.0.0.0/0 route is.
Merida
Summarized Update Specific Route Update
172.16.0.0/16 172.16.5.0/24
172.16.5.0/24
172.16.1.0/24
Quito Cartago
172.16.2.0/24 172.16.10.0/24
• Merida receives a summarized /16 update from Quito and a more
specific /24 update from Cartago.
• Merida will include both routes in the routing table.
• Merida will forward all packets matching at least the first 24 bits of
172.16.5.0 to Cartago (172/16/5/0/24), longest-bit match.
• Merida will forward all other packets matching at least the first 16 bits
to Quito (172.16.0.0/16).
Rick Graziani [email protected] 28
Short Term Solutions: IPv4 Enhancements
10.2.0.0/24 10 2 0 Host
10.2.1.0/24 10 2 1 Host
10.2.n.0/24 10 2 … Host
10.2.255.0/24 10 2 255 Host
• Note: 10.2.0.0/16 is now a summary of all of the 10.2.0.0/24
subnets.
• Summarization coming soon!
Rick Graziani [email protected] 32
VLSM – Simple Example
10.0.0.0/8 “subnetted using /16”
• This network has seven /27 subnets with 30 hosts each AND seven
/30 subnets with 2 hosts each (one left over).
• /30 subnets with 2 hosts per subnet do not waste host addresses on
serial networks .
Rick Graziani [email protected] 37
VLSM and the Routing Table (more later)
Displays one subnet mask for all child routes.
Classful mask is assumed for the parent route.
Routing Table without VLSM
RouterX#show ip route
207.21.24.0/27 is subnetted, 4 subnets
C 207.21.24.192 is directly connected, Serial0
C 207.21.24.196 is directly connected, Serial1
C 207.21.24.200 is directly connected, Serial2
C 207.21.24.204 is directly connected, FastEthernet0
Each child routes displays its own subnet mask.
Routing Table with VLSM Classful mask is included for the parent route.
RouterX#show ip route
207.21.24.0/24 is variably subnetted, 4 subnets, 2 masks
C 207.21.24.192 /30 is directly connected, Serial0
C 207.21.24.196 /30 is directly connected, Serial1
C 207.21.24.200 /30 is directly connected, Serial2
C 207.21.24.96 /27 is directly connected, FastEthernet0
• Parent Route shows classful mask instead of subnet mask of the child
routes.
• Each Child Routes includes its subnet mask.
• Route flapping occurs when a router interface alternates rapidly between the up and
down states.
• Route flapping, and it can cripple a router with excessive updates and recalculations.
• However, the summarization configuration prevents the RTC route flapping from
affecting any other routers.
• The loss of one network does not invalidate the route to the supernet.
• While RTC may be kept busy dealing with its own route flap, RTZ, and all upstream
routers, are unaware of any downstream problem.
• Summarization effectively insulates the other routers from the problem of route
flapping.
Rick Graziani [email protected] 40
Short Term Solutions: IPv4 Enhancements
If addressing any of the following, these private addresses can be used instead of globally unique addresses:
• A non-public intranet
• A test lab
• A home network
Global addresses must be obtained from a provider or a registry at some expense.
• DHCP overview
• DHCP operation
• Configuring IOS DHCP server
• Easy IP
Basic
More
options…
Broadcast Unicast
To configure RTA e0, the interface that receives the Host A broadcasts, to
relay DHCP broadcasts as a unicast to the DHCP server, use the
following commands:
RTA(config)#interface e0
RTA(config-if)#ip helper-address 172.24.1.9
Rick Graziani [email protected] 58
Configuring IP helper addresses
Broadcast Unicast
Helper address configuration that relays broadcasts to all servers on the
segment.
RTA(config)#interface e0
RTA(config-if)#ip helper-address 172.24.1.255
But will RTA forward the broadcast?
Rick Graziani [email protected] 59
Directed Broadcast
• Notice that the RTA interface e3, which connects to the server farm, is not
configured with helper addresses.
• However, the output shows that for this interface, directed broadcast
forwarding is disabled.
• This means that the router will not convert the logical broadcast 172.24.1.255
into a physical broadcast with a Layer 2 address of FF-FF-FF-FF-FF-FF.
• To allow all the nodes in the server farm to receive the broadcasts at Layer 2,
e3 will need to be configured to forward directed broadcasts with the following
command:
RTA(config)#interface e3
RTA(config-if)#ip
Rick Graziani [email protected]
directed-broadcast 60
Configuring IP helper addresses
L3 Broadcast L2 Broadcast
In 1994, the Internet Engineering Task Force (IETF) proposed IPv6 in RFC 1752
and a number of working groups were formed in response. IPv6 covers issues
such as the following:
• Address depletion
• Quality of service
• Address autoconfiguration
• Authentication
• Security
It will not be easy for organizations deeply invested in the IPv4 scheme to migrate
to a totally new architecture. As long as IPv4, with its recent extensions and
CIDR enabled hierarchy, remains viable, administrators will shy away from
adopting IPv6. A new IP protocol requires new software, new hardware, and
new methods of administration. It is likely that IPv4 and IPv6 will coexist, even
within an autonomous system, for years to come.
Rick Graziani [email protected] 62
IPv6