[CentOS-es] Ayuda con Multiples Vlan en una interfaz (TRUNK)
Pablo Alberto Flores
pabflore en uchile.cl
Mar Mar 11 15:36:40 UTC 2014
Sip
*Esta el la conf de mi eth0
cat ifcfg-eth0
DEVICE="eth0"
HWADDR="00:80:C8:E1:0E:04"
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="none"
TYPE="Ethernet"
y la de mi eth0.1 es
cat ifcfg-eth0.1
DEVICE="eth0.1"
HWADDR="00:80:C8:E1:0E:04"
BOOTPROTO=none
ONBOOT=yes
IPADDR=172.16.114.2
NETMASK=255.255.255.0
GATEWAY=172.16.114.1
USERCTL=no
NETWORK=172.16.114.0
VLAN=yes
el ifconfig me da lo siguiente
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:C8:E1:0E:04
inet6 addr: fe80::280:c8ff:fee1:e04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:145615 errors:0 dropped:0 overruns:0 frame:0
TX packets:1149 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14990221 (14.2 MiB) TX bytes:81646 (79.7 KiB)
Interrupt:18 Base address:0xc000
eth0.1 Link encap:Ethernet HWaddr 00:80:C8:E1:0E:04
inet addr:172.16.114.2 Bcast:172.16.114.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fee1:e04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40397 errors:0 dropped:0 overruns:0 frame:0
TX packets:442 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3649974 (3.4 MiB) TX bytes:34492 (33.6 KiB)
eth0.2 Link encap:Ethernet HWaddr 00:80:C8:E1:0E:04
inet addr:172.16.115.243 Bcast:172.16.115.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fee1:e04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:676 (676.0 b)
eth0.4 Link encap:Ethernet HWaddr 00:80:C8:E1:0E:04
inet addr:172.16.112.2 Bcast:172.16.112.255 Mask:255.255.255.0
inet6 addr: fe80::280:c8ff:fee1:e04/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48966 errors:0 dropped:0 overruns:0 frame:0
TX packets:337 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5238972 (4.9 MiB) TX bytes:27534 (26.8 KiB)
Pero ninguna de las IP me reponde a los ping.
agregue esta regla al firewall y la VLAN 2 responde
iptables -A FORWARD -i eth0 -j ACCEPT
El 11 de marzo de 2014, 11:12, Francesc Guitart <fguitart en gmx.com> escribió:
> El 11/03/2014 14:27, Pablo Alberto Flores escribió:
> > Estimados.
> >
> > Tengo un centos 6.5 y deseo pasar 3 vlan en una sola interfaz. el SW ya
> > esta configurado como trunk pero no me levanta.
> >
> > si reviso el SW me muestra que hay 3 ip de vlan distintas conectadas.
> > #sh mac address-table | i 0/21
> > 1 0080.c8e1.0e04 DYNAMIC Fa0/21
> > 2 0080.c8e1.0e04 DYNAMIC Fa0/21
> > 4 0080.c8e1.0e04 DYNAMIC Fa0/21
> >
> > #sh ip arp 0080.c8e1.0e04
> > Protocol Address Age (min) Hardware Addr Type Interface
> > Internet 172.16.115.243 0 0080.c8e1.0e04 ARPA Vlan2
> > Internet 172.16.114.2 1 0080.c8e1.0e04 ARPA Vlan1
> > Internet 172.16.112.2 1 0080.c8e1.0e04 ARPA Vlan4
> >
> > mi tabla de rutas es la siguente
> > #netstat -rn
> > Kernel IP routing table
> > Destination Gateway Genmask Flags MSS Window irtt
> > Iface
> > 172.16.112.0 0.0.0.0 255.255.255.0 U 0 0 0
> > eth0.4
> > 172.16.115.0 0.0.0.0 255.255.255.0 U 0 0 0
> > eth0.2
> > 172.16.114.0 0.0.0.0 255.255.255.0 U 0 0 0
> > eth0.1
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> > eth0
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> > eth0.1
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> > eth0.2
> > 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> > eth0.4
> > 0.0.0.0 172.16.115.1 0.0.0.0 UG 0 0 0
> > eth0.2
> >
> > pero no se conecta al mundo. ni siquiera la vlan que tiene el gw por
> defecto
>
>
> Has añadido la linea "VLAN=yes" en?
>
> /etc/sysconfig/network-scripts/ifcfg-eth0.1
> /etc/sysconfig/network-scripts/ifcfg-eth0.2
> /etc/sysconfig/network-scripts/ifcfg-eth0.4
>
>
>
> --
> Francesc Guitart
> _______________________________________________
> CentOS-es mailing list
> CentOS-es en centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
>
Más información sobre la lista de distribución CentOS-es