Posts Tagged ‘Xen server mangment Vlan’
Xen server mangment Vlan
xe network-create name-label=<name>
xe vlan-create network-uuid=<UUID> pif-uuid=<PIF> vlan=160
xe pif-reconfigure-ip uuid=<UUID> IP=<IP> netmask=<Mask> gateway=<GW> mode=static DNS=<NDS>
xe host-management-reconfigure pif-uuid=<PIF>
network_uuid=$(xe network-create name-label=hellnet)
pif_uuid=$(xe pif-list host-name-label=xcp-node device=eth1 –minimal)
xe vlan-create network-uuid=”$network_uuid” pif-uuid=”$pif_uuid” vlan=666
vm_uuid=$(xe vm-list name-label=network-web-tools –minimal)
xe vif-create vm-uuid=”$vm_uuid” network-uuid=”$network_uuid” mac=random device=1