cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 
cancel
584
Visitas
2
ÚTIL
30
Respuestas

Enrutamineto entre Vlans

javiertorrejon
Level 1
Level 1

Buenas, he adquirido un switch C9200CX-12T-2XG. y estoy intentando enrutar 2 redes diferentes y hay algo que se me escapa. He creado las vlans, con las ips 10.0.0.1-255.255.255.o y 192.168.0.1 255.255.255.0, y las he agregado 2 interfaces del puerto, configurándolas con swtichport mode access y access vlan 10 a una interfaz y access vlan 20 a otra (donde tengo equipos colgando de cada una de ellas con el gateway que pertenece) y he habilitado el enrutamiento (ip routing). Pero no tengo conectividad entre ambas redes

1 SOLUCIÓN ACEPTADA

Soluciones aceptadas

Vale, ya está resuelto. Deshabilité la interfaz wifi y listo, estaba cogiendo por defecto esta ruta. ¡Mil gracias por tu ayuda!

Ver la solución en mensaje original publicado

30 RESPUESTAS 30

M02@rt37
VIP
VIP

Hola @javiertorrejon 

-- desactivar el firewall en un PC ?

And retry please.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

El Firewall está deshabilitado en ambos extremos. He probado incluso con un equipo con Ubuntu y nada.

Ok @javiertorrejon 

Share here these outputs:

# show int status

# show ip int brief

Do you ping SVIs from that SW ?

Does a PC ping the GW of the other vlan hosted on that Switch ?

Ensure "ip routing" command is configured.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

javiertorrejon
Level 1
Level 1

Ambos PCs hacen ping a su GW. dejo por aquí las anotaciones del comandos show running-config;

show running-config
Building configuration...

Current configuration : 8822 bytes
!
! Last configuration change at 11:06:29 UTC Mon Jul 29 2024
!
version 17.9
service timestamps debug datetime msec
service timestamps log datetime msec
service call-home
platform punt-keepalive disable-kernel-core
!
hostname Switch
!
!
vrf definition Mgmt-vrf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
no aaa new-model
!
!
!
!
!
!
!
ip routing
!

!
interface GigabitEthernet1/0/1
switchport access vlan 10
switchport mode access
!
interface GigabitEthernet1/0/2
switchport access vlan 20
switchport mode access
!

!

!
interface Vlan10
ip address 10.0.0.1 255.255.255.0
!
interface Vlan20
ip address 192.168.0.1 255.255.255.0
!

@javiertorrejon 

Do you have configured L2 VLAN ?

configure terminal

vlan 10

vlan 20

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

javiertorrejon
Level 1
Level 1

Si, ambas VLANs están creadas.

 

interfaz Vlan10
dirección IP 10.0.0.1 255.255.255.0
!
interfaz Vlan20
dirección IP 192.168.0.1 255.255.255.0
!

@javiertorrejon 

These are SVI... no vlan

Under config-terminal add vlan 10 command and vlan 20.

conf-t

vlan 10

exit

vlan 20

end

wr

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Dejo por aquí algunos comandos shows

Switch#show int status

Port Name Status Vlan Duplex Speed Type
Gi1/0/1 connected 10 a-full a-1000 10/100/1000BaseTX
Gi1/0/2 connected 20 a-full a-1000 10/100/1000BaseTX

 

Switch#show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM administratively down down
Vlan10 10.0.0.1 YES manual up up
Vlan20 192.168.0.1 YES manual up up

 

Switch#ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Switch#ping 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

@javiertorrejon 

and try this please:

Switch#ping 10.0.0.1 source 192.168.0.1

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Switch#ping 10.0.0.1 source 192.168.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.0.1
!!!!!

ok @javiertorrejon 

so inter vlan routing is ok !

Does PC in vlan x with IP 10.0.0.x ping its Gateway ?

Does PC in vlan x with IP 10.0.0.x ping 192.168.0.1 ?

Thanks.

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

javiertorrejon
Level 1
Level 1

El PC con gw 10.0.0.1 no hace ping a 192.168.0.1, el pc con gw 192.168.0.1 con hace ping a 10.0.0.1. Pero, si hacen ping a su gw.

@javiertorrejon

On your Switch please do:

#show mac address-table vlan 10

#show mac address-table vlan 20

Do you see PCs mac addresses ?

Do you have wireshark on PCs in order to see the ICMP echo request ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

javiertorrejon
Level 1
Level 1

Dejo por aquí la salida de los show de MAC

Switch#show mac address-table vlan 20
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
20  a0bc.6fd7.d4d6 STATIC Vl20
20  ac91.a153.cee7 DYNAMIC Gi1/0/2

La MAC corresponde con la del equipo conectado a la vlan 20.

 

No dispongo de whireshark, pero puedo instalarlo, aunque no soy experto en este software