-
Notifications
You must be signed in to change notification settings - Fork 6
VIVOE IP assignment scheme
The VIVOE standard defines a specific IP assignement scheme, which differs a lot from classic IP assignment scheme. This scheme is used to assign static IP for each VIVOE devices. As OpenVivoe fully implement the VIVOE standard, it also implements this scheme. However, using a program which modify the network configuration of a device could lead to serious conflict with other application running on the device such as network managers. This is why OpenVivoe lets the user decide if he prefers to use the default network configuration of the device, or VIVOE's IP assignment scheme. We advice to use the default network configuration (dhcp or network manager) to avoid any conflict between applications running, and network configuration.
All you have to do is set the key ethernetIpAssignment
to VIVOE
as follows:
ethernetInterface=enp2s0
# Use device network configuration: dynamically assigned IP or manually assigned IP
ethernetIpAssignment=VIVOE
If you have the device has a dynamically assigned IP from a DHCP server OpenVivoe's will not change it. You will make sure that there will be not conflict.
To configure OpenVivoe to use VIVOE's IP assignment scheme you need to set two keys in the vivoe-mib.conf configuration file: ethernetIpAssignment
and assignedIP_ifname
. In the second key, you must replace ifname
with the name of the interface entered in ethernetInterface
. The VIVOE standard also implies to use IP between 192.168.204.1 and 192.168.204.253, every other IPs will be filtered out. Basically, your configuration file will look like:
ethernetInterface=enp2s0
# Use device network configuration: dynamically assigned IP or manually assigned IP.
ethernetIpAssignment=VIVOE
# the IP to assign to the Interface.
assignedIP_enp2s0=192.168.204.3
In that case, I want OpenVivoe to use only the interface enp2s0, and I want OpenVivoe to assign it 192.168.204.3 static IP to this interface. It is the manager's (your) responsibility to ensure that there will be no conflict with other devices in the network, i.e. that no other device has the same IP.
When OpenVivoe uses VIVOE's IP asignement scheme, each time a new IP is set to the device by the manager (or through the configuration file), OpenVivoe performs the IP conflict detection, which is the following:
- OpenVivoe statically assigns the IP to the host device
- it sends 3 ARP Probe request.
- If no conflict are detected, it sends an ARP announcement message to let other devices know it uses this IP.
- If a conflict is detected it selects the IP 192.168.204.200, send a TRAP message to the manager containing the conflicting IP, and restart the IP conflict detection scheme.
Here is a chart that gives an idea of how it works:
For more information, please send a mail to: hoel.vasseur@smile.fr.