Last updated 21/06/2018
The standard vRack configuration enables you to create only one vLAN. This means that you can only use each IP address once. However, with the vRack version 2.0 configuration, you can create up to 4,000 vLANs within a single vRack. This means that you can use each IP address up to 4,000 times.
This guide will show you how to create multiple vLANs within the vRack.
- an active vRack service in your account
- two or more vRack-compatible servers
- administrative (root) access to the server via SSH
- access to the OVH Control Panel
- your chosen private IP address range
- You must have completed the vRack configuration guide.
As an example, we'll use eth1 as the network interface, 10 as the vLAN tag, and 192.168.0.0/16 as the IP address range.
First, you need to establish an SSH connection to your server, and run the following commands from the command line. This will install the vLAN package on your server:
# sudo apt-get install vlan
Next, we need to create a vLAN tag. The tag is an identifier that allows you differentiate between multiple vLANs:
# vconfig add eth1 10 Added VLAN with VID == 10 to IF -:eth1:-
Next, we need to declare the IP address range within the vRack and tag it with our identifier. We can do this with the following command:
# ip addr add 192.168.0.0/16 dev eth1.10
Lastly, we need to amend the configuration of our network interface so that it takes into account the vLAN tag. For this step, you will need to open your network interface configuration file for editing, and amend it as shown below:
# sudo /etc/network/interfaces auto eth1.10 iface eth1.10 inet static address 192.168.0.50 netmask 255.255.0.0 broadcast 192.168.255.255
Log on to your server via a remote desktop connection, and open the Server Manager app. Then select
Local Server. Now click the
Disabled link next to NIC Teaming:
Next, create a new team by selecting a network interface, and typing a team name into the Team name field. When you have finished, click
Next, we need to define the vLAN tag. In the Adapters and Interfaces pane of the NIC Teaming screen, right-click the interface you have just added to the new team, then click
Properties. Now click
Specific VLAN, and define the tag:
Next, we need to configure the IP address of the vLAN. Click the
Start button on your keyboard, then click
Network and Internet:
Network and Sharing Center:
Change adapter settings:
Next, right-click the vLAN interface, and click
Internet Protocol Version 4 (TCP/IP/IPv4):
Use the following IP address. For IP address, type in an IP from your internal range. For Subnet mask, type in 255.255.0.0.
Finally, click the
OK button to save the changes, then reboot your server.
Join our community of users on https://community.ovh.com/en/.