Praktične tehnike rutiranja Predavanja

Prof. Mirjana Radivojević

Praktične tehnike rutiranja, prof. Mirjana Radivojević, RAF, Beograd

1

DNS

Praktične tehnike rutiranja, prof. Mirjana Radivojević, RAF, Beograd

2

prof. Mirjana Radivojević.DNS • Application specified in the TCP/IP suite • Means to translate human-readable names into IP addresses Praktične tehnike rutiranja. Beograd 3 . RAF.

RAF.DNS configuration:Setting Up a Router to Use DNS Lookups         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. Praktične tehnike rutiranja. Do not include the initial period that separates an unqualified name from the domain name. This command is enabled by default. Mirjana Radivojević. Beograd 4 . prof. 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). ip name-server Specifies the address of one or more name servers.

If there is a domain list. each to be tried in turn. prof. Note: If there is no domain list. RAF.DNS configuration:Setting Up a Router to Use DNS Lookups       ip domain list Defines a list of domains. Beograd 5 . the domain name that you specified with the ip domain-name global configuration command is used. 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.  Praktične tehnike rutiranja. ip ospf name-lookup Configures Open Shortest Path First (OSPF) to look up DNS names for use in all OSPF show EXEC command displays. the default domain name is not used. Mirjana Radivojević.

168.1.100 !--.168.1. ! ! interface Ethernet0 ip address 192.255.Domain lookup is enabled by default. !--.DNS example # # # # # # # # # # # # # # # # # # outer# show running-config Building configuration . prof.2 service timestamps debug datetime msec service timestamps log uptime no service password-encryption ! hostname Router ! ! ip subnet-zero ip name-server 192.0 ! Praktične tehnike rutiranja. Current configuration : 470 bytes ! version 12..255..Configures the IP address of the name server. Beograd 6 . Mirjana Radivojević. RAF.1 255.

RAF. prof. Beograd 7 .Implementing Advanced Cisco IOS Features: Configuring DHCP Praktične tehnike rutiranja. Mirjana Radivojević.

RAF. prof. Mirjana Radivojević. Beograd 8 .DHCP in an Enterprise Network Praktične tehnike rutiranja.

DHCP Praktične tehnike rutiranja. RAF. prof. Mirjana Radivojević. Beograd 9 .

the server usually reserves the address until the client has had a chance to formally request the address.DHCP A DHCP client may receive offers from multiple DHCP servers and can accept any one of the offers. Beograd 10 . Praktične tehnike rutiranja. the offer from the DHCP server is not a guarantee that the IP address will be allocated to the client. Additionally. The client returns a formal request for the offered IP address to the DHCP server in a DHCPREQUEST broadcast message. prof. however. The DHCP server confirms that the IP address has been allocated to the client by returning a DHCPACK unicast message to the client. the client usually accepts the first offer it receives. RAF. however. Mirjana Radivojević. 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.

Beograd 11 .DHCP  If the configuration parameters sent to the client in the DHCPOFFER unicast message by the DHCP server are invalid (a misconfiguration error exists). which means the offered configuration parameters have not been assigned. prof. Mirjana Radivojević. the client returns a DHCPDECLINE broadcast message to the DHCP server. Praktične tehnike rutiranja.  The DHCP server will send to the client a DHCPNAK denial broadcast message. 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. RAF.

Beograd 12 . prof. Mirjana Radivojević.Dynamic Host Configuration Protocol Praktične tehnike rutiranja. RAF.

Mirjana Radivojević.Dynamic Host Configuration Protocol  DHCP server offers configuration parametars:  IP address  MAC address  Default gateway  Lease  IP telephony DHCP option-option 150  ( TFTP configuration of IP telephones) Praktične tehnike rutiranja. Beograd 13 . RAF. prof.

168.168.168.1.1-192.        . 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.0 XYZR1(dhcp-config)# option 150 ip 192.0 255. because this is required for the phones to download their firmware image from XYZR1 when they boot up.255.Configuring DHCP Server Support      Configure a DHCP exclusion range that prevents XYZR1 from providing DHCP addresses within the reserved range of 192.5 XYZR1(dhcp-config)# default-router 192.1.168.0/24 subnet.1.l68. creating a DHCP address pool for the 192.168.1.168. Creating a DHCP Exclusion Range on XYZR1 XYZR1# configure terminal XYZR1(config)# ip dhcp excluded-address 192.255.1.1.1 192.99.1.99 Configure the DHCP server on XYZR1.5 XYZR1(dhcp-config)# end Configure the TFTP Server option (option 150) with the IP address of XYZR1.1.

Mirjana Radivojević. RAF. prof.Configuring a DHCP Server Router(config)#ip dhcp pool [pool name] • Enables a DHCP pool for use by hosts Router(config-dhcp)#import all • Imports DNS and WINS information from IPCP Router(config-dhcp)#network [network address][subnet mask] • Specifies the network and subnet mask of the pool Router(config-dhcp)#default-router [host address] • Specifies the default router for the pool to use Praktične tehnike rutiranja. Beograd 15 .

2.102 172.0.1. prof.103 ip dhcp excluded-address 172.103 172.16.2.103 default-router 172.253/router-dhcp write-delay 120 ip dhcp excluded-address 172.0/16 domain-name global.16.1.DHCP Server Configuration Example ipdhcp database ftp://user:passwords@172.1.16.16.16.16. RAF.100 172.16.102 netbios-name-server 172.100 172.4.1.100 Praktične tehnike rutiranja. Mirjana Radivojević.16.2.2.2.16.16. Beograd 16 .16.com dns-server 172.103 ip dhcp pool 0 network 172.

RAF. prof. Beograd 17 .Importing and Autoconfiguration Praktične tehnike rutiranja. Mirjana Radivojević.

DHCP Client Router (config-if)# ip address dhcp Enables a Cisco IOS device to obtain an IP address dynamically from a DHCP server Praktične tehnike rutiranja. Mirjana Radivojević. RAF. prof. Beograd 18 .

Mirjana Radivojević. RAF. Helper address provides selective connectivity. by default.Helper Addressing Overview    Routers do not forward broadcasts. prof. Relay agents receive DHCP messages and generate a new DHCP message to send out on another interface Praktične tehnike rutiranja. Beograd 19 .

Why Use a Helper Address?  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 .

Mirjana Radivojević. Beograd 21 .IP Helper Address Commands Router(config-if)# 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)# ip forward-protocol { udp [ port ] }  Specifies which protocols will be forwarded Praktične tehnike rutiranja. RAF. prof.

Beograd 22 . Mirjana Radivojević.Multiple Servers: Remote Networks Praktične tehnike rutiranja. RAF. prof.

Mirjana Radivojević. Beograd 23 . RAF.Relay Agent Option Support Praktične tehnike rutiranja. prof.

prof.DHCP Verification Commands router# show ip dhcp database • Displays recent activity on the DHCP database router# show ip dhcp server statistics • Shows count information about statistics and messages sent and received router# show ip route dhcp • Displays routes added to the routing table by DHCP router# debug ip dhcp server {events | packets | linkage} • Enables debugging on the DHCP server Praktične tehnike rutiranja. RAF. Mirjana Radivojević. Beograd 24 .

prof.  DHCP client can be configured. Praktične tehnike rutiranja. Mirjana Radivojević.  DHCP server can be configured.Summary  DHCP functions may be configured with Cisco IOS software. RAF. Beograd 25 .  DHCP relay services are supported.  The IP helper address activates the DHCP relay agent in the Cisco IOS device.  DHCP options can be configured.

0507//7088 $4209208.&80.07.07 .431:70/70.9434593 45943 3905.039 31472.07 1.0398/43493490807..09.//9070.. 807.7/899490! 807.....8994:3./.30-74.039.899470.3/ 147.//7088 05078..

108./.!0507//7088422.90/-74./  .89 5.89 .098 W .8947/70.9 3090307:97.943.3.4:/55479 (< $50.431  5147...48-0147.943.3.. 5741 7.40..108/0893. # 047.8994:3.431 1  50507 .#.308/0893./.7/3.3/850.//70881472.3&!-74.//7088 W 3.-08147.//70881742-74.7/0/ !7.7/ 57494./.3/8 #4:907 .//7088./..57494.//7088 #4:907 .

:950$07.078#0249009478 !7.3.#. # 047.9 3090307:97.3./  . 5741 7./.40.

40.#0./. 5741 7.039 5943$:55479 !7.3.9 3090307:97.#. # 047.3./  .

0< W 3.874:908..3/8 74:907 845/.5807.5 W 85.943.80 74:907 845/.8.0983.94390!/.0/ 74:907 84574:90/.0.8 W $48.070..-.989.3.0789.870.07 !7. # 047.-0-! 74:907 /0-:5/.5807.80 W 85.-.5/.9.9.989.088039.//0/949074:939. 5741 7.3.-4:989./.039.9.40.4:3931472.!'071.3/2088./  .03985.#.943422.-08/0-:34390!807.9 3090307:97.3/ 70..

5741 7.3-0..9 3090307:97.70 !807.0393908..#..3-0.9.3-0..40.4  $8419. # 047.039.3.94382.4 $/0.807.07.//7088.7 !1:3.-0.431:70/ %0!0507..3..431:70/ !459438.431:70/ !...08.0 !70.708:554790/ !7./.$:22.431:70/98.90890! 70./  .