lunes, 1 de abril de 2013

vlan in centos 6.0

Configurar vlan en centos 6.0 clonico de RED HAT.

1
2
3
4
5
root@localhost# modprobe 8021q
root@localhost# lsmod | grep --color 8021q
root@localhost# yum install vconfig
root@localhost# cat "modprobe 8021q" >> /etc/rc.modules
root@localhost# chmod +x /etc/rc.modules
Definir las interfaces de red, que te van a permitir utilizar y/o crear las redes vlan

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@sakito ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=static
HWADDR="4C:72:B9:20:9A:AD"
ONBOOT="no"
TYPE=Ethernet
IPADDR=0.0.0.0
NETMASK=255.255.255.0
[root@sakito ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.11

DEVICE=eth0.11
VLAN=yes
TYPE=Ethernet
BOOTPROTO=static
IPADDR=172.16.7.131
NETMASK=255.255.255.224



Observación: "Si tiene instalado el network manager, te generara inconvenientes, mejor desinstalarlo con el siguiente comando"

1
2
root@localhost# yum remove NetworkManager.x86_64
root@localhost# chkconfig network on