Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision |
linux:vlan [2015/02/17 14:51] – angelegt js | linux:vlan [2016/07/19 11:20] (current) – js |
---|
====== Configure vlan on CentOS 5 ====== | ====== Configure vlan on CentOS 5 ====== |
| |
* first install vconfig <code>yum -y install vconfig</code> | * first install vconfig <code bash>yum -y install vconfig</code> |
* check if module loaded <code>lsmod | grep 8021q</code>If not loaded try to load with <code>modprobe 8021q</code>If you get a error message, than try a other kernel with vlan support | * check if module loaded <code bash>lsmod | grep 8021q</code>If not loaded try to load with <code>modprobe 8021q</code>If you get a error message, than try a other kernel with vlan support |
* copy /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0.<vlan> | * copy /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0.<vlan> |
* add .<vlan> to DEVICE line | * add .<vlan> to DEVICE line |
* add vlan=yes | * add vlan=yes |
* Example: <code>DEVICE=eth0.201 | * Example: <code bash>DEVICE=eth0.201 |
BOOTPROTO=none | BOOTPROTO=none |
BROADCAST=172.16.201.255 | BROADCAST=172.16.201.255 |