Difference between revisions of "Linux VLAN"

From Teknologisk videncenter
Jump to: navigation, search
m (Created page with "=Ubuntu= <source lang=cli> apt-get install vlan modprobe 8021q vconfig add eth0 10 vconfig add eth0 20 ifconfig eth0.10 up ifconfig eth0.20 up </source> ==Links== *https://wiki.u...")
 
m (Ubuntu)
 
Line 8: Line 8:
 
ifconfig eth0.20 up
 
ifconfig eth0.20 up
 
</source>
 
</source>
 +
=Lav det permanent=
 +
Load moduler under boot
 +
<pre>
 +
sudo su -c 'echo "8021q" >> /etc/modules'
 +
</pre>
 +
Tilføj interfaces til interfaces config
 +
<pre>
 +
auto eth1.10
 +
iface eth1.10 inet static
 +
    address 10.0.0.1
 +
    netmask 255.255.255.0
 +
    vlan-raw-device eth1
 +
</pre>
 
==Links==
 
==Links==
 
*https://wiki.ubuntu.com/vlan
 
*https://wiki.ubuntu.com/vlan
 
{{Source cli}}
 
{{Source cli}}
 
[[Category:Linux]][[Category:Network]]
 
[[Category:Linux]][[Category:Network]]

Latest revision as of 13:30, 5 January 2012

Ubuntu

apt-get install vlan
modprobe 8021q
vconfig add eth0 10
vconfig add eth0 20
ifconfig eth0.10 up
ifconfig eth0.20 up

Lav det permanent

Load moduler under boot

sudo su -c 'echo "8021q" >> /etc/modules'

Tilføj interfaces til interfaces config

auto eth1.10
iface eth1.10 inet static
    address 10.0.0.1
    netmask 255.255.255.0
    vlan-raw-device eth1

Links