{"id":390,"date":"2019-01-24T19:44:12","date_gmt":"2019-01-24T18:44:12","guid":{"rendered":"https:\/\/netgab.net\/web\/?p=390"},"modified":"2019-01-24T19:44:17","modified_gmt":"2019-01-24T18:44:17","slug":"dhcp-dhcpv6-tests-using-docker","status":"publish","type":"post","link":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/","title":{"rendered":"DHCP \/ DHCPv6 tests using Docker"},"content":{"rendered":"<p>Hi,<br \/>\ntoday a colleague and myself wanted to test first hop security features in an ACI fabric. To be more precise DHCP policies (a.k.a DHCP snooping) for IPv4 (DHCP) and IPv6 (DHCPv6).<\/p>\n<p>Normally we&#8217;re testing these kind of things using Scapy one-liners. However in this case we wanted to see the &#8220;whole DHCP dance&#8221;. Instead of permanently installing a dhcpd or dnsmasq daemon on our Linux clients, I created a small docker image.<\/p>\n<p>The advantage is, that you can drill up the service real quick using a one-liner and a really small config file and kill the whole container afterwards. Again, the main purpose is testing and not for production use.<\/p>\n<p>Make sure to check out the image on Dockerhub in case you ever need something like this really quick.<\/p>\n<p><a href=\"https:\/\/hub.docker.com\/r\/netgab\/dnsmasq-dhcp\">netgab\/dnsmasq-dhcp on Dockerhub<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, today a colleague and myself wanted to test first hop security features in an ACI fabric. To be more precise DHCP policies (a.k.a DHCP snooping) for IPv4 (DHCP) and IPv6 (DHCPv6). Normally we&#8217;re testing these kind of things using Scapy one-liners. However in this case we wanted to see [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":393,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[31,34,35],"class_list":["post-390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-aci","tag-dhcp","tag-docker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>DHCP \/ DHCPv6 tests using Docker - NetGab - The daily networking madness<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DHCP \/ DHCPv6 tests using Docker - NetGab - The daily networking madness\" \/>\n<meta property=\"og:description\" content=\"Hi, today a colleague and myself wanted to test first hop security features in an ACI fabric. To be more precise DHCP policies (a.k.a DHCP snooping) for IPv4 (DHCP) and IPv6 (DHCPv6). Normally we&#8217;re testing these kind of things using Scapy one-liners. However in this case we wanted to see [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"NetGab - The daily networking madness\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-24T18:44:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-24T18:44:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"610\" \/>\n\t<meta property=\"og:image:height\" content=\"145\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"joe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/\"},\"author\":{\"name\":\"joe\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\"},\"headline\":\"DHCP \\\/ DHCPv6 tests using Docker\",\"datePublished\":\"2019-01-24T18:44:12+00:00\",\"dateModified\":\"2019-01-24T18:44:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/\"},\"wordCount\":142,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/610px-Docker_container_engine_logo.svg_.png\",\"keywords\":[\"ACI\",\"DHCP\",\"Docker\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/\",\"name\":\"DHCP \\\/ DHCPv6 tests using Docker - NetGab - The daily networking madness\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/610px-Docker_container_engine_logo.svg_.png\",\"datePublished\":\"2019-01-24T18:44:12+00:00\",\"dateModified\":\"2019-01-24T18:44:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#primaryimage\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/610px-Docker_container_engine_logo.svg_.png\",\"contentUrl\":\"https:\\\/\\\/netgab.net\\\/web\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/610px-Docker_container_engine_logo.svg_.png\",\"width\":610,\"height\":145,\"caption\":\"Docker logo\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/2019\\\/01\\\/24\\\/dhcp-dhcpv6-tests-using-docker\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/netgab.net\\\/web\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DHCP \\\/ DHCPv6 tests using Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#website\",\"url\":\"https:\\\/\\\/netgab.net\\\/web\\\/\",\"name\":\"NetGab - The daily networking madness\",\"description\":\"Networking at its best ... and worst\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/netgab.net\\\/web\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/netgab.net\\\/web\\\/#\\\/schema\\\/person\\\/b3c8a779d0a772a9b047559d7bba4ccd\",\"name\":\"joe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g\",\"caption\":\"joe\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DHCP \/ DHCPv6 tests using Docker - NetGab - The daily networking madness","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/","og_locale":"en_US","og_type":"article","og_title":"DHCP \/ DHCPv6 tests using Docker - NetGab - The daily networking madness","og_description":"Hi, today a colleague and myself wanted to test first hop security features in an ACI fabric. To be more precise DHCP policies (a.k.a DHCP snooping) for IPv4 (DHCP) and IPv6 (DHCPv6). Normally we&#8217;re testing these kind of things using Scapy one-liners. However in this case we wanted to see [&hellip;]","og_url":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/","og_site_name":"NetGab - The daily networking madness","article_published_time":"2019-01-24T18:44:12+00:00","article_modified_time":"2019-01-24T18:44:17+00:00","og_image":[{"width":610,"height":145,"url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","type":"image\/png"}],"author":"joe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"joe","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#article","isPartOf":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/"},"author":{"name":"joe","@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd"},"headline":"DHCP \/ DHCPv6 tests using Docker","datePublished":"2019-01-24T18:44:12+00:00","dateModified":"2019-01-24T18:44:17+00:00","mainEntityOfPage":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/"},"wordCount":142,"commentCount":0,"image":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","keywords":["ACI","DHCP","Docker"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/","url":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/","name":"DHCP \/ DHCPv6 tests using Docker - NetGab - The daily networking madness","isPartOf":{"@id":"https:\/\/netgab.net\/web\/#website"},"primaryImageOfPage":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#primaryimage"},"image":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#primaryimage"},"thumbnailUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","datePublished":"2019-01-24T18:44:12+00:00","dateModified":"2019-01-24T18:44:17+00:00","author":{"@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd"},"breadcrumb":{"@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#primaryimage","url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","contentUrl":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","width":610,"height":145,"caption":"Docker logo"},{"@type":"BreadcrumbList","@id":"https:\/\/netgab.net\/web\/2019\/01\/24\/dhcp-dhcpv6-tests-using-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/netgab.net\/web\/"},{"@type":"ListItem","position":2,"name":"DHCP \/ DHCPv6 tests using Docker"}]},{"@type":"WebSite","@id":"https:\/\/netgab.net\/web\/#website","url":"https:\/\/netgab.net\/web\/","name":"NetGab - The daily networking madness","description":"Networking at its best ... and worst","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/netgab.net\/web\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/netgab.net\/web\/#\/schema\/person\/b3c8a779d0a772a9b047559d7bba4ccd","name":"joe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32b66c7321ea985e8c54f9975e87605df70ac5e4167a1e4153d91d72c67cf150?s=96&d=retro&r=g","caption":"joe"}}]}},"jetpack_featured_media_url":"https:\/\/netgab.net\/web\/wp-content\/uploads\/2019\/01\/610px-Docker_container_engine_logo.svg_.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8dgKr-6i","_links":{"self":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":1,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/posts\/390\/revisions\/392"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/media\/393"}],"wp:attachment":[{"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netgab.net\/web\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}