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":2596,"date":"2019-12-06T15:04:22","date_gmt":"2019-12-06T15:04:22","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2596"},"modified":"2019-12-06T18:53:31","modified_gmt":"2019-12-06T18:53:31","slug":"configuring-private-network","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/configuring-private-network\/","title":{"rendered":"Configuring Private Network"},"content":{"rendered":"

If you’re assigning a private network to an existing machine (or deploying your own operating system), you’ll need to configure the IP addresses on the private interface.<\/p>\n

The control panel will assign you an IP address, you should replace “10.99.0.200<\/code>” in the examples with that IP. Some configurations also require a MAC address, in which “01:23:45:67:89:ab<\/code>” will be mentioned. You’ll need to replace this with the MAC address of your private network adapter.<\/p>\n

In the AKLWEB HOST control panel, there are configuration examples generated for each of your VMs. These are located under the VM’s IPv4 settings, labeled “View our networking configuration tips and examples.<\/strong>“.<\/p>\n

The examples in this guide are for IPv4, however private network interfaces on AKLWEB HOST VMs support both IPv4 and IPv6.<\/p>\n

CentOS 6, CentOS 7<\/h3>\n

Populate\u00a0\/etc\/sysconfig\/network-scripts\/ifcfg-eth1<\/code>\u00a0with the following text.<\/p>\n

DEVICE=eth1\r\nONBOOT=yes\r\nNM_CONTROLLED=no\r\nBOOTPROTO=static\r\nIPADDR=10.99.0.200\r\nNETMASK=255.255.0.0\r\nIPV6INIT=no\r\nMTU=1450\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

ifup eth1\r\n<\/code><\/pre>\n

CentOS 8<\/h3>\n

Populate the\u00a0\/etc\/sysconfig\/network-scripts\/ifcfg-ens7<\/code>\u00a0file with the following text.<\/p>\n

TYPE=\"Ethernet\"\r\nDEVICE=\"ens7\"\r\nONBOOT=\"yes\"\r\nBOOTPROTO=\"none\"\r\nIPADDR=10.99.0.200\r\nPREFIX=16\r\nMTU=1450\r\n<\/code><\/pre>\n

Restart the connection, or reboot.<\/p>\n

nmcli con load \/etc\/sysconfig\/network-scripts\/ifcfg-ens7\r\nnmcli con up 'System ens7'\r\n<\/code><\/pre>\n

Debian 7, Debian 8<\/h3>\n

Add the following text to the\u00a0\/etc\/network\/interfaces<\/code>\u00a0file.<\/p>\n

auto eth1\r\niface eth1 inet static\r\n    address 10.99.0.200\r\n    netmask 255.255.0.0\r\n    mtu 1450\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

ifup eth1\r\n<\/code><\/pre>\n

Debian 9, Debian 10<\/h3>\n

Add the following text to the\u00a0\/etc\/network\/interfaces<\/code>\u00a0file.<\/p>\n

auto ens7\r\niface ens7 inet static\r\n    address 10.99.0.200\r\n    netmask 255.255.0.0\r\n    mtu 1450\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

ifup ens7\r\n<\/code><\/pre>\n

Fedora 24 – 28<\/h3>\n

Populate\u00a0\/etc\/sysconfig\/network-scripts\/ifcfg-ens7<\/code>\u00a0with the following text.<\/p>\n

DEVICE=ens7\r\nONBOOT=yes\r\nNM_CONTROLLED=no\r\nBOOTPROTO=static\r\nIPADDR=10.99.0.200\r\nNETMASK=255.255.0.0\r\nNOZEROCONF=yes\r\nIPV6INIT=no\r\nMTU=1450\r\n<\/code><\/pre>\n

Restart networking or reboot.<\/p>\n

systemctl restart network.service\r\n<\/code><\/pre>\n

Fedora 29 – 31<\/h3>\n

Run the following commands.<\/p>\n

nmcli con add con-name private-net ifname ens7 type ethernet ipv4.method 'manual' ipv4.addresses '10.99.0.200\/24' 802-3-ethernet.mtu 1450\r\nnmcli con up private-net\r\n<\/code><\/pre>\n

FreeBSD 10.x, FreeBSD 11.x, FreeBSD 12.x<\/h3>\n

Add the following line to the\u00a0\/etc\/rc.conf<\/code>\u00a0file.<\/p>\n

ifconfig_vtnet1=\"inet 10.99.0.200 netmask 255.255.0.0 mtu 1450\"\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

service netif start vtnet1\r\n<\/code><\/pre>\n

OpenBSD 6.x<\/h3>\n

Add the following lines to the\u00a0\/etc\/hostname.vio1<\/code>\u00a0file.<\/p>\n

inet 10.99.0.200 255.255.0.0\r\n!ifconfig vio1 mtu 1450\r\n<\/code><\/pre>\n

Reboot the system.<\/p>\n

reboot\r\n<\/code><\/pre>\n

Ubuntu 12.xx – Ubuntu 15.xx<\/h3>\n

Add the following lines to the\u00a0\/etc\/network\/interfaces<\/code>\u00a0file.<\/p>\n

auto eth1\r\niface eth1 inet static\r\n    address 10.99.0.200\r\n    netmask 255.255.0.0\r\n    mtu 1450\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

ifup eth1\r\n<\/code><\/pre>\n

Ubuntu 16.xx, Ubuntu 17.04<\/h3>\n

Add the following lines to the\u00a0\/etc\/network\/interfaces<\/code>\u00a0file.<\/p>\n

auto ens7\r\niface ens7 inet static\r\n    address 10.99.0.200\r\n    netmask 255.255.0.0\r\n    mtu 1450\r\n<\/code><\/pre>\n

Start the interface or reboot.<\/p>\n

ifup ens7\r\n<\/code><\/pre>\n

Ubuntu 17.10, Ubuntu 18.xx, Ubuntu 19.xx<\/h3>\n

Populate\u00a0\/etc\/netplan\/10-ens7.yaml<\/code>\u00a0with the following text.<\/p>\n

network:\r\n  version: 2\r\n  renderer: networkd\r\n  ethernets:\r\n    ens7:\r\n      match:\r\n        macaddress: 01:23:45:67:89:ab\r\n      mtu: 1450\r\n      dhcp4: no\r\n      addresses: [10.99.0.200\/16]\r\n<\/code><\/pre>\n

Update networking or reboot.<\/p>\n

netplan apply\r\n<\/code><\/pre>\n

Windows Server 2012 R2, Windows Server 2016<\/h3>\n

Find the private interface name on your system. You can use\u00a0ipconfig \/all<\/code>\u00a0or navigate the Windows Control Panel.<\/p>\n

Replace “Ethernet 2<\/code>” with the private interface name that Windows has chosen and run the following command.<\/p>\n

netsh interface ip set address name=\"Ethernet 2\" static 10.99.0.200 255.255.0.0 0.0.0.0 1<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,244,248],"manual_kb_tag":[364],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2596"}],"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=2596"}],"version-history":[{"count":2,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2596\/revisions"}],"predecessor-version":[{"id":2617,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2596\/revisions\/2617"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2596"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2596"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}