{"id":255,"date":"2017-11-11T17:46:20","date_gmt":"2017-11-11T23:46:20","guid":{"rendered":"https:\/\/tech.my-netsol.com\/?p=5"},"modified":"2017-11-11T17:46:20","modified_gmt":"2017-11-11T23:46:20","slug":"ubuntu-network-config","status":"publish","type":"post","link":"https:\/\/tech.my-netsol.com\/?p=255","title":{"rendered":"Ubuntu Network Config"},"content":{"rendered":"<p>I recently had to modify the NIC setup and add a virtual nic.\u00a0 Thought I would save this.. as it was simple and thought i&#8217;d share.\u00a0 This is using the default ens160 interface, and a sub-interface on the same nic.<\/p>\n<p># This file describes the network interfaces available on your system<br \/>\n# and how to activate them. For more information, see interfaces(5).<\/p>\n<p>source \/etc\/network\/interfaces.d\/*<\/p>\n<p># The loopback network interface<br \/>\nauto lo ens160 ens160:1<br \/>\niface lo inet loopback<\/p>\n<p># The primary network interface<br \/>\niface ens160 inet static<br \/>\naddress 10.111.1.105<br \/>\nnetmask 255.255.224.0<br \/>\nnetwork 10.111.0.0<br \/>\nbroadcast 10.111.31.255<br \/>\ngateway 10.111.0.4<br \/>\ndns-nameservers 8.8.8.8<br \/>\ndns-domain your-domain.com<br \/>\ndns-search your-domain.com<\/p>\n<p>iface ens160:1 inet static<br \/>\naddress 10.111.2.198<br \/>\nnetmask 255.255.224.0<br \/>\nbroadcast 10.111.31.255<br \/>\nnetwork 10.111.0.0<\/p>\n<p>&nbsp;<\/p>\n<p># This file describes the network interfaces available on your system<br \/>\n# and how to activate them. For more information, see interfaces(5).<\/p>\n<p>source \/etc\/network\/interfaces.d\/*<\/p>\n<p># The loopback network interface<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># The primary network interface<br \/>\nauto ens160<br \/>\niface ens160 inet dhcp<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently had to modify the NIC setup and add a virtual nic.\u00a0 Thought I would save this.. as it was simple and thought i&#8217;d share.\u00a0 This is using the default ens160 interface, and a sub-interface on the same nic. # This file describes the network interfaces available on your system # and how to &#8230; <a title=\"Ubuntu Network Config\" class=\"read-more\" href=\"https:\/\/tech.my-netsol.com\/?p=255\" aria-label=\"Read more about Ubuntu Network Config\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=255"}],"version-history":[{"count":0,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.my-netsol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}