Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Debian / grml / ....

http://www.microhowto.info/howto/configure_an_ethernet_interface_as_a_vlan_trunk_on_debian.html


1- install the package

2- add new inteface like eth0.50  ( /etc/network/interfaces)



apt-get install vlan




auto eth0.50

iface eth0.2 inet static

 address 192.168.2.1

 netmask 255.255.255.0






CentOS / Fedora / RedHat


https://sites.google.com/site/ghidit/how-to-2/configure-vlans-on-centos


1- modify the "main" interfac ( untagged)

2- create the tagged interface



/etc/sysconfig/network-scripts/ifcfg-eth0

# Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)

DEVICE=eth0

HWADDR=00:04:xx:xx:xx:xx

ONBOOT=yes

HOTPLUG=no

BOOTPROTO=none

TYPE=Ethernet

IPV6INIT=no

IPV6_AUTOCONF=no



/etc/sysconfig/network-scripts/ifcfg-eth0.10

# Intel Corporation 82546EB Gigabit Ethernet Controller (Copper)

DEVICE=eth0.10

HWADDR=00:04:xx.xx.xx.xx

ONBOOT=yes

HOTPLUG=no

BOOTPROTO=none

TYPE=Ethernet

VLAN=yes

IPADDR=86.X.X.X

NETMASK=255.255.X.X



Now it's time to start the interfaces. This can be done manually, using /sbin/ifup:

/sbin/ifup eth0

/sbin/ifup eth0.10


Or by using /sbin/service:

/sbin/service network restart

  • No labels