Tải bản đầy đủ (.pdf) (88 trang)

Chương 7 - Thực hiện Dịch vụ IP potx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (3.36 MB, 88 trang )

1
Chapter 7 - Implementing
IP Addressing Services
CCNA Exploration 4.0
Học viện mạng Bach Khoa - Website: www.bkacad.com 2
Introduction
Học viện mạng Bach Khoa - Website: www.bkacad.com 3
DHCP
Học viện mạng Bach Khoa - Website: www.bkacad.com 4
Introducing DHCP
 DHCP assigns IP addresses and other important
network configuration information dynamically.
Học viện mạng Bach Khoa - Website: www.bkacad.com 5
DHCP Operation
• Manual Allocation: The
administrator assigns a pre-
allocated IP address to the
client and DHCP only
communicates the IP address
to the device.
• Automatic Allocation: DHCP
automatically assigns a static
IP address permanently to a
device, selecting it from a pool
of available addresses. There
is no lease and the address is
permanently assigned to a
device.
• Dynamic Allocation: DHCP
automatically dynamically
assigns, or leases, an IP


address from a pool of
addresses for a limited
period of time chosen by the
server, or until the client tells
the DHCP server that it no
longer needs the address.
Học viện mạng Bach Khoa - Website: www.bkacad.com 6
BOOTP and DHCP
• Both DHCP and BOOTP are client/server based and
use UDP ports 67 and 68. Those ports are still known
as BOOTP ports.
Học viện mạng Bach Khoa - Website: www.bkacad.com 7
DHCP Message Format
Học viện mạng Bach Khoa - Website: www.bkacad.com 8
DHCP Discover
Học viện mạng Bach Khoa - Website: www.bkacad.com 9
DHCP Offer
Học viện mạng Bach Khoa - Website: www.bkacad.com 10
Configuring a DHCP Server
Học viện mạng Bach Khoa - Website: www.bkacad.com 11
Configuring a DHCP Server
Example
Học viện mạng Bach Khoa - Website: www.bkacad.com 12
Verifying DHCP
PC1: ipconfig /all
Học viện mạng Bach Khoa - Website: www.bkacad.com 13
Verifying DHCP
PC2: ipconfig /all
Học viện mạng Bach Khoa - Website: www.bkacad.com 14
Verifying DHCP

Học viện mạng Bach Khoa - Website: www.bkacad.com 15
Configuring a DHCP Client
Học viện mạng Bach Khoa - Website: www.bkacad.com 16
Configuring a DHCP Client
Học viện mạng Bach Khoa - Website: www.bkacad.com 17
DHCP Relay
Host Problem
Học viện mạng Bach Khoa - Website: www.bkacad.com 18
DHCP Relay
Host Renew
Học viện mạng Bach Khoa - Website: www.bkacad.com 19
DHCP Relay
• 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?
Broadcast Unicast
Học viện mạng Bach Khoa - Website: www.bkacad.com 20
DHCP Relay
• 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 directed-broadcast

Học viện mạng Bach Khoa - Website: www.bkacad.com 21
DHCP Relay
RTA(config)#interface e0
RTA(config-if)#ip helper-address 172.24.1.255
RTA(config)#interface e3
RTA(config-if)#ip directed-broadcast
L3 Broadcast L2 Broadcast
Học viện mạng Bach Khoa - Website: www.bkacad.com 22
Using helper addresses
• By default, the ip helper-address command forwards the eight UDPs services.
• The Cisco IOS provides the global configuration command ip forward-
protocol to allow an administrator to forward any UDP port in addition to the
default eight.
Học viện mạng Bach Khoa - Website: www.bkacad.com 23
Configuring a DHCP Server Using SDM
Học viện mạng Bach Khoa - Website: www.bkacad.com 24
Configuring a DHCP Server Using SDM
Học viện mạng Bach Khoa - Website: www.bkacad.com 25
Verifying and Troubleshooting DHCP

×