Professional Documents
Culture Documents
DNS
DNS
Application specified in the TCP/IP suite Means to translate human-readable names into IP addresses
Your router can be configured to use DNS lookups if you wish to use the ping or traceroute commands with a host name rather than an IP address. Use these commands to do so: ip domain lookup Enables DNS-based host name-to-address translation. This command is enabled by default. ip name-server Specifies the address of one or more name servers. ip domain name Defines a default domain name that the Cisco IOS software uses to complete unqualified host names (names without a dotted-decimal domain name). Do not include the initial period that separates an unqualified name from the domain name.
Praktine tehnike rutiranja, prof. Mirjana Radivojevi, RAF, Beograd 4
ip domain list Defines a list of domains, each to be tried in turn. Note: If there is no domain list, the domain name that you specified with the ip domain-name global configuration command is used. If there is a domain list, the default domain name is not used. ip ospf name-lookup Configures Open Shortest Path First (OSPF) to look up DNS names for use in all OSPF show EXEC command displays. This feature makes it easier to identify a router because the router is displayed by name rather than by its router ID or neighbor ID.
DNS example
# # # # # # # # # # # # # # # # # #
outer# show running-config Building configuration ... Current configuration : 470 bytes ! version 12.2 service timestamps debug datetime msec service timestamps log uptime no service password-encryption ! hostname Router ! ! ip subnet-zero ip name-server 192.168.1.100 !--- Configures the IP address of the name server. !--- Domain lookup is enabled by default. ! ! interface Ethernet0 ip address 192.168.1.1 255.255.255.0 !
Praktine tehnike rutiranja, prof. Mirjana Radivojevi, RAF, Beograd 6
DHCP
DHCP
A DHCP client may receive offers from multiple DHCP servers and can accept any one of the offers; however, the client usually accepts the first offer it receives. Additionally, the offer from the DHCP server is not a guarantee that the IP address will be allocated to the client; however, the server usually reserves the address until the client has had a chance to formally request the address. The client returns a formal request for the offered IP address to the DHCP server in a DHCPREQUEST broadcast message. The DHCP server confirms that the IP address has been allocated to the client by returning a DHCPACK unicast message to the client.
The formal request for the offered IP address (the DHCPREQUEST message) that is sent by the client is broadcast so that all other DHCP servers that received the DHCPDISCOVER broadcast message from the client can reclaim the IP addresses that they offered to the client.
Praktine tehnike rutiranja, prof. Mirjana Radivojevi, RAF, Beograd 10
DHCP
If the configuration parameters sent to the client in the DHCPOFFER unicast message by the DHCP server are invalid (a misconfiguration error exists), the client returns a DHCPDECLINE broadcast message to the DHCP server.
The DHCP server will send to the client a DHCPNAK denial broadcast message, which means the offered configuration parameters have not been assigned, if an error has occurred during the negotiation of the parameters or the client has been slow in responding to the DHCPOFFER message (the DHCP server assigned the parameters to another client) of the DHCP server.
11
12
DHCP server offers configuration parametars: IP address MAC address Default gateway Lease IP telephony DHCP option-option 150 ( TFTP configuration of IP telephones)
13
Configure a DHCP exclusion range that prevents XYZR1 from providing DHCP addresses within the reserved range of 192.l68.1.1-192.168.1.99, Creating a DHCP Exclusion Range on XYZR1 XYZR1# configure terminal XYZR1(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.99 Configure the DHCP server on XYZR1, creating a DHCP address pool for the 192.168.1.0/24 subnet, ensuring the TFTP Server option (option 150) is set to the IP address of XYZR1 Creating a DHCP Pool on XYZR1 XYZR1(config)# ip dhcp pool QOSLAB XYZR1(dhcp-config)# network 192.168.1.0 255.255.255.0 XYZR1(dhcp-config)# option 150 ip 192.168.1.5 XYZR1(dhcp-config)# default-router 192.168.1.5 XYZR1(dhcp-config)# end Configure the TFTP Server option (option 150) with the IP address of XYZR1, because this is required for the phones to download their firmware image from XYZR1 when they boot up.
16
17
DHCP Client
Router (config-if)#
ip address dhcp Enables a Cisco IOS device to obtain an IP address dynamically from a DHCP server
18
Routers do not forward broadcasts, by default. Helper address provides selective connectivity. Relay agents receive DHCP messages and generate a new DHCP message to send out on another interface
19
Sometimes
clients do not know the server address. Helpers change broadcast to unicast to reach server. If configured relay agent add the relay agent information optin (option 82) in the packet and forwards it to the DHCP server
ip helper-address address
Enables forwarding and specifies destination address for main UDP broadcast packets Changes destination address from broadcast to unicast or directed broadcast address
Router(config)#
Specifies
21
22
23
Shows count information about statistics and messages sent and received
router#
Summary
DHCP
functions may be configured with Cisco IOS software. DHCP server can be configured. DHCP options can be configured. DHCP client can be configured. The IP helper address activates the DHCP relay agent in the Cisco IOS device. DHCP relay services are supported.
Praktine tehnike rutiranja, prof. Mirjana Radivojevi, RAF, Beograd 25