Posts Tagged ‘vlan’
centos 7 inerface config
ip link add link enp9s4f0 name enp9s4f0.100 type vlan id 100
ip link set dev enp9s4f0.100 up
ip addr add 192.168.0.2/24 dev enp9s4f0.100
ip route add default via 192.168.0.1ip a
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