{"id":565,"date":"2016-07-10T00:00:09","date_gmt":"2016-07-09T23:00:09","guid":{"rendered":"http:\/\/www.balajibandi.com\/?p=565"},"modified":"2017-10-12T07:18:50","modified_gmt":"2017-10-12T06:18:50","slug":"cisco-ios-router-as-a-ca-dns","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=565","title":{"rendered":"CISCO IOS Router as a CA \/ DNS"},"content":{"rendered":"<h1><span style=\"text-decoration: underline;\"><strong><span style=\"color: #0000ff; text-decoration: underline;\">CISCO IOS Router as a CA \/DNS\u00a0<\/span><\/strong><\/span><\/h1>\n<p>&nbsp;<\/p>\n<p id=\"KHpJDlY\"><img loading=\"lazy\" decoding=\"async\" width=\"627\" height=\"763\" class=\"alignnone size-full wp-image-567 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cc2f9ebf626.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cc2f9ebf626.png 627w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cc2f9ebf626-247x300.png 247w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Setting IOS router as DNS Server.<\/p>\n<p>First step is to enable the DNS service and domain lookup on the router:<\/p>\n<p><strong>CA(config)#ip dns server<\/strong><\/p>\n<p><strong>CA(config)#ip\u00a0\u00a0domain-lookup<\/strong><\/p>\n<p><strong>CA(config)#ip domain name bbhome.local<\/strong><\/p>\n<p><strong>CA(config)# ip name-server 192.168.1.254 ( my Local DSL Router GW IP)<\/strong><\/p>\n<p><strong>CA(config)# ip name-server 8.8.8.8 ( google DNS if above server fails)<\/strong><\/p>\n<p>Testing :<\/p>\n<p>CA#ping yahoo.com<br \/>\nType escape sequence to abort.<br \/>\nSending 5, 100-byte ICMP Echos to 98.139.180.149, timeout is 2 seconds:<br \/>\n!!!!!<br \/>\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 91\/104\/131 ms<br \/>\nCA#ping google.com<br \/>\nTranslating &#8220;google.com&#8221;&#8230;domain server (192.168.1.254) [OK]<\/p>\n<p>Type escape sequence to abort.<br \/>\nSending 5, 100-byte ICMP Echos to 216.58.206.78, timeout is 2 seconds:<br \/>\n!!!!!<br \/>\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 11\/12\/14 ms<\/p>\n<p>Testing Local Hostname :<\/p>\n<p>I have setup a host ASAV11 with IP 192.168.1.249<\/p>\n<p><strong>#ip host ASAV11..bbhome.local \u00a0192.168.1.249<\/strong><\/p>\n<p>testing<\/p>\n<p>CA#ping ASAv11.bbhome.local<br \/>\nType escape sequence to abort.<br \/>\nSending 5, 100-byte ICMP Echos to 192.168.1.249, timeout is 2 seconds:<br \/>\n!!!!!<br \/>\nSuccess rate is 100 percent (5\/5), round-trip min\/avg\/max = 10\/25\/54 ms<\/p>\n<p>Some of DNS Show commnads :<\/p>\n<p><strong>CA#show ip dns primary<\/strong><br \/>\nPrimary for zone bbhome.local:<br \/>\nSOA information:<br \/>\nZone primary (MNAME): ns1.bbhome.local<br \/>\nZone contact (RNAME): ns2.bbhome.local<br \/>\nRefresh (seconds): 21600<br \/>\nRetry (seconds): 900<br \/>\nExpire (seconds): 7776000<br \/>\nMinimum (seconds): 86400<\/p>\n<p><strong>CA#show ip dns view<\/strong><br \/>\nDNS View default parameters:<br \/>\nLogging is off<br \/>\nDNS Resolver settings:<br \/>\nDomain lookup is enabled<br \/>\nDefault domain name: bbhome.local<br \/>\nDomain search list: bbhome.local<br \/>\nLookup timeout: 3 seconds<br \/>\nLookup retries: 2<br \/>\n<strong>Domain name-servers:<\/strong><br \/>\n<strong> 192.168.1.254<\/strong><br \/>\n<strong> 8.8.8.8<\/strong><br \/>\nResolver source interface: GigabitEthernet0\/0<br \/>\nDNS Server settings:<br \/>\nForwarding of queries is enabled<br \/>\nForwarder timeout: 3 seconds<br \/>\nForwarder retries: 2<br \/>\nForwarder addresses:<\/p>\n<p><strong>CA#show ip dns statistics<\/strong><br \/>\n<strong>DNS requests received = 12 ( 12 + 0 ) \u00a0 \u00a0&lt;&#8211; you can see 12 requests<\/strong><br \/>\nDNS requests dropped = 0 ( 0 + 0 )<br \/>\nDNS responses replied = 0 ( 0 + 0 )<\/p>\n<p>Forwarder queue statistics:<br \/>\nCurrent size = 0<br \/>\nMaximum size = 0<br \/>\nDrops = 0<\/p>\n<p>Configuring myPC with new DNS Server ( IOS router)<\/p>\n<p id=\"dZVOJeg\"><img loading=\"lazy\" decoding=\"async\" width=\"414\" height=\"422\" class=\"alignnone size-full wp-image-569 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf86d9bbed6.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf86d9bbed6.png 414w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf86d9bbed6-294x300.png 294w\" sizes=\"auto, (max-width: 414px) 100vw, 414px\" \/><\/p>\n<p><strong>Nslookup for yahoo.com, works<\/strong><\/p>\n<p id=\"qRoZVGD\"><img loading=\"lazy\" decoding=\"async\" width=\"316\" height=\"205\" class=\"alignnone size-full wp-image-570 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf870fa7206.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf870fa7206.png 316w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf870fa7206-300x195.png 300w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/p>\n<p><strong>checking local hostname query for ASAv11.bbhome.local<\/strong><\/p>\n<p id=\"CqdDvFZ\"><img loading=\"lazy\" decoding=\"async\" width=\"753\" height=\"564\" class=\"alignnone size-full wp-image-571 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87266b53f.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87266b53f.png 753w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87266b53f-300x225.png 300w\" sizes=\"auto, (max-width: 753px) 100vw, 753px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Router check DNS Queries :<\/p>\n<p>&nbsp;<\/p>\n<p id=\"HkMAKQd\"><img loading=\"lazy\" decoding=\"async\" width=\"352\" height=\"134\" class=\"alignnone size-full wp-image-572 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87838f783.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87838f783.png 352w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/09\/img_59cf87838f783-300x114.png 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Looks good, Next Setup CA Server for Local Certificate authority.<\/p>\n<h3><strong>Requirements<\/strong><\/h3>\n<p><b>Plan Your PKI Before You Configure the Certificate Server<\/b><\/p>\n<p>Before you configure a Cisco IOS certificate server, it is important that you have planned for and chosen appropriate values for the settings you intend to use within your PKI (such as certificate lifetimes and certificate revocation list (CRL) lifetimes). After the settings are configured in the certificate server and certificates are granted, settings cannot be changed without having to reconfigure the certificate server and re-enrolling the peers.<\/p>\n<p><b>Enable the HTTP Server<\/b><\/p>\n<p id=\"dUuWJwp\"><img loading=\"lazy\" decoding=\"async\" width=\"227\" height=\"35\" class=\"alignnone size-full wp-image-592 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df068f3ecf0.png\" alt=\"\" \/><\/p>\n<p>Configuring CA Server :<\/p>\n<p id=\"hsDjssh\"><img loading=\"lazy\" decoding=\"async\" width=\"604\" height=\"321\" class=\"alignnone size-full wp-image-593 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df070885c40.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df070885c40.png 604w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df070885c40-300x159.png 300w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>You can verify the certificate stored in NVRAM<\/p>\n<p>&nbsp;<\/p>\n<p id=\"EaDRtUi\"><img loading=\"lazy\" decoding=\"async\" width=\"582\" height=\"204\" class=\"alignnone size-full wp-image-594 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df075070930.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df075070930.png 582w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df075070930-300x105.png 300w\" sizes=\"auto, (max-width: 582px) 100vw, 582px\" \/><\/p>\n<p><strong>Check CA Server running<\/strong><\/p>\n<p id=\"kAtvqyg\"><img loading=\"lazy\" decoding=\"async\" width=\"559\" height=\"195\" class=\"alignnone size-full wp-image-595 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07ba18d8f.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07ba18d8f.png 559w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07ba18d8f-300x105.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<p><strong>Check Certification Validation :<\/strong><\/p>\n<p id=\"wsBqaLi\"><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"415\" class=\"alignnone size-full wp-image-596 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07fb06e31.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07fb06e31.png 623w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df07fb06e31-300x200.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n<p>As of now the Certificate Server Grant mode manual, iam going to set that as Auto, so certificates can be enrolled automatically.<\/p>\n<p id=\"IlfXyUP\"><img loading=\"lazy\" decoding=\"async\" width=\"812\" height=\"485\" class=\"alignnone size-full wp-image-599 \" src=\"http:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df08c747678.png\" alt=\"\" srcset=\"https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df08c747678.png 812w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df08c747678-300x179.png 300w, https:\/\/www.balajibandi.com\/wp-content\/uploads\/2017\/10\/img_59df08c747678-768x459.png 768w\" sizes=\"auto, (max-width: 812px) 100vw, 812px\" \/><\/p>\n<p>Now CA Server up and running. We use CA Server as PKI for device authentication in the coming LABS.<\/p>\n<p>Happy Labinggggggg !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CISCO IOS Router as a CA \/DNS\u00a0 &nbsp; &nbsp; Setting IOS router as DNS Server. First step is to enable the DNS service and domain lookup on the router: CA(config)#ip dns server CA(config)#ip\u00a0\u00a0domain-lookup CA(config)#ip domain name bbhome.local CA(config)# ip name-server 192.168.1.254 ( my Local DSL Router GW IP) CA(config)# ip name-server 8.8.8.8 ( google DNS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,2,6],"tags":[],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-ccie-sec","category-cisco","category-security"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=565"}],"version-history":[{"count":6,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":600,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/565\/revisions\/600"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}