{"id":2663,"date":"2015-11-12T22:58:23","date_gmt":"2015-11-12T22:58:23","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=2663"},"modified":"2024-12-13T13:59:35","modified_gmt":"2024-12-13T10:59:35","slug":"network-ip-aliasing","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/network-ip-aliasing\/","title":{"rendered":"Configuring IP aliasing"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"caps\">IP<\/span> aliasing is a special network configuration for your dedicated servers you to associate multiple <span class=\"caps\">IP<\/span>\u00a0addresses with a single network<span class=\"widont\">\u00a0<\/span>interface.<\/span><!--more--><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">The following sections contain the configurations for the most commonly used distributions\/operating<span class=\"widont\">\u00a0<\/span>systems.<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">Concerning current distributions, please note that the proper procedure to configure your network interface may be subject to change. We recommend to consult the manuals and knowledge resources of the respective\u00a0<span class=\"caps\">OS<\/span>\u00a0versions if you experience any issues<\/span><\/strong><\/pre>\n<h4 id=\"debian-678-and-derivatives\"><span style=\"font-family: Ubuntu, sans-serif;\">Debian 6\/7\/8 and<span class=\"widont\">\u00a0<\/span>derivatives<\/span><\/h4>\n<h5 id=\"step-1-create-a-backup\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/network\/interfaces \/etc\/network\/interfaces.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">Note that the names of the network interfaces in our examples may differ from your own. Please adjust to your appropriate interface names.<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You can now modify the config<span class=\"widont\">\u00a0<\/span>file:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano\u00a0\/etc\/network\/interfaces<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You then need to add a secondary<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">auto eth0:0\niface eth0:0 inet static\naddress ADDITIONAL_IP\nnetmask 255.255.255.255<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">To ensure that the secondary interface is enabled or disabled whenever the\u00a0<strong>eth0<\/strong> interface is enabled or disabled, you need to add the following line to the <strong>eth0<\/strong> configuration:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># post-up \/sbin\/ifconfig eth0:0 ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP\n# pre-down \/sbin\/ifconfig eth0:0 down<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">If you have two additional IPs to configure, the <em><strong>\/etc\/network\/interfaces<\/strong><\/em> file should look like<span class=\"widont\">\u00a0<\/span>this:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">auto eth0\niface eth0 inet static\naddress SERVER_IP\nnetmask 255.255.255.0\nbroadcast xxx.xxx.xxx.255\ngateway xxx.xxx.xxx.254\n\nauto eth0:0\niface eth0:0 inet static\naddress ADDITIONAL_IP 1\nnetmask 255.255.255.255\n\nauto eth0:1\niface eth0:1 inet static\naddress ADDITIONAL_IP 2\nnetmask 255.255.255.255<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Or like this:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">auto eth0\niface eth0 inet static\naddress SERVER_IP\nnetmask 255.255.255.0\nbroadcast xxx.xxx.xxx.255\ngateway xxx.xxx.xxx.254\n\n<span class=\"c1\"># ADDITIONAL_IP 1<\/span>\npost-up \/sbin\/ifconfig eth0:0 FAILOVER_IP1 netmask 255.255.255.255 broadcast ADDITIONAL_IP 1\npre-down \/sbin\/ifconfig eth0:0 down\n\n<span class=\"c1\"># ADDITIONAL_IP 2<\/span>\npost-up \/sbin\/ifconfig eth0:1 FAILOVER_IP2 netmask 255.255.255.255 broadcast ADDITIONAL_IP<span class=\"c1\"> 2<\/span>\npre-down \/sbin\/ifconfig eth0:1 down<\/span><\/strong><\/pre>\n<h5 id=\"step-3-restart-the-interface\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># \/etc\/init.d\/networking restart<\/span><\/strong><\/pre>\n<h4 id=\"debian-9-ubuntu-1704-fedora-26-and-arch-linux_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Debian 9+, Ubuntu 17.04, Fedora 26+ and Arch<span class=\"widont\">\u00a0<\/span>Linux<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">On these distributions, the naming of interfaces as eth0, eth1 (and so on) is abolished. We will therefore use\u00a0<strong>systemd-network<\/strong>\u00a0more generally.<\/span><\/p>\n<h5 id=\"step-1-create-a-backup_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/systemd\/network\/50-default.network \/etc\/systemd\/network\/50-default.network.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You can now add your additional <span class=\"caps\">IP<\/span>\u00a0to the config file, as<span class=\"widont\">\u00a0<\/span>follows:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/systemd\/network\/50-default.network<\/span><\/strong><\/pre>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"o\">[<\/span>Address<span class=\"o\">]<\/span>\n<span class=\"nv\">Address<\/span><span class=\"o\">=ADDITIONAL_IP<\/span>\/32\n<span class=\"nv\">Label<\/span><span class=\"o\">=ADDITIONAL_IP<\/span> <span class=\"c1\"># optional<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">The label is optional. It\u2019s just for distinguishing between your various additional<span class=\"widont\">\u00a0<\/span>IPs.<\/span><\/p>\n<h5 id=\"step-3-restart-the-interface_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># systemctl restart systemd-networkd<\/span><\/strong><\/pre>\n<h4 id=\"ubuntu-1710-and-following_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Ubuntu 17.10 and<span class=\"widont\">\u00a0<\/span>following<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Each additional <span class=\"caps\">IP<\/span>\u00a0address will need its own line in the configuration file. The configuration file is called <strong>\u201c50-cloud-init.yaml\u201d<\/strong> and is located in<span class=\"widont\">\u00a0<\/span><em><strong>\/etc\/netplan<\/strong><\/em>.<\/span><\/p>\n<h5 id=\"step-1-determine-the-interface\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Determine the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ifconfig<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Note the interface name and its\u00a0<span class=\"caps\">MAC<\/span><span class=\"widont\">\u00a0<\/span>address.<\/span><\/p>\n<h5><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Create the configuration<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Connect to your server via\u00a0<span class=\"caps\">SSH<\/span>\u00a0and run the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano\u00a0\/etc\/netplan\/50-cloud-init.yaml<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, edit the file with the content below, replacing <strong>INTERFACE_NAME<\/strong> <strong>MAC_ADDRESS<\/strong> and <strong>ADDITIONAL_IP<\/strong>:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">network:\n    version: 2\n    ethernets:\n        INTERFACE_NAME:\n            dhcp4: <span class=\"nb\">true<\/span>\n            match:\n                macaddress: MAC_ADDRESS\n            set-name: INTERFACE_NAME\n            addresses:\n            - ADDITIONAL_IP\/32<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the file. You can test the configuration with the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># netplan try<\/span><\/strong><\/pre>\n<h5 id=\"step-3-apply-the-change\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Apply the<span class=\"widont\">\u00a0<\/span>change<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, run the following commands to apply the<span class=\"widont\">\u00a0<\/span>configuration:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># netplan apply<\/span><\/strong><\/pre>\n<h4 id=\"centos-and-fedora-25-and-earlier_1\"><span style=\"font-family: Ubuntu, sans-serif;\">CentOS and Fedora (25 and<span class=\"widont\">\u00a0<\/span>earlier)<\/span><\/h4>\n<h5 id=\"step-1-create-the-config-file\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the source file so that you can use it as a<span class=\"widont\">\u00a0<\/span>template:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0:0<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file_2\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You can now modify the <strong>eth0:0<\/strong> file in order to replace the<span class=\"widont\">\u00a0<\/span><span class=\"caps\">IP<\/span>:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/sysconfig\/network-scripts\/ifcfg-eth0:0<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, replace the name of the\u00a0<strong>device<\/strong>, then replace the existing\u00a0<span class=\"caps\">IP<\/span> with the additional <span class=\"caps\">IP<\/span>\u00a0you have<span class=\"widont\">\u00a0<\/span>received:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">DEVICE<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"eth0:0\"<\/span>\n<span class=\"nv\">ONBOOT<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"yes\"<\/span>\n<span class=\"nv\">BOOTPROTO<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"none\"<\/span> <span class=\"c1\"># For CentOS use \"static\"<\/span>\n<span class=\"nv\">IPADDR<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"ADDITIONAL_IP\"<\/span>\n<span class=\"nv\">NETMASK<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"255.255.255.255\"<\/span>\n<span class=\"nv\">BROADCAST<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"ADDITIONAL_IP\"<\/span><\/span><\/strong><\/pre>\n<h5 id=\"step-3-start-the-alias-interface\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Start the alias<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to start your alias<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ifup eth0:0<\/span><\/strong><\/pre>\n<h4 id=\"gentoo_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Gentoo<\/span><\/h4>\n<h5 id=\"step-1-create-a-backup_2\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/conf.d\/net \/etc\/conf.d\/net.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file_3\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Now you have to edit the file to add the additional <span class=\"caps\">IP<\/span>. In Gentoo, an alias is added directly in the <strong>eth0<\/strong> interface. You do not need to create an <strong>eth0:0<\/strong> interface like in other<span class=\"widont\">\u00a0<\/span>distributions.<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">The server\u2019s default\u00a0<span class=\"caps\">IP<\/span> and config_eth0=\u00a0 should stay on the same line.<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">All you need to do is add a line break after the netmask\u00a0<strong>255.255.255.0<\/strong> and add your additional <span class=\"caps\">IP<\/span>\u00a0(SERVER_IP must be replaced by your server\u2019s primary<span class=\"widont\">\u00a0<\/span><span class=\"caps\">IP<\/span>).<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/conf.d\/net<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You therefore need to add the<span class=\"widont\">\u00a0<\/span>following:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">config_eth0<\/span><span class=\"o\">=(<\/span> <span class=\"s2\">\"SERVER_IP netmask 255.255.255.0\"<\/span> <span class=\"s2\">\"ADDITIONAL_IP netmask 255.255.255.255 brd ADDITIONAL_IP\"<\/span> <span class=\"o\">)<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">The\u00a0<em><strong>\/etc\/conf.d\/ <\/strong><\/em>net\u00a0file must contain the\u00a0following:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"c1\">#This blank configuration will automatically use DHCP for any net.<\/span>\n<span class=\"c1\"># scripts in \/etc\/init.d. To create a more complete configuration,<\/span>\n<span class=\"c1\"># please review \/etc\/conf.d\/net.example and save your configuration<\/span>\n<span class=\"c1\"># in \/etc\/conf.d\/net (this file :]!).<\/span>\n<span class=\"nv\">config_eth0<\/span><span class=\"o\">=(<\/span> <span class=\"s2\">\"SERVER_IP netmask 255.255.255.0\"<\/span>\n<span class=\"s2\">\"ADDITIONAL_IP netmask 255.255.255.255 brd ADDITIONAL_IP\"<\/span> <span class=\"o\">)<\/span>\n<span class=\"nv\">routes_eth0<\/span><span class=\"o\">=(<\/span> <span class=\"s2\">\"default gw SERVER_IP.254\"<\/span> <span class=\"o\">)<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In order to ping your additional <span class=\"caps\">IP<\/span>, simply restart the network<span class=\"widont\">\u00a0<\/span>interface.<\/span><\/p>\n<h5 id=\"step-3-restart-the-interface_2\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># \/etc\/init.d\/net.eth0 restart<\/span><\/strong><\/pre>\n<h4 id=\"opensuse_1\"><span style=\"font-family: Ubuntu, sans-serif;\">openSUSE<\/span><\/h4>\n<h5 id=\"step-1-create-a-backup_3\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/sysconfig\/network\/ifcfg-ens32 \/etc\/sysconfig\/network\/ifcfg-ens32.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file_4\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open the file:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/sysconfig\/network\/ifcfg-ens32<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Then add the<span class=\"widont\">\u00a0<\/span>following:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">IPADDR_1<\/span><span class=\"o\">=ADDITIONAL_IP<\/span>\n<span class=\"nv\">NETMASK_1<\/span><span class=\"o\">=<\/span>255.255.255.255\n<span class=\"nv\">LABEL_1<\/span><span class=\"o\">=<\/span>ens32:0<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Finally, reboot your server to apply the<span class=\"widont\">\u00a0<\/span>changes.<\/span><\/p>\n<h4 id=\"cpanel-on-centos-6_1\"><span style=\"font-family: Ubuntu, sans-serif;\">cPanel (on CentOS<span class=\"widont\">\u00a0<\/span>6)<\/span><\/h4>\n<h5 id=\"step-1-create-a-backup_4\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/ips \/etc\/ips.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-2-edit-the-config-file_5\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You then need to edit the<em><strong> \/etc\/ips<\/strong><\/em>\u00a0file:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano editor \/etc\/ips<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Then add the additional <span class=\"caps\">IP<\/span>\u00a0to the<span class=\"widont\">\u00a0<\/span>file:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">ADDITIONAL_IP:255.255.255.255:ADDITIONAL_IP<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, add the\u00a0IP\u00a0in <em><strong>\/etc\/ipaddrpool:<\/strong><\/em><\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">ADDITIONAL_IP<\/span><\/strong><\/pre>\n<h5 id=\"step-3-restart-the-interface_3\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># \/etc\/init.d\/ipaliases restart<\/span><\/strong><\/pre>\n<h4 id=\"windows-servers_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Windows Servers<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Windows servers are often\u00a0<span class=\"caps\">DHCP<\/span>-enabled in the network configuration. If you have already set up a additional <span class=\"caps\">IP<\/span>\u00a0or switched your configuration to a fixed\u00a0<span class=\"caps\">IP<\/span>, go directly to the next<span class=\"widont\">\u00a0<\/span>step.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Otherwise, you need to first switch from a network-level\u00a0<span class=\"caps\">DHCP<\/span>\u00a0configuration to a fixed\u00a0<span class=\"caps\">IP<\/span><span class=\"widont\">\u00a0<\/span>configuration.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open the command prompt\u00a0<strong>cmd<\/strong>\u00a0or\u00a0<strong>powershell<\/strong>, then type the following\u00a0command:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">ipconfig \/all<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">This will return a result similar to the following<span class=\"widont\">\u00a0<\/span>example:<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8421\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-34-43.png\" alt=\"Configuring IP aliasing - Image 1\" width=\"642\" height=\"222\" \/ title=\"Configuring IP aliasing - Image 1\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Identify and write down your IPv4, subnet mask, default gateway and the name of the network interface controller (network<span class=\"widont\">\u00a0<\/span>adapter).<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In our example, the server\u00a0<span class=\"caps\">IP<\/span>\u00a0is\u00a0<strong>94.23.229.151<\/strong>.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You can perform the next steps via either a command-line interface or the graphical user<span class=\"widont\">\u00a0<\/span>interface.<\/span><\/p>\n<h5 id=\"via-a-command-line-interface-recommended\"><span style=\"font-family: Ubuntu, sans-serif;\">Via a command-line interface<span class=\"widont\">\u00a0<\/span>(recommended)<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In the commands below, you need to<span class=\"widont\">\u00a0<\/span>replace:<\/span><\/p>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Command<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>Value<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">NETWORK_ADAPTER<\/td><td class=\"has-text-align-center\" data-align=\"center\">Name of the network adapter (in our example: Local Area Connection)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">IP_ADDRESS<\/td><td class=\"has-text-align-center\" data-align=\"center\">Server IP address (in our example: 94.23.229.151)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">SUBNET_MASK<\/td><td class=\"has-text-align-center\" data-align=\"center\">Subnet mask (in our example: 255.255.255.0)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">GATEWAY<\/td><td class=\"has-text-align-center\" data-align=\"center\">Default gateway (in our example: 94.23.229.254)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">ADDITIONAL_IP<\/td><td class=\"has-text-align-center\" data-align=\"center\">Address IP you want to add<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">Be careful \u2013 the server will no longer be accessible if you enter incorrect information. You will then have to make the corrections in Winrescue mode or via the\u00a0<span class=\"caps\">KVM<\/span>.<\/span><\/strong><\/pre>\n<h5><span style=\"font-family: Ubuntu, sans-serif;\">In the command<span class=\"widont\">\u00a0<\/span>prompt<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Switch to a fixed\u00a0IP:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">netsh interface ipv4 <span class=\"nb\">set<\/span> address <span class=\"nv\">name<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"NETWORK_ADAPTER\"<\/span> static IP_ADDRESS SUBNET_MASK GATEWAY<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Set the\u00a0<span class=\"caps\">DNS<\/span><span class=\"widont\">\u00a0<\/span>server:<br \/><\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">netsh interface ipv4 <span class=\"nb\">set<\/span> dns <span class=\"nv\">name<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"NETWORK_ADAPTER\"<\/span> static 213.186.33.99<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Add additional <span class=\"widont\">\u00a0<\/span><span class=\"caps\">IP:<\/span><\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">netsh interface ipv4 add address <span class=\"s2\">\"NETWORK_ADAPTER\"<\/span> ADDITIONAL_IP 255.255.255.255<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Your additional <span class=\"caps\">IP<\/span>\u00a0is now<span class=\"widont\">\u00a0<\/span>functional.<\/span><\/p>\n<h5 id=\"via-the-graphical-user-interface\"><span style=\"font-family: Ubuntu, sans-serif;\">Via the graphical user<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<ol>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Go to\u00a0<strong>Start <\/strong>&gt;\u00a0<strong>Control Panel <\/strong>&gt; <strong>Network and Internet <\/strong>&gt;\u00a0<strong>Network and Sharing Centre <\/strong>&gt;\u00a0<strong>Change Adapter Settings<\/strong>(in the left-hand\u00a0menu).<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Right-click on\u00a0<strong>Local Area Connection<\/strong>.<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Click on\u00a0<strong>Properties<\/strong>.<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Select\u00a0<strong>Internet Protocol Version 4 (TCP\/IPv4<\/strong>), then click on\u00a0<strong>Properties<\/strong>.<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">Click on\u00a0<strong>Use the following IP address<\/strong>\u00a0and type in your server\u2019s primary\u00a0IP, subnet mask and default gateway information obtained by using the\u00a0<strong>ipconfig<\/strong>\u00a0command above. In the <strong>\u201cPreferred\u00a0DNS\u00a0Server\u201d<\/strong> box, type\u00a0213.186.33.99.<\/span><\/li>\n<\/ol>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8436\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-53-38.png\" alt=\"Configuring IP aliasing - Image 2\" width=\"399\" height=\"442\" \/ title=\"Configuring IP aliasing - Image 2\"><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">Be careful \u2013 the server will no longer be accessible if you enter incorrect information. You will then have to make the corrections in Winrescue mode or via the\u00a0<span class=\"caps\">KVM<\/span>.<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Then click on\u00a0<strong>Advanced<\/strong>\u00a0(still in the<strong>\u00a0TCP\/IP Settings<\/strong>).<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8439\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-54-55.png\" alt=\"Configuring IP aliasing - Image 3\" width=\"400\" height=\"443\" \/ title=\"Configuring IP aliasing - Image 3\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In the\u00a0<strong>IP Address<\/strong>\u00a0section, click\u00a0<strong>Add<\/strong>:<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8441\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-56-33.png\" alt=\"Configuring IP aliasing - Image 4\" width=\"402\" height=\"482\" \/ title=\"Configuring IP aliasing - Image 4\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Type in your additional <span class=\"caps\">IP<\/span>\u00a0and the subnet mask\u00a0<strong>255.255.255.255:<\/strong><\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8443\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-57-34.png\" alt=\"Configuring IP aliasing - Image 5\" width=\"320\" height=\"138\" \/ title=\"Configuring IP aliasing - Image 5\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Click on\u00a0<strong>Add<\/strong>.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Your additional <span class=\"caps\">IP<\/span>\u00a0is now<span class=\"widont\">\u00a0<\/span>functional.<\/span><\/p>\n<h4 id=\"freebsd_1\"><span style=\"font-family: Ubuntu, sans-serif;\">FreeBSD<\/span><\/h4>\n<h5 id=\"step-1-determine-the-interface_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Determine the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Determine the name of your primary network interface. You can use the\u00a0<strong>ifconfig<\/strong>\u00a0command for this\u00a0operation:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ifconfig<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">This will return the<span class=\"widont\">\u00a0<\/span>following:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">ifconfig\n&gt;&gt;&gt; nfe0: <span class=\"nv\">flags<\/span><span class=\"o\">=<\/span><span class=\"m\">8843<\/span> metric <span class=\"m\">0<\/span> mtu 1500\n&gt;&gt;&gt; <span class=\"nv\">options<\/span><span class=\"o\">=<\/span>10b\n&gt;&gt;&gt; ether 00:24:8c:d7:ba:11\n&gt;&gt;&gt; inet 94.23.196.18 netmask 0xffffff00 broadcast 94.23.196.255\n&gt;&gt;&gt; inet 87.98.129.74 netmask 0xffffffff broadcast 87.98.129.74\n&gt;&gt;&gt; media: Ethernet autoselect <span class=\"o\">(<\/span>100baseTX <span class=\"o\">)<\/span>\n&gt;&gt;&gt; status: active\n&gt;&gt;&gt; lo0: <span class=\"nv\">flags<\/span><span class=\"o\">=<\/span><span class=\"m\">8049<\/span> metric <span class=\"m\">0<\/span> mtu 16384\n&gt;&gt;&gt; <span class=\"nv\">options<\/span><span class=\"o\">=<\/span>3\n&gt;&gt;&gt; inet6 fe80::1%lo0 prefixlen <span class=\"m\">64<\/span> scopeid 0x2\n&gt;&gt;&gt; inet6 ::1 prefixlen 128\n&gt;&gt;&gt; inet 127.0.0.1 netmask 0xff000000 v comsdvt#<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In our example, the name of the interface is therefore\u00a0<strong>nfe0<\/strong>.<\/span><\/p>\n<h5 id=\"step-2-create-a-backup\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Create a<span class=\"widont\">\u00a0<\/span>backup<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, make a copy of the config file, so that you can revert at any<span class=\"widont\">\u00a0<\/span>time:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/rc.conf \/etc\/rc.conf.bak<\/span><\/strong><\/pre>\n<h5 id=\"step-3-edit-the-config-file\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Edit the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Edit the <em><strong>\/etc\/rc.conf<\/strong><\/em><span class=\"widont\">\u00a0<\/span>file:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/rc.conf<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Then add this line at the end of the file:<strong>\u00a0ifconfig_INTERFACE_alias0=&#8221;inet ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP&#8221;.<\/strong><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Replace\u00a0<strong>INTERFACE<\/strong> and <strong>ADDITIONAL_IP<\/strong> with the name of your interface (identified in the first step) and your additional IP, respectively. Here is an\u00a0example:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\"># ifconfig_nfe0_alias0<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"inet 87.98.129.74 netmask 255.255.255.255 broadcast 87.98.129.74\"<\/span><\/span><\/strong><\/pre>\n<h5 id=\"step-4-restart-the-interface\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 4 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># \/etc\/rc.d\/netif restart <span class=\"o\">&amp;&amp;<\/span> \/etc\/rc.d\/routing restart<\/span><\/strong><\/pre>\n<h4 id=\"solaris_1\"><span style=\"font-family: Ubuntu, sans-serif;\">Solaris<\/span><\/h4>\n<h5 id=\"step-1-determine-the-interface_2\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 1 Determine the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Determine the name of your primary network interface. You can use the\u00a0<strong>ifconfig<\/strong>\u00a0command for this\u00a0operation:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ifconfig -a<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">This will return the<span class=\"widont\">\u00a0<\/span>following:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">ifconfig -a\nlo0:     <span class=\"nv\">flags<\/span><span class=\"o\">=<\/span><span class=\"m\">2001000849<\/span> mtu <span class=\"m\">8232<\/span> index <span class=\"m\">1<\/span> \n         inet 127.0.0.1 netmask ff000000 \ne1000g0: <span class=\"nv\">flags<\/span><span class=\"o\">=<\/span><span class=\"m\">1000843<\/span> mtu <span class=\"m\">1500<\/span> index <span class=\"m\">2<\/span> \n         inet 94.23.41.167 netmask ffffff00 broadcast 94.23.41.255 \n         ether 0:1c:c0:f2:be:42<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In our example, the name of the interface is therefore\u00a0<strong>e1000g0<\/strong>.<\/span><\/p>\n<h5 id=\"step-2-create-the-config-file\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 2 Create the config<span class=\"widont\">\u00a0<\/span>file<\/span><\/h5>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/hostname.e1000g0:1<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In this file, enter the following: <strong>ADDITIONAL_IP\/32<\/strong> up, where <strong>ADDITIONAL_IP<\/strong> is your additional IP. For\u00a0example:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">188.165.171.40\/32 up<\/span><\/strong><\/pre>\n<h5 id=\"step-3-restart-the-interface_4\"><span style=\"font-family: Ubuntu, sans-serif;\">Step 3 Restart the<span class=\"widont\">\u00a0<\/span>interface<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">You now need to restart your<span class=\"widont\">\u00a0<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># svcadm restart svc:\/network\/physical:default<\/span><\/strong><\/pre>\n<h4 id=\"troubleshooting\"><span style=\"font-family: Ubuntu, sans-serif;\">Troubleshooting<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">If you are unable to establish a connection from the public network to your alias\u00a0<span class=\"caps\">IP<\/span>\u00a0and suspect a network problem, please reboot the server in <strong>Rescue Mode<\/strong> and setup the alias directly on the<span class=\"widont\">\u00a0<\/span>server.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In order to do that, once you\u2019ve rebooted your server in<strong> Rescue Mode<\/strong>, please do the following<span class=\"widont\">\u00a0<\/span>command:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ifconfig eth0:0 ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP up<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Where you will replace <strong>ADDITIONAL_IP<\/strong> by the actual<span class=\"widont\"> additional <\/span><span class=\"caps\">IP.<\/span><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, simply ping your\u00a0additional IP\u00a0from the outside. If it works, it probably means that there is a configuration error that requires to be fixed. If, on the contrary, the\u00a0IP\u00a0is still not working, please inform our support team by creating a support request in your\u00a0<a href=\"https:\/\/my.unihost.com\/submitticket.php\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Client Area<\/em><\/a><\/span><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IP aliasing is a special network configuration for your dedicated servers you to associate multiple IP\u00a0addresses with a single network\u00a0interface.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[520,521],"class_list":["post-2663","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-dedicated-servers","tag-ip"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring IP aliasing - Unihost.FAQ<\/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:\/\/unihost.com\/help\/network-ip-aliasing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring IP aliasing - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"IP aliasing is a special network configuration for your dedicated servers you to associate multiple IP\u00a0addresses with a single network\u00a0interface.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-12T22:58:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-13T10:59:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Configuring IP aliasing\",\"datePublished\":\"2015-11-12T22:58:23+00:00\",\"dateModified\":\"2024-12-13T10:59:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\"},\"wordCount\":1270,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png\",\"keywords\":[\"dedicated servers\",\"IP\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\",\"url\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\",\"name\":\"Configuring IP aliasing - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png\",\"datePublished\":\"2015-11-12T22:58:23+00:00\",\"dateModified\":\"2024-12-13T10:59:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/network-ip-aliasing\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-34-43.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-34-43.png\",\"width\":642,\"height\":222},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/network-ip-aliasing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configuring IP aliasing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/#website\",\"url\":\"https:\/\/unihost.com\/help\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring IP aliasing - Unihost.FAQ","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:\/\/unihost.com\/help\/network-ip-aliasing\/","og_locale":"en_US","og_type":"article","og_title":"Configuring IP aliasing - Unihost.FAQ","og_description":"IP aliasing is a special network configuration for your dedicated servers you to associate multiple IP\u00a0addresses with a single network\u00a0interface.","og_url":"https:\/\/unihost.com\/help\/network-ip-aliasing\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2015-11-12T22:58:23+00:00","article_modified_time":"2024-12-13T10:59:35+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Configuring IP aliasing","datePublished":"2015-11-12T22:58:23+00:00","dateModified":"2024-12-13T10:59:35+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/"},"wordCount":1270,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png","keywords":["dedicated servers","IP"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/","url":"https:\/\/unihost.com\/help\/network-ip-aliasing\/","name":"Configuring IP aliasing - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-13-34-43.png","datePublished":"2015-11-12T22:58:23+00:00","dateModified":"2024-12-13T10:59:35+00:00","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/network-ip-aliasing\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-34-43.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-13-34-43.png","width":642,"height":222},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/network-ip-aliasing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"Configuring IP aliasing"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=2663"}],"version-history":[{"count":47,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2663\/revisions"}],"predecessor-version":[{"id":8454,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2663\/revisions\/8454"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=2663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=2663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=2663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}