VLAN

Linux.fista
Versio hetkellä 5. heinäkuuta 2008 kello 04.05 – tehnyt Raspi (keskustelu | muokkaukset)
Siirry navigaatioon Siirry hakuun
 aptitude install vlan
 vconfig add eth0 1234
 vconfig add eth1 1111
 vconfig add eth1 10


Esimerkki

eth0:n ja eth1:n liittäminen eri VLAN:eihin

/etc/network/interfaces:

 auto lo
 iface lo inet loopback
 
 # The primary network interface
 allow-hotplug eth0
 allow-hotplug eth1
 
 iface eth0 inet static
 iface eth1 inet static
 
 auto vlan111
 auto vlan222
 auto vlan333
 auto vlan444
 
 # LAN
 iface vlan111 inet static
         vlan_raw_device eth0
 
 # WLAN
 iface vlan222 inet static
         vlan_raw_device eth0
 
 # ADSL Modem
 iface vlan333 inet static
         vlan_raw_device eth1
 
 # Internet
 iface vlan444 inet static
         vlan_raw_device eth0


Katso myös