История изменений
Исправление axelroot, (текущая версия) :
вот пример с боевого сервера
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug eth1
# iface eth1 inet dhcp
auto eth0
allow-hotplug eth0
auto eth1
allow-hotplug eth1
auto eth2
allow-hotplug eth2
#iface eth1 inet static
# address 192.168.1.225
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.100
auto vlan100
allow-hotplug vlan100
iface vlan100 inet static
address 192.168.10.1
netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.100
vlan-raw-device eth1
auto br0
iface br0 inet static
address 192.168.1.225
netmask 255.255.255.0
gateway 192.168.1.100
bridge_ports eth0
bridge_stp off
bridge_maxwait 5
auto br1
iface br1 inet static
address 10.10.30.1
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_maxwait 5
auto br2
iface br2 inet static
address 10.10.40.1
netmask 255.255.255.0
bridge_ports eth2
bridge_stp off
bridge_maxwait 5
создание виртуалки
virt-install -n nginx -r 1024 --vcpus=1 --disk path=/dev/vmdisk/nginx,bus=virtio,cache=none --vnc --os-type linux --accelerate --network=bridge:br1,model=virtio --hvm --disk path=/home/debian-7.4.0-amd64-CD-.iso,device=cdrom,perms=ro --vncport=5930
Исходная версия axelroot, :
вот пример с боевого сервера
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# allow-hotplug eth1
# iface eth1 inet dhcp
auto eth0
allow-hotplug eth0
auto eth1
allow-hotplug eth1
auto eth2
allow-hotplug eth2
#iface eth1 inet static
# address 192.168.1.225
# netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.100
auto vlan100
allow-hotplug vlan100
iface vlan100 inet static
address 192.168.10.1
netmask 255.255.255.0
# network 192.168.1.0
# broadcast 192.168.1.255
# gateway 192.168.1.100
vlan-raw-device eth1
auto br0
iface br0 inet static
address 192.168.1.225
netmask 255.255.255.0
gateway 192.168.1.100
bridge_ports eth0
bridge_stp off
bridge_maxwait 5
auto br1
iface br1 inet static
address 10.10.30.1
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_maxwait 5
auto br2
iface br2 inet static
address 10.10.40.1
netmask 255.255.255.0
bridge_ports eth2
bridge_stp off
bridge_maxwait 5