Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2154,"date":"2019-11-26T06:29:45","date_gmt":"2019-11-26T06:29:45","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2154"},"modified":"2019-12-06T23:56:52","modified_gmt":"2019-12-06T23:56:52","slug":"add-a-secondary-ipv4-address-to-your-vps","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/add-a-secondary-ipv4-address-to-your-vps\/","title":{"rendered":"Add a Secondary IPv4 Address to Your VPS"},"content":{"rendered":"This tutorial explains how to\u00a0setup an additional IPv4 address<\/strong>\u00a0on your AKLWEB HOST VPS. We will assume the following:<\/p>\n\n- The\u00a0Main IP Address<\/strong>\u00a0of your VPS is\u00a0
1.2.3.4<\/code>.<\/li>\n- You have purchased an additional IP address through the\u00a0AKLWEB HOST control panel, and you were assigned\u00a0
1.2.3.5<\/code>.<\/li>\n<\/ul>\nAfter purchasing an additional IPv4 address you\u00a0must<\/strong>\u00a0restart the VPS using the\u00a0“Server Restart”<\/strong>\u00a0feature from within the\u00a0AKLWEB HOST<\/strong>\u00a0control panel. This must be done regardless of the installed operating system.<\/p>\nEach example below will configure the secondary IP address to become automatically available, and remain configured even after your server is rebooted. You can test if the IP address is configured by pinging it with the\u00a0ping<\/code>\u00a0utility on your client computer.<\/p>\nWindows Server 2012<\/strong><\/h3>\nThe main\u00a0IPv4<\/strong>\u00a0address must be configured manually before adding another\u00a0IPv4<\/strong>\u00a0address.<\/p>\nTo configure the main\u00a0IPv4<\/strong>\u00a0manually:<\/p>\n\n- Open a Command Prompt<\/strong>\u00a0(
cmd.exe<\/code>).<\/li>\n- Type:\u00a0
ipconfig \/all<\/code><\/li>\n- There will be a page or two of output. Find the page that has information about your primary ethernet adapter, which is typically “Ethernet adapter Ethernet 2”. Write down the values for\u00a0IPv4 Address<\/strong>,\u00a0Subnet Mask<\/strong>,\u00a0Default Gateway<\/strong>, and\u00a0DNS Servers<\/strong>.\n
Ethernet adapter Ethernet 2:\r\n\r\n Connection-specific DNS Suffix . :\r\n Physical Address. . . . . . . . . : 00-00-00-00-00-00\r\n DHCP Enabled. . . . . . . . . . . : No\r\n Autoconfiguration Enabled . . . . : Yes\r\n IPv4 Address. . . . . . . . . . . : 1.2.3.4(Preferred)\r\n Subnet Mask . . . . . . . . . . . : 255.255.254.0\r\n Default Gateway . . . . . . . . . : 1.2.3.1\r\n DNS Servers . . . . . . . . . . . : 108.61.10.10\r\n NetBIOS over Tcpip. . . . . . . . : Enabled\r\n<\/code><\/pre>\n<\/li>\n- Open the windows control panel. You can access it from the start menu.<\/li>\n
- Click\u00a0“Network and Internet”<\/strong>.<\/li>\n
- Click\u00a0“Network and Sharing Center”<\/strong>.<\/li>\n
- Click\u00a0“Change adapter settings”<\/strong>.<\/li>\n
- Right click on the primary ethernet adapter, and click\u00a0“Properties”<\/strong>. The “Ethernet Properties” window will open.<\/li>\n
- Select\u00a0“Internet Protocol Version 4 (TCP\/IPv4)”<\/strong>, then click the\u00a0“Properties”<\/strong>\u00a0button. The\u00a0“Internet Protocol Version 4 (TCP\/IPv4) Properties”<\/strong>\u00a0window will open.<\/li>\n
- Check the box that reads\u00a0“Use the following IP address:”<\/strong>. Populate the fields beneath it with the values you wrote down earlier.<\/li>\n
- Check the box that reads\u00a0“Use the following DNS server addresses:”<\/strong>. Populate the fields beneath it with the values you wrote down earlier. If you only have one DNS server, leave\u00a0“Alternate DNS server”<\/strong>\u00a0empty.<\/li>\n
- Click\u00a0“OK”<\/strong>. Then click\u00a0“OK”<\/strong>\u00a0on the “Ethernet Properties” window. The main IPv4 has been configured manually. Note that it is normal for the connection to hiccup after pressing “OK”.<\/li>\n<\/ol>\n
Add secondary IPv4 using<\/strong>\u00a0cmd.exe<\/code>:<\/p>\n netsh interface ipv4 add address \"Ethernet\" 1.2.3.5 255.255.255.0\r\n<\/code><\/pre>\nAdd secondary IPv4 using a remote login:<\/strong><\/p>\n\n- Open the windows control panel. You can access it from the start menu.<\/li>\n
- Click\u00a0“Network and Internet”<\/strong>.<\/li>\n
- Click\u00a0“Network and Sharing Center”<\/strong>.<\/li>\n
- Click\u00a0“Change adapter settings”<\/strong>.<\/li>\n
- Right click on the primary ethernet adapter, and click “Properties”. The “Ethernet Properties” window will open.<\/li>\n
- Select\u00a0“Internet Protocol Version 4 (TCP\/IPv4)”<\/strong>, then click the “Properties” button. The\u00a0“Internet Protocol Version 4 (TCP\/IPv4) Properties”<\/strong>\u00a0window will open.<\/li>\n
- Click “Advanced…”. The “Advanced TCP\/IP Settings” window will open.<\/li>\n
- In the “IP addresses” group, click\u00a0“Add…”<\/strong>. The “TCP\/IP Address” window will open.<\/li>\n
- Fill in the “IP address” and “Subnet mask” boxes. Use “1.2.3.5” for the IP address and “255.255.255.0” as the subnet mask.<\/li>\n
- Click “Add”. The\u00a0“TCP\/IP Address”<\/strong>\u00a0window will close.<\/li>\n
- Click “OK” on the “Advanced TCP\/IP Settings” window. This window will close.<\/li>\n
- Click “OK” on the “Internet Protocol Version 4\u00a0(TCP\/IPv4)<\/strong>\u00a0Properties” window. This window will close.<\/li>\n
- Click “OK” on the “Ethernet Properties” window. This window will close, and your secondary IP address will be configured.<\/li>\n<\/ol>\n
CentOS 6<\/strong><\/h3>\n\n- Change the boot protocol from\u00a0“dhcp”<\/strong>\u00a0to\u00a0“static”<\/strong>\u00a0on eth0. If you are already using a static binding, you can skip this step. Otherwise, follow these directions:
\n\n\n- Open\u00a0
\/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/code>\u00a0in a text editor.<\/li>\n- Change\u00a0
BOOTPROTO=dhcp<\/code>\u00a0to\u00a0BOOTPROTO=static<\/code>.<\/li>\n- Add these lines at the end of the file. Substitute “
[mainip]<\/code>“, “[netmask]<\/code>“, and “[gateway]<\/code>” with the values from the “IPv4” tab on your\u00a0AKLWEB HOST control panel.\n IPADDR=[mainip]\r\n NETMASK=[netmask]\r\n GATEWAY=[gateway]\r\n<\/code><\/pre>\n<\/li>\n- Run\u00a0
ifup eth0<\/code>.<\/li>\n<\/ul>\n<\/blockquote>\n<\/li>\n- Create the file<\/strong>\u00a0
\/etc\/sysconfig\/network-scripts\/ifcfg-eth0:1<\/code>.<\/li>\n- Populate the file with the following contents:<\/strong>\n
DEVICE=eth0:1\r\nBOOTPROTO=static\r\nIPADDR=1.2.3.5\r\nONBOOT=yes\r\n<\/code><\/pre>\n<\/li>\n- Activate the alias with the following command:<\/strong>\n
ifup eth0:1\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\nUbuntu<\/strong><\/h3>\n\n- Determine the name of your ethernet device. In this example, we’ll use<\/strong>\u00a0
eth0<\/code>.\nip link show\r\n<\/code><\/pre>\n<\/li>\n- Add the following lines in<\/strong>\u00a0
\/etc\/network\/interfaces<\/code>:\nauto eth0:0\r\niface eth0:0 inet static\r\naddress 1.2.3.5\r\nnetmask 255.255.255.0\r\n<\/code><\/pre>\n<\/li>\n- Activate the alias with the following command:<\/strong>\n
ifup eth0:0\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\nUbuntu 16.x<\/strong><\/h3>\n\n- Determine the name of your ethernet device. In this example, we’ll use<\/strong>\u00a0
ens0<\/code>.\nip link show\r\n<\/code><\/pre>\n<\/li>\n- Add the following lines in<\/strong>\u00a0
\/etc\/network\/interfaces<\/code>:\nauto ens3:0\r\niface ens3:0 inet static\r\naddress 1.2.3.5\r\nnetmask 255.255.255.0\r\n<\/code><\/pre>\n<\/li>\n- Activate the alias with the following command:<\/strong>\n
ifup ens3:0\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\nPlease note: You need to make sure your interface name matches that of the example: e.g.\u00a0eth0<\/code>,\u00a0ens3<\/code>\u00a0etc… and make sure to modify the example configuration to use the correct interface name and IPs.<\/em><\/p>\nFreeBSD 10<\/strong><\/h3>\n\n- Add the following lines in<\/strong>\u00a0
\/etc\/rc.conf<\/code>:\nifconfig_vtnet0_alias0=\"1.2.3.5 netmask 255.255.255.0\"\r\n<\/code><\/pre>\n<\/li>\n- Run the following command to restart networking:<\/strong>\n
\/etc\/rc.d\/netif restart && \/etc\/rc.d\/routing restart<\/code><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[108,244],"manual_kb_tag":[137],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2154"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2154"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2154\/revisions"}],"predecessor-version":[{"id":2155,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2154\/revisions\/2155"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2154"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2154"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}