{"id":29,"date":"2022-10-29T21:15:49","date_gmt":"2022-10-29T21:15:49","guid":{"rendered":"https:\/\/smartserverhost.com\/blog\/?p=29"},"modified":"2022-11-07T23:45:54","modified_gmt":"2022-11-07T23:45:54","slug":"how-to-add-secondary-ip-address-to-centos-redhat","status":"publish","type":"post","link":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/","title":{"rendered":"How to Add Secondary IP Address To CentOS\/ RedHat"},"content":{"rendered":"\n<p>This guide will explain how to add a secondary IP address to a network interface on redhat\/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to an REDHAT \/ CentOS network interface. This guide will discuss manually creating a network configuration file and using Network Manager CLI tool \u2013 <strong>nmcli<\/strong>.<\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-0-color\">Add Secondary IP address Manually<\/mark><\/strong><\/p>\n\n\n\n<p>The first method involves creating a sub-interface configuration file and populating network information. In my <strong>RedHat 8 server<\/strong>, my network interface has the following details.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>ip addr<\/strong><br> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>     link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>     inet 127.0.0.1\/8 scope host lo<br>        valid_lft forever preferred_lft forever<br>     inet6 ::1\/128 scope host <br>        valid_lft forever preferred_lft forever<br> 2: <strong>enp1s0<\/strong>:  mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>     link\/ether 52:54:00:8f:8c:86 brd ff:ff:ff:ff:ff:ff<br>     inet <strong>192.168.122.198\/24<\/strong> brd 192.168.122.255 scope global dynamic noprefixroute enp1s0<br>        valid_lft 1891sec preferred_lft 1891sec<br>     inet6 fe80::4d61:1d19:14a4:a8dc\/64 scope link noprefixroute <br>        valid_lft forever preferred_lft forever<\/code><\/pre>\n\n\n\n<p>The network interface I\u2019ll assign a secondary IPv4 address is <code>enp1s0<\/code>. This interface configuration file is located inside the <code>\/etc\/sysconfig\/network-scripts<\/code> directory.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>cat \/etc\/sysconfig\/network-scripts\/ifcfg-enp1s0<\/strong><\/code><\/pre>\n\n\n\n<p>Let\u2019s create a sub-interface configuration file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum -y install vim<br>sudo vim \/etc\/sysconfig\/network-scripts\/<strong>ifcfg-enp1s0:1<\/strong><\/code><\/pre>\n\n\n\n<p>Don\u2019t ignore <code>:1<\/code> the end. Then add IP configuration data.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>DEVICE=<strong>enp1s0:1<\/strong>\nType=Ethernet\nONBOOT=yes\nNM_CONTROLLED=no\nBOOTPROTO=none\nIPADDR=<strong>192.168.122.11<\/strong>\nPREFIX=<strong>24<\/strong><\/code><\/pre>\n\n\n\n<p>Reboot your server to confirm the secondary IP address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>After the system restart, check the IP information for the interface.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>ip addr<\/strong><br> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>     link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>     inet 127.0.0.1\/8 scope host lo<br>        valid_lft forever preferred_lft forever<br>     inet6 ::1\/128 scope host <br>        valid_lft forever preferred_lft forever<br> 2: enp1s0:  mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>     link\/ether 52:54:00:8f:8c:86 brd ff:ff:ff:ff:ff:ff<br>     inet <strong>192.168.122.197\/24<\/strong> brd 192.168.122.255 scope global dynamic noprefixroute enp1s0<br>        valid_lft 3503sec preferred_lft 3503sec<br>     inet <strong>192.168.122.11\/24<\/strong> brd 192.168.122.255 scope global secondary noprefixroute enp1s0:1<br>        valid_lft forever preferred_lft forever<br>     inet6 fe80::4d61:1d19:14a4:a8dc\/64 scope link noprefixroute <br>        valid_lft forever preferred_lft forever<\/code><\/pre>\n\n\n\n<p>You can see we have two Ip addresses assigned to the interface \u2013 <code>192.168.122.197\/24<\/code> and the secondary IP we assigned <code>192.168.122.11\/24<\/code>.<\/p>\n\n\n\n<p>Confirm that you can access the server via a secondary IP address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>ssh 192.168.122.11 <\/strong><br> The authenticity of host '192.168.122.11 (192.168.122.11)' can't be established.<br> ECDSA key fingerprint is SHA256:5RuWUmEmb9WoXB6QSivSfvDj5DeaJrxT7N+GVTl\/TA8.<br> Are you sure you want to continue connecting (yes\/no)? <strong>yes<\/strong><br> Warning: Permanently added '192.168.122.11' (ECDSA) to the list of known hosts.<br> Activate the web console with: systemctl enable --now cockpit.socket<br> Last login: Sat Mar 23 11:03:35 2019 from 192.168.122.1<br> &#91;jmutai@rhel8 ~]$ <strong>ip ad | grep enp1s0<\/strong><br> 2: enp1s0:  mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>     inet 192.168.122.197\/24 brd 192.168.122.255 scope global dynamic noprefixroute enp1s0<br>     inet<strong> 192.168.122.11\/24<\/strong> brd 192.168.122.255 scope global secondary noprefixroute enp1s0:1<\/code><\/pre>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-0-color\">Add a Secondary IP address using nmcli<\/mark><\/strong><\/p>\n\n\n\n<p>The second method for those using the NetworkManager service is the nmcli command line tool. We will modify the same interface as shown earlier.<\/p>\n\n\n\n<p>Check existing network connection profiles.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>nmcli connection show <\/strong><br>NAME    UUID                                  TYPE      DEVICE <br>enp1s0  498869bb-0d88-4a4c-a83a-c491d1040b0b  ethernet  enp1s0 <\/code><\/pre>\n\n\n\n<p>Mark the interface if you want to add a secondary IP address and then modify its configuration.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nmcli con mod <strong>enp1s0<\/strong> <strong>+ipv4.addresses<\/strong> \"192.168.122.11\/24\"<\/code><\/pre>\n\n\n\n<p>The <code>+ipv4.addresses<\/code> an option is used to assign a secondary IP address.<\/p>\n\n\n\n<p>Reboot your server to confirm the secondary IP address.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p>Confirm secondary IP assignment.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>ip ad<\/strong><br> 1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000<br>     link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>     inet 127.0.0.1\/8 scope host lo<br>        valid_lft forever preferred_lft forever<br>     inet6 ::1\/128 scope host <br>        valid_lft forever preferred_lft forever<br> 2: <strong>enp1s0<\/strong>:  mtu 1500 qdisc fq_codel state UP group default qlen 1000<br>     link\/ether 52:54:00:8f:8c:86 brd ff:ff:ff:ff:ff:ff<br>     inet 192.168.122.197\/24 brd 192.168.122.255 scope global dynamic noprefixroute enp1s0<br>        valid_lft 3546sec preferred_lft 3546sec<br>     inet <strong>192.168.122.11\/24<\/strong> brd 192.168.122.255 scope global secondary noprefixroute enp1s0<br>        valid_lft forever preferred_lft forever<br>     inet6 fe80::4d61:1d19:14a4:a8dc\/64 scope link noprefixroute <br>        valid_lft forever preferred_lft forever<\/code><\/pre>\n\n\n\n<p>You have successfully added a secondary IP address to an interface on RHEL \/ CentOS 8 <a href=\"https:\/\/smartserverhost.com\/budget-dedicated-servers\" target=\"_blank\" rel=\"noreferrer noopener\">Linux server<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will explain how to add a secondary IP address to a network interface on redhat\/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to an REDHAT \/ CentOS network interface. This guide will<\/p>\n","protected":false},"author":1,"featured_media":30,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-29","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Add Secondary IP Address To CentOS\/ RedHat - SmartServerHost<\/title>\n<meta name=\"description\" content=\"add a secondary IP address to a network interface on RedHat \/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Secondary IP Address To CentOS\/ RedHat - SmartServerHost\" \/>\n<meta property=\"og:description\" content=\"add a secondary IP address to a network interface on RedHat \/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/\" \/>\n<meta property=\"og:site_name\" content=\"SmartServerHost\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/smartserverhost\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-29T21:15:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-07T23:45:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Adam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@smartserverhost\" \/>\n<meta name=\"twitter:site\" content=\"@smartserverhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/\"},\"author\":{\"name\":\"Adam\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#\\\/schema\\\/person\\\/ab21bff2d23cbbfbcd8065b41da2dcc6\"},\"headline\":\"How to Add Secondary IP Address To CentOS\\\/ RedHat\",\"datePublished\":\"2022-10-29T21:15:49+00:00\",\"dateModified\":\"2022-11-07T23:45:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/\"},\"wordCount\":270,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-configure-centos-network-settings.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/\",\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/\",\"name\":\"How to Add Secondary IP Address To CentOS\\\/ RedHat - SmartServerHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-configure-centos-network-settings.png\",\"datePublished\":\"2022-10-29T21:15:49+00:00\",\"dateModified\":\"2022-11-07T23:45:54+00:00\",\"description\":\"add a secondary IP address to a network interface on RedHat \\\/ CentOS 7\\\/8 server. There are different ways of adding a secondary IP address to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-configure-centos-network-settings.png\",\"contentUrl\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-configure-centos-network-settings.png\",\"width\":800,\"height\":400,\"caption\":\"How to Configure Centos in network settings\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/how-to-add-secondary-ip-address-to-centos-redhat\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Add Secondary IP Address To CentOS\\\/ RedHat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/\",\"name\":\"SmartServerHost\",\"description\":\"Reliable Network Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#organization\",\"name\":\"SmartServerHost\",\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/cropped-site_logo.webp\",\"contentUrl\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/cropped-site_logo.webp\",\"width\":263,\"height\":50,\"caption\":\"SmartServerHost\"},\"image\":{\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/smartserverhost\",\"https:\\\/\\\/x.com\\\/smartserverhost\",\"https:\\\/\\\/www.instagram.com\\\/smartserverhost\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/#\\\/schema\\\/person\\\/ab21bff2d23cbbfbcd8065b41da2dcc6\",\"name\":\"Adam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g\",\"caption\":\"Adam\"},\"sameAs\":[\"https:\\\/\\\/smartserverhost.com\\\/\"],\"url\":\"https:\\\/\\\/smartserverhost.com\\\/blog\\\/author\\\/samar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Add Secondary IP Address To CentOS\/ RedHat - SmartServerHost","description":"add a secondary IP address to a network interface on RedHat \/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to","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:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Secondary IP Address To CentOS\/ RedHat - SmartServerHost","og_description":"add a secondary IP address to a network interface on RedHat \/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to","og_url":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/","og_site_name":"SmartServerHost","article_publisher":"https:\/\/www.facebook.com\/smartserverhost","article_published_time":"2022-10-29T21:15:49+00:00","article_modified_time":"2022-11-07T23:45:54+00:00","og_image":[{"width":800,"height":400,"url":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png","type":"image\/png"}],"author":"Adam","twitter_card":"summary_large_image","twitter_creator":"@smartserverhost","twitter_site":"@smartserverhost","twitter_misc":{"Written by":"Adam","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#article","isPartOf":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/"},"author":{"name":"Adam","@id":"https:\/\/smartserverhost.com\/blog\/#\/schema\/person\/ab21bff2d23cbbfbcd8065b41da2dcc6"},"headline":"How to Add Secondary IP Address To CentOS\/ RedHat","datePublished":"2022-10-29T21:15:49+00:00","dateModified":"2022-11-07T23:45:54+00:00","mainEntityOfPage":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/"},"wordCount":270,"commentCount":0,"publisher":{"@id":"https:\/\/smartserverhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#primaryimage"},"thumbnailUrl":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/","url":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/","name":"How to Add Secondary IP Address To CentOS\/ RedHat - SmartServerHost","isPartOf":{"@id":"https:\/\/smartserverhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#primaryimage"},"image":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#primaryimage"},"thumbnailUrl":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png","datePublished":"2022-10-29T21:15:49+00:00","dateModified":"2022-11-07T23:45:54+00:00","description":"add a secondary IP address to a network interface on RedHat \/ CentOS 7\/8 server. There are different ways of adding a secondary IP address to","breadcrumb":{"@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#primaryimage","url":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png","contentUrl":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-configure-centos-network-settings.png","width":800,"height":400,"caption":"How to Configure Centos in network settings"},{"@type":"BreadcrumbList","@id":"https:\/\/smartserverhost.com\/blog\/how-to-add-secondary-ip-address-to-centos-redhat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smartserverhost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Add Secondary IP Address To CentOS\/ RedHat"}]},{"@type":"WebSite","@id":"https:\/\/smartserverhost.com\/blog\/#website","url":"https:\/\/smartserverhost.com\/blog\/","name":"SmartServerHost","description":"Reliable Network Solutions","publisher":{"@id":"https:\/\/smartserverhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smartserverhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/smartserverhost.com\/blog\/#organization","name":"SmartServerHost","url":"https:\/\/smartserverhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartserverhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/cropped-site_logo.webp","contentUrl":"https:\/\/smartserverhost.com\/blog\/wp-content\/uploads\/2022\/10\/cropped-site_logo.webp","width":263,"height":50,"caption":"SmartServerHost"},"image":{"@id":"https:\/\/smartserverhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/smartserverhost","https:\/\/x.com\/smartserverhost","https:\/\/www.instagram.com\/smartserverhost\/"]},{"@type":"Person","@id":"https:\/\/smartserverhost.com\/blog\/#\/schema\/person\/ab21bff2d23cbbfbcd8065b41da2dcc6","name":"Adam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/891734c8740f86e3c3ecdb7f0d3065fc76775a6c3b679c5be1d84a74d8cd3167?s=96&d=mm&r=g","caption":"Adam"},"sameAs":["https:\/\/smartserverhost.com\/"],"url":"https:\/\/smartserverhost.com\/blog\/author\/samar\/"}]}},"_links":{"self":[{"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":0,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/media\/30"}],"wp:attachment":[{"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartserverhost.com\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}