{"id":2678,"date":"2015-12-09T18:39:16","date_gmt":"2015-12-09T15:39:16","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=2678"},"modified":"2023-01-19T13:46:42","modified_gmt":"2023-01-19T10:46:42","slug":"network-bridging","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/network-bridging\/","title":{"rendered":"Configuring a network bridge"},"content":{"rendered":"<p><span style=\"font-family: Ubuntu, sans-serif;\">This guide will show you how to use network bridging to configure internet access for your virtual<span class=\"widont\">&nbsp;<\/span>machines.<\/span><!--more--><\/p>\n<h4 id=\"requirements\"><span style=\"font-family: Ubuntu, sans-serif;\">Requirements<\/span><\/h4>\n<ul>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">a Dedicated Server with a hypervisor installed (e.g.&nbsp;VMware ESXi, Citrix Xen Server, Proxmox,&nbsp;etc.)<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">at least one additional&nbsp;IP address attached to the&nbsp;server<br><\/span><\/li>\n<\/ul>\n<h4 id=\"instructions\"><span style=\"font-family: Ubuntu, sans-serif;\">Instructions<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">For this example, we will use the following values in our code samples, which should be replaced with your own<span class=\"widont\">&nbsp;<\/span>values:<\/span><\/p>\n<ul>\n<li><span style=\"font-family: Ubuntu, sans-serif;\"><strong>SERVER_IP<\/strong> = The main&nbsp;<span class=\"caps\">IP<\/span>&nbsp;address of your<span class=\"widont\">&nbsp;<\/span>server<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\"><strong>ADDITIONAL_IP<\/strong> = The address of your additional<span class=\"widont\">&nbsp;<\/span><span class=\"caps\">IP<\/span><\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif;\"><strong>GATEWAY_IP<\/strong> = The address of your default<span class=\"widont\">&nbsp;<\/span>gateway<\/span><\/li>\n<\/ul>\n<h4 id=\"assign-a-virtual-mac-address\"><span style=\"font-family: Ubuntu, sans-serif;\">Assign a virtual&nbsp;<span class=\"caps\">MAC<\/span><span class=\"widont\">&nbsp;<\/span>address<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">To generate a Mac address, please send a request to our support team via <em><strong><a href=\"https:\/\/my.unihost.com\/submitticket.php\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Client Area Unihost<\/a><\/strong><\/em><\/span><\/p>\n<h4 id=\"determine-the-gateway-address\"><span style=\"font-family: Ubuntu, sans-serif;\">Determine the gateway<span class=\"widont\">&nbsp;<\/span>address<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">To configure your virtual machines for internet access, you will need to know the gateway of your host machine (i.e. your Dedicated Server). The gateway address is made up of the first three octets of your server\u2019s main&nbsp;<span class=\"caps\">IP<\/span>&nbsp;address, with 254 as the last octect. For example, if your server\u2019s main&nbsp;<span class=\"caps\">IP<\/span>&nbsp;address<span class=\"widont\">&nbsp;<\/span>is:<\/span><\/p>\n<ul>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">123.456.789.012<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Your gateway address would therefore<span class=\"widont\">&nbsp;<\/span>be:<\/span><\/p>\n<ul>\n<li><span style=\"font-family: Ubuntu, sans-serif;\">123.456.789.254<\/span><\/li>\n<\/ul>\n<h4 id=\"apply-the-configuration\"><span style=\"font-family: Ubuntu, sans-serif;\">Apply the configuration<\/span><\/h4>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">For all operating systems and distributions, you&nbsp;<span class=\"caps\">MUST<\/span>&nbsp;configure you virtual machine with the virtual&nbsp;<span class=\"caps\">MAC<\/span> address.<\/span><\/strong><\/pre>\n<h5 id=\"debian-and-debian-based-operating-systems-ubuntu-crunchbang-steamos-etc\"><span style=\"font-family: Ubuntu, sans-serif;\">Debian and Debian-based operating systems (Ubuntu, CrunchBang, SteamOS,<span class=\"widont\">&nbsp;<\/span>etc.)<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open up an&nbsp;<span class=\"caps\">SSH<\/span>&nbsp;connection to your virtual machine. Once connected, open the virtual machine\u2019s network configuration file, which is located in&nbsp;<em><strong>\/etc\/network\/interfaces<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">auto lo eth0\niface lo inet loopback\niface eth0 inet static\n    address ADDITIONAL_IP\n    netmask 255.255.255.255\n    broadcast ADDITIONAL_IP\n    post-up route add GATEWAY_IP dev eth0\n    post-up route add default gw GATEWAY_IP\n    pre-down route del GATEWAY_IP dev eth0\n    pre-down route del default gw GATEWAY_IP<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the file, then reboot the virtual<span class=\"widont\">&nbsp;<\/span>machine.<\/span><\/p>\n<h4 id=\"redhat-and-redhat-based-operating-systems-centos-6-scientific-linux-clearos-etc\"><span style=\"font-family: Ubuntu, sans-serif;\">Redhat and Redhat-based operating systems (CentOS 6, Scientific Linux, ClearOS,<span class=\"widont\">&nbsp;<\/span>etc.)<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open up an&nbsp;<span class=\"caps\">SSH<\/span>&nbsp;connection to your virtual machine. Once connected, open the virtual machine\u2019s network configuration file, which is located in&nbsp;<em><strong>\/etc\/network\/interfaces<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">DEVICE<\/span><span class=\"o\">=<\/span>eth0\n<span class=\"nv\">BOOTPROTO<\/span><span class=\"o\">=<\/span>none\n<span class=\"nv\">ONBOOT<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">USERCTL<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">IPV6INIT<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">PEERDNS<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">TYPE<\/span><span class=\"o\">=<\/span>Ethernet\n<span class=\"nv\">NETMASK<\/span><span class=\"o\">=<\/span>255.255.255.255\n<span class=\"nv\">IPADDR<\/span><span class=\"o\">=ADDITIONAL_IP<\/span>\n<span class=\"nv\">GATEWAY<\/span><span class=\"o\">=<\/span>GATEWAY_IP\n<span class=\"nv\">ARP<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">HWADDR<\/span><span class=\"o\">=<\/span>MY:VI:RT:UA:LM:AC<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Now, save and close the<span class=\"widont\">&nbsp;<\/span>file.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, open the virtual machine\u2019s routing file, which is located in&nbsp;<em><strong>\/etc\/sysconfig\/network-scripts\/route-eth0<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">GATEWAY_IP dev eth0\ndefault via GATEWAY_IP dev eth0<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the file, then reboot your virtual<span class=\"widont\">&nbsp;<\/span>machine.<\/span><\/p>\n<h5 id=\"centos-7\"><span style=\"font-family: Ubuntu, sans-serif;\">CentOS 7<\/span><\/h5>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">For CentOS 7, the name of the network adapter will vary, depending on the installation options. You will need to verify the adapter name and use it to configure your virtual machine. Use the command&nbsp;ipaddr&nbsp;to find your interface name.<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open up an&nbsp;SSH&nbsp;connection to your virtual machine. Once connected, open the virtual machine\u2019s network configuration file, which is located in<em><strong>&nbsp;\/etc\/sysconfig\/network-scripts\/ifcfg-(interface name)<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own&nbsp;values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">DEVICE<\/span><span class=\"o\">=(<\/span>insert interface Name<span class=\"o\">)<\/span>\n<span class=\"nv\">BOOTPROTO<\/span><span class=\"o\">=<\/span>none\n<span class=\"nv\">ONBOOT<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">USERCTL<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">IPV6INIT<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">PEERDNS<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">TYPE<\/span><span class=\"o\">=<\/span>Ethernet\n<span class=\"nv\">NETMASK<\/span><span class=\"o\">=<\/span>255.255.255.255\n<span class=\"nv\">IPADDR<\/span><span class=\"o\">=ADDITIONAL_IP<\/span>\n<span class=\"nv\">GATEWAY<\/span><span class=\"o\">=<\/span>GATEWAY_IP\n<span class=\"nv\">ARP<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">HWADDR<\/span><span class=\"o\">=<\/span>MY:VI:RT:UA:LM:AC<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the<span class=\"widont\">&nbsp;<\/span>file.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, open the virtual machine\u2019s routing file, which is located in&nbsp;<em><strong>\/etc\/sysconfig\/network-scripts\/route-(interface-name)<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own&nbsp;values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">GATEWAY_IP - 255.255.255.255 <span class=\"o\">(<\/span>insert interface Name<span class=\"o\">)<\/span>\nNETWORK_GW_VM - 255.255.255.0 <span class=\"o\">(<\/span>insert interface Name<span class=\"o\">)<\/span>\ndefault GATEWAY_IP<\/span><\/strong><\/pre>\n<h5 id=\"opensuse\"><span style=\"font-family: Ubuntu, sans-serif;\">OpenSUSE<\/span><\/h5>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open up an&nbsp;SSH&nbsp;connection to your virtual machine. Once connected, open the virtual machine\u2019s network configuration file, which is located in&nbsp;<em><strong>\/etc\/sysconfig\/network\/ifcfg-ens32<\/strong><\/em>. If the file doesn\u2019t exist, you\u2019ll have to create it. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own&nbsp;values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">DEVICE<\/span><span class=\"o\">=<\/span>ens32\n<span class=\"nv\">BOOTPROTO<\/span><span class=\"o\">=<\/span>static\n<span class=\"nv\">ONBOOT<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">ARP<\/span><span class=\"o\">=<\/span>yes\n<span class=\"nv\">USERCTL<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">IPV6INIT<\/span><span class=\"o\">=<\/span>no\n<span class=\"nv\">TYPE<\/span><span class=\"o\">=<\/span>Ethernet\n<span class=\"nv\">STARTMODE<\/span><span class=\"o\">=<\/span>auto\n<span class=\"nv\">IPADDR<\/span><span class=\"o\">=ADDITIONAL<\/span>_IP\n<span class=\"nv\">NETMASK<\/span><span class=\"o\">=<\/span>255.255.255.255\n<span class=\"nv\">GATEWAY<\/span><span class=\"o\">=<\/span>GATEWAY_IP\n<span class=\"nv\">HWADDR<\/span><span class=\"o\">=<\/span>MY:VI:RT:UA:LM:AC<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the<span class=\"widont\">&nbsp;<\/span>file.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, open the virtual machine\u2019s routing file, which is located in&nbsp;<em><strong>\/etc\/sysconfig\/network-scripts\/ifroute-ens32.<\/strong><\/em> If the file doesn\u2019t exist, you\u2019ll have to create it. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own&nbsp;values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">GATEWAY_IP - 255.255.255.255 ens32\nNETWORK_GW_VM - 255.255.255.0 ens32\ndefault GATEWAY_IP<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, open the virtual machine\u2019s&nbsp;DNS&nbsp;configuration file, which is located in&nbsp;<em><strong>\/etc\/sysconfig\/network\/resolv.conf<\/strong><\/em>. If the file doesn\u2019t exist, you\u2019ll have to create it. Edit the file so that it reflects the configuration&nbsp;below:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">nameserver 213.186.33.99 <span class=\"c1\"># OVH DNS Server<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the file, then reboot your virtual<span class=\"widont\">&nbsp;<\/span>machine.<\/span><\/p>\n<h4><span style=\"font-family: Ubuntu, sans-serif;\">Arch Linux<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Run the following command to determine the name of your virtual machine\u2019s network interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># ip link\n\n1: eno3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000\n    link\/ether ac:1f:6b:67:ce:a4 brd ff:ff:ff:ff:ff:ff<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">From the output above, we can see that the name of our network interface is&nbsp;<strong>eno3<\/strong>. This is for demonstration purposes. Your interface will likely have a different<span class=\"widont\">&nbsp;<\/span>name.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, copy the contents of the <strong>Netctl<\/strong> static configuration file, and create a new file with the name of your network<span class=\"widont\">&nbsp;<\/span>interface:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># cp \/etc\/netctl\/examples\/ethernet-static \/etc\/netctl\/eno3<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, edit the file you just created, substituting the values for your failover&nbsp;<span class=\"caps\">IP<\/span>&nbsp;address, subnet mask, gateway address and&nbsp;<span class=\"caps\">DNS<\/span>&nbsp;address.&nbsp;<strong>For the subnet mask, please use the address that was emailed to you when you purchased the additional <span class=\"caps\">IP<\/span><span class=\"widont\">&nbsp;<\/span>address.<\/strong><\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">Description<\/span><span class=\"o\">=<\/span><span class=\"s1\">'A basic static ethernet connection'<\/span>\n<span class=\"nv\">Interface<\/span><span class=\"o\">=<\/span>eno3\n<span class=\"nv\">Connection<\/span><span class=\"o\">=<\/span>ethernet\n<span class=\"nv\">IP<\/span><span class=\"o\">=ADDITIONAL<\/span>_IP\n<span class=\"nv\">Address<\/span><span class=\"o\">=(<\/span><span class=\"s1\">'255.255.255.255'<\/span><span class=\"o\">)<\/span>\n<span class=\"nv\">Gateway<\/span><span class=\"o\">=(<\/span><span class=\"s1\">'GATEWAY_IP'<\/span><span class=\"o\">)<\/span>\n<span class=\"nv\">DNS<\/span><span class=\"o\">=(<\/span><span class=\"s1\">'213.186.33.99'<\/span><span class=\"o\">)<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, enable the network card to start automatically on every reboot with the following<span class=\"widont\">&nbsp;<\/span>command:<\/span><\/p>\n<pre><strong><span class=\"c1\" style=\"font-family: Ubuntu, sans-serif;\"># netctl enable eno3<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Now start the network profile, as shown<span class=\"widont\">&nbsp;<\/span>below:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># netctl start eno3<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, stop and disable the <strong>dhcp<\/strong><span class=\"widont\">&nbsp;<\/span>service:<br><\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"># systemctl stop dhcpcd\n# systemctl disable dhcpcd<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Finally, restart your system for the changes to take<span class=\"widont\">&nbsp;<\/span>effect.<\/span><\/p>\n<h4 id=\"freebsd-80\"><span style=\"font-family: Ubuntu, sans-serif;\">FreeBSD 8.0<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Open up an&nbsp;SSH&nbsp;connection to your virtual machine. Once connected, open the virtual machine\u2019s network configuration file, which is located in&nbsp;<em><strong>\/etc\/rc.conf<\/strong><\/em>. Edit the file so that it reflects the configuration below (please remember to replace our variables with your own&nbsp;values):<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"nv\">ifconfig_em0<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"inet ADDITIONAL_IP netmask 255.255.255.255 broadcast ADDITIONAL_IP\"<\/span>\n<span class=\"nv\">static_routes<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"net1 net2\"<\/span>\n<span class=\"nv\">route_net1<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"-net GATEWAY_IP\/32 ADDITIONAL_IP\"<\/span>\n<span class=\"nv\">route_net2<\/span><span class=\"o\">=<\/span><span class=\"s2\">\"default GATEWAY_IP\"<\/span><\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Save and close the file, then reboot your virtual<span class=\"widont\">&nbsp;<\/span>machine.<\/span><\/p>\n<h4 id=\"ubuntu-1804\"><span style=\"font-family: Ubuntu, sans-serif;\">Ubuntu 18.04<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">First, establish an&nbsp;SSH&nbsp;connection to your virtual machine and open the network configuration file located in&nbsp;<em><strong>\/etc\/netplan<\/strong><\/em>\/&nbsp;with the following command. For demonstration purposes, our file is called&nbsp;<strong>50-cloud-init.yaml<\/strong>.<\/span><\/p>\n<pre><strong><span class=\"c1\" style=\"font-family: Ubuntu, sans-serif;\"># nano \/etc\/netplan\/50-cloud-init.yaml<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Once the file is open for editing, amend it with the following<span class=\"widont\">&nbsp;<\/span>code:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">network:\n    ethernets:\n        your-network-interface:\n            addresses:\n                - additional-ip\/32\n            nameservers:\n                addresses:\n                    - 213.186.33.99\n                search: <span class=\"o\">[]<\/span>\n            optional: <span class=\"nb\">true<\/span>\n            routes:\n                - to: 0.0.0.0\/0\n                  via: your-gateway-ip\n                  on-link: <span class=\"nb\">true<\/span>\n    version: 2<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Once you\u2019ve made the changes, save and close the file, then run the following<span class=\"widont\">&nbsp;<\/span>command:<\/span><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\"><span class=\"c1\"># netplan try<\/span>\nWarning: Stopping systemd-networkd.service, but it can still be activated by:\n  systemd-networkd.socket\nDo you want to keep these settings?\n\nPress ENTER before the timeout to accept the new configuration\n\nChanges will revert in <span class=\"m\">120<\/span> seconds\nConfiguration accepted.<\/span><\/strong><\/pre>\n<h4 id=\"windows-server-2012-hyper-v\"><span style=\"font-family: Ubuntu, sans-serif;\">Windows Server 2012 \/<span class=\"widont\">&nbsp;<\/span>Hyper-V<\/span><\/h4>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Before configuring your virtual machine, you\u2019ll need to create a virtual<span class=\"widont\">&nbsp;<\/span>switch.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">From the command line of your Dedicated Server, run&nbsp;<strong>IPconfig \/ALL<\/strong>&nbsp;and then note the name of the network adapter that contains the server\u2019s main&nbsp;IP&nbsp;address.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In the Hyper-V Manager, create a new virtual switch and set the connection type to&nbsp;<strong>External<\/strong>.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Select the adapter with the server\u2019s&nbsp;IP, then check&nbsp;<strong>Allow management operating system to share this network adapter.<\/strong><\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8552\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-11-56-46.png\" alt=\"Configuring a network bridge - Image 1\" width=\"580\" height=\"361\" title=\"Configuring a network bridge - Image 1\"><\/p>\n<pre><strong><span style=\"font-family: Ubuntu, sans-serif;\">This step is only required once for a hyper-v server. For all VMs, a virtual switch is required to connect the&nbsp;<span class=\"caps\">VM<\/span>\u2019s virtual network adapters to the server\u2019s physical adapter.<\/span><\/strong><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, select the&nbsp;<span class=\"caps\">VM<\/span> that you wish to add the additional <span class=\"caps\">IP<\/span>&nbsp;to. Use the Hyper-V Manager to change the settings of the&nbsp;<span class=\"caps\">VM<\/span>&nbsp;and shut it<span class=\"widont\">&nbsp;<\/span>down.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, expand the network adapter and click on&nbsp;<strong>Advanced Features<\/strong>, change the&nbsp;<span class=\"caps\">MAC<\/span>&nbsp;address to&nbsp;<strong>static<\/strong>, and enter the virtual&nbsp;<span class=\"caps\">MAC<\/span> address for the additional <span class=\"caps\">IP<\/span>. Once you have entered these settings, press&nbsp;<strong>OK<\/strong> to apply the changes.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8555\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-12-01-56.png\" alt=\"Configuring a network bridge - Image 2\" width=\"556\" height=\"261\" title=\"Configuring a network bridge - Image 2\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, start the&nbsp;VM&nbsp;and log in as an administrator, then go to&nbsp;<strong>Control Panel<\/strong>&nbsp;&gt;&nbsp;<strong>Network and Sharing Center<\/strong>. Click on the<strong>&nbsp;Connections: Ethernet<\/strong>&nbsp;link, then click on the&nbsp;<strong>Properties<\/strong>&nbsp;button to view the ethernet&nbsp;properties.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Select&nbsp;<strong>Internet Protocol Version 4 (TCP\/IPv4)<\/strong>, and then click on the&nbsp;<strong>Properties<\/strong>&nbsp;button to show IPv4&nbsp;properties.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8560\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-12-07-47.png\" alt=\"Configuring a network bridge - Image 3\" width=\"335\" height=\"423\" title=\"Configuring a network bridge - Image 3\"><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">In the IPv4 Properties window, select&nbsp;<strong>Use the additional IP address<\/strong>. Enter the <strong>additional<\/strong> IP&nbsp;into the&nbsp;IP&nbsp;address field, and enter <strong>255.255.255.255<\/strong> into the subnet&nbsp;mask.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Next, enter your server\u2019s gateway&nbsp;IP&nbsp;address into the default gateway (i.e. your server\u2019s&nbsp;IP, ending with 254), and enter 213.186.33.99 into the<strong>&nbsp;Preferred DNS Server<\/strong>&nbsp;field.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Click&nbsp;<strong>OK<\/strong>, and ignore the warning message about the gateway&nbsp;IP&nbsp;and assigned&nbsp;IP&nbsp;not being in the same&nbsp;subnet.<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif;\">Finally, reboot the server. The&nbsp;VM should then be connected to the internet using the additional&nbsp;IP.<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8562\" src=\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-12-13-23.png\" alt=\"Configuring a network bridge - Image 4\" width=\"359\" height=\"401\" title=\"Configuring a network bridge - Image 4\"><\/p>\n<p><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide will show you how to use network bridging to configure internet access for your virtual&nbsp;machines.<\/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,604],"class_list":["post-2678","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-dedicated-servers","tag-vps-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuring a network bridge - 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-bridging\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring a network bridge - Unihost.FAQ\" \/>\n<meta property=\"og:description\" content=\"This guide will show you how to use network bridging to configure internet access for your virtual&nbsp;machines.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/network-bridging\/\" \/>\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-12-09T15:39:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-19T10:46:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.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=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"Configuring a network bridge\",\"datePublished\":\"2015-12-09T15:39:16+00:00\",\"dateModified\":\"2023-01-19T10:46:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/\"},\"wordCount\":1303,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.png\",\"keywords\":[\"dedicated servers\",\"VPS\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/\",\"url\":\"https:\/\/unihost.com\/help\/network-bridging\/\",\"name\":\"Configuring a network bridge - Unihost.FAQ\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.png\",\"datePublished\":\"2015-12-09T15:39:16+00:00\",\"dateModified\":\"2023-01-19T10:46:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/network-bridging\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-11-56-46.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-11-56-46.png\",\"width\":580,\"height\":361},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/network-bridging\/#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 a network bridge\"}]},{\"@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 a network bridge - 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-bridging\/","og_locale":"en_US","og_type":"article","og_title":"Configuring a network bridge - Unihost.FAQ","og_description":"This guide will show you how to use network bridging to configure internet access for your virtual&nbsp;machines.","og_url":"https:\/\/unihost.com\/help\/network-bridging\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2015-12-09T15:39:16+00:00","article_modified_time":"2023-01-19T10:46:42+00:00","og_image":[{"url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.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":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/network-bridging\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"Configuring a network bridge","datePublished":"2015-12-09T15:39:16+00:00","dateModified":"2023-01-19T10:46:42+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/"},"wordCount":1303,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.png","keywords":["dedicated servers","VPS"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/network-bridging\/","url":"https:\/\/unihost.com\/help\/network-bridging\/","name":"Configuring a network bridge - Unihost.FAQ","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/Screenshot-at-11-56-46.png","datePublished":"2015-12-09T15:39:16+00:00","dateModified":"2023-01-19T10:46:42+00:00","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/network-bridging\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/network-bridging\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/network-bridging\/#primaryimage","url":"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-11-56-46.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?.\/Screenshot-at-11-56-46.png","width":580,"height":361},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/network-bridging\/#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 a network bridge"}]},{"@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\/2678","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=2678"}],"version-history":[{"count":32,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2678\/revisions"}],"predecessor-version":[{"id":8627,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/2678\/revisions\/8627"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=2678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=2678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=2678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}