История изменений
Исправление 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
на br1 висит виртуалка, которая подключена в инет и раздает в локалку через br2 инет, в eth1 воткнут шнур от провайдера со стат адресом, eth2 воткнут в локалку
Исходная версия 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
на br1 висит виртуалка, которая подключена в инет и раздает в локалку через br2 инет, в eth1 воткнут шнур от провайдера со стат адресом.