VNET eth1/eth2 address matrix

Virtual machine ID

When each VM starts its eth1 and eth2 interfaces already have addresses assigned which will not conflict with any other VMs.

These addresses will look like:

10.Q.X.Y

Where:

X = UIDHI = (uid >> 8) & 255
Y = UIDLO = uid & 255)
uid = User ID
Q = a + b + c
a = Virtual machine ID (on same host) - 1
b = VLAB host number * 4
c = 0 for eth1 or c = 64 for eth2

Shown are the Q values for eth1 / eth2 for all virtual machine IDs and VLAB hosts

Note that the values of X and Y will always be the same for the same user because their user ID will never change

#1 #2 #3 #4
VLAB
host
vx0 0 / 64 1 / 65 2 / 66 3 / 67
vx1 4 / 68 5 / 69 6 / 70 7 / 71
vx2 8 / 72 9 / 73 10 / 74 11 / 75
vx3 12 / 76 13 / 77 14 / 78 15 / 79
vx4 16 / 80 17 / 81 18 / 82 19 / 83
vx5 20 / 84 21 / 85 22 / 86 23 / 87
vx6 24 / 88 25 / 89 26 / 90 27 / 91
vx7 28 / 92 29 / 93 30 / 94 31 / 95
vx8 32 / 96 33 / 97 34 / 98 35 / 99