{"id":1863,"date":"2020-01-17T18:08:31","date_gmt":"2020-01-17T18:08:31","guid":{"rendered":"https:\/\/lamp.ciscoar.com\/?page_id=1863"},"modified":"2020-01-17T21:05:08","modified_gmt":"2020-01-17T21:05:08","slug":"centos-ip-address","status":"publish","type":"page","link":"https:\/\/lamp.ciscoar.com\/?page_id=1863","title":{"rendered":"CentOS IP Address"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Dynamic Host Configuration Protocol&nbsp;(DHCP) <\/h2>\n\n\n\n<p>During the installation process we choose to get the IP Address for our CentOS Virtual Machine automatically using the <a rel=\"noreferrer noopener\" aria-label=\"DHCP protocol (opens in a new tab)\" href=\"\/installing-centos-7\/#Activating_the_Network\" target=\"_blank\">DHCP protocol<\/a>, and we also configured the network adapter to work as <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"\/creating-a-new-virtual-machine\/#Network_Bridged_Adapter\" target=\"_blank\">bridged mode<\/a>, that way our Virtual Machine will get an IP address in the same range of  the host computer (physical computer).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to check the IP Address<\/h2>\n\n\n\n<p>We can use the following command to know what IP address was assigned to CentOS via DHCP.<\/p>\n\n\n<p class=\"fonts-plugin-block \" style=\"font-family: calibri;font-weight: 700;font-size: 20px;color: #9b51e0\">ip a<\/p>\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"472\" src=\"https:\/\/lamp.ciscoar.com\/wp-content\/uploads\/2020\/01\/centos7-ip-address.gif\" alt=\"\" class=\"wp-image-1864\"\/><figcaption>Centos 7 &#8211; checking IP address<\/figcaption><\/figure><\/div>\n\n\n\n<p>As you can see we are able to see both the NIC adapter name &#8220;<strong>enp0s3<\/strong>&#8221; and also the IP Address that was assigned via DHCP &#8220;<strong>192.168.0.21<\/strong>&#8220;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where to go next?<\/h2>\n\n\n\n<p>The fact that an IP Address has been successfuly assigned is a good sign that our Virtual Machine has proper connectivity inside our LAN, and more than that we can now go a little bit further and check also the WAN connectivity.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"\/lan-and-wan-connectivity\/\">Checking LAN and WAN connectivity<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Dynamic Host Configuration Protocol&nbsp;(DHCP) During the installation process we choose to get the IP Address for our CentOS Virtual Machine automatically using the DHCP protocol, and we also configured the network adapter to work as bridged mode, that way our Virtual Machine will get an IP address in the same range of the host computer &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/lamp.ciscoar.com\/?page_id=1863\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CentOS IP Address&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1863","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1863"}],"version-history":[{"count":13,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1863\/revisions"}],"predecessor-version":[{"id":1879,"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=\/wp\/v2\/pages\/1863\/revisions\/1879"}],"wp:attachment":[{"href":"https:\/\/lamp.ciscoar.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}