Подынтерфейсы (сабы) на сетевой карте под Ubuntu

Пример конфигурации etc-->interfaces для поддержки trunk в Ubuntu Linux:


# 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
auto eth0
iface eth0 inet dhcp
# address 192.168.1.100
# netmask 255.255.255.0
# broadcast 192.168.1.255
# network 192.168.1.0

auto eth1 eth1:0 eth1:1 eth1:2 eth1:3 eth1:4 eth1:5 eth1:6
iface eth1 inet static
address 192.168.18.1
netmask 255.255.255.0
broadcast 192.168.18.255
network 192.168.18.0
iface eth1:0 inet static
address 192.168.3.1
netmask 255.255.255.0
broadcast 192.168.3.255
network 192.168.3.0
iface eth1:1 inet static
address 192.168.4.1
netmask 255.255.255.0
broadcast 192.168.4.255
network 192.168.4.0
iface eth1:2 inet static
address 192.168.100.1
netmask 255.255.255.0
broadcast 192.168.100.255
network 192.168.100.0
iface eth1:3 inet static
address 192.168.5.1
netmask 255.255.255.0
broadcast 192.168.5.255
network 192.168.5.0
iface eth1:4 inet static
address 192.168.7.1
netmask 255.255.255.0
broadcast 192.168.7.255
network 192.168.7.0
iface eth1:5 inet static
address 192.168.8.1
netmask 255.255.255.0
broadcast 192.168.8.255
network 192.168.8.0
iface eth1:6 inet static
address 192.168.6.1
netmask 255.255.255.0
broadcast 192.168.6.255
network 192.168.6.0

auto eth2
iface eth2 inet static
address 10.90.90.95
netmask 255.0.0.0
broadcast 10.255.255.255
network 10.0.0.0

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider