Xen Cloud Platform (XCP) – Assigning A VLAN An IP Address
Once you create VLAN’s on your XCP server you will find that the physical interface you used to be able to hit by an IP address no longer responds. This is because you have trunked the interface into multiple VLAN’s and need to assign IP’s to the VLAN interfaces rather than the physical interface.
In order to do this first remove the static IP from the physical interface if it was assigned one. Then do the following:
(Note this example uses eth1 as the physical interface the VLAN’s are assigned to.)
First lets check the settings on the VLAN interface you need to assign an IP to.
This should return a list of the VLAN interfaces parameters for VLAN201
Notice the following parameters are all empty:
Lets assign an IP address to this VLAN:
Now we can confirm the setting by listing the parameters again:
Which should show:
Now try to ping the address it should respond again.
You can also set it to use DHCP instead of assigning a Static address by using