Learn how to configure the network on VMware ESXi.
On the High Grade & SCALE ranges, it is not possible to manage additional IPs in bridged mode (via virtual MACs). Configuring additional IPs in routed mode or via the vRack is necessary.
Requirements
- a public block of IP addresses in your account, with a minimum of four addresses
- your chosen private IP address range
- a vRack-compatible dedicated server connected to the appropriate vRack
- a vRack service activated in your account
- access to the OVHcloud Control Panel
Instructions
Identify your vNICs
You will need to identify which NICs are public and which are private to complete the later steps in this guide. You will need to follow the next step in command mode (shell).
To begin, use the following command:
In the output displayed, focus on the NICs with a Link Status of "Up" and their MAC addresses, as shown in the example below.
Navigate to your OVHcloud Control Panel.
- Select
Bare Metal Cloud
. - Click on the
Dedicated Servers menu
. - Select your server.
- Click the
Network Interfaces
tab.
At the bottom of this screen, look at the list of Network Interfaces, focusing on the Type and MAC Address columns.
Compare these MAC addresses to those in the output in the previous step to determine which two NICs are public and which two are private.
In the examples in this guide:
- the public interfaces are
vmnic0
andvmnic5
; - the private interfaces are on
vmnic3
andvmnic4
.
Additional IP via vRack
Original configuration
Use the following command to see the current status of your vSwitch
The output will show one of your public NICs in the Uplinks line.
Explanations
You need to:
- create the aggregate on the public vSwitch
- create the vSwitch for the vRack
- create a port group
- create VMs using the new port group as the network interface.
Configure ESXi
- Create the aggregate in LACP mode on the vSwitch that carries the public interfaces.
Use the following commands:
The output should show both of your public NICs in the Standby Adapters line.
Then use the following commands:
- Create vSwitch and vRack aggregation on private interfaces.
Use the following commands:
The output will show your private NICs as Standby Adapters:
- Create a port group for the new “vRackvSwitch” vSwitch.
Use the following command:
- Configure the VM.
The VMs must have the new
portgroupvRackvSwitch
port group in the network interface.From the OVHcloud Control Panel, click
Network
andvRack private network
.Move your IP range to your vRack.
Once completed, it should look like this.
Configure a usable IP address
In the case of vRack, the first address and the last two addresses in a given IP block are always reserved for the network address, its gateway, and its broadcast address respectively. This means that the first usable address is the second address in the block, as shown below:
To configure the first usable IP address, you must edit the network configuration file as shown below. In this example, we use a subnet mask of 255.255.255.240.
The subnet mask used in this example is appropriate for our IP block. Your subnet mask may differ depending on the size of your block.
Additionally, in this example we are using ens18
for our interface name in this example. To check the name of your interface, use the ip add
command.
Configuration example of a client VM on Debian
File contents /etc/network/interfaces
:
Go further
For more information and tutorials, please see our other Dedicated Servers support guides or explore the guides for other OVHcloud products and services.
- Suhail R
- Ashley Osei