C
C
Caspergreen2019-10-11 12:55:34
Cisco
Caspergreen, 2019-10-11 12:55:34

Why doesn't routing work for users in different vlans?

Hello, I have a config

Interface Ethernet1/0/21
 switchport access vlan 200
!
Interface Ethernet1/0/22
 description Asterisk
 switchport access vlan 100
!
Interface Ethernet1/0/23
 description Server#1
 switchport mode trunk
!
Interface Ethernet1/0/24
 description Server#2_port1
 switchport access vlan 300
!
Interface Ethernet1/0/25
!
Interface Ethernet1/0/26
!
Interface Ethernet1/0/27
!
Interface Ethernet1/0/28
!
interface Vlan100
 ip address 192.168.1.200 255.255.255.0
!
interface Vlan110
 ip address 192.168.100.250 255.255.255.0
!
interface Vlan120
 ip address 192.168.120.250 255.255.255.0
!
interface Vlan200
!
interface Vlan300
 ip address 192.168.110.250 255.255.255.0
!
interface Vlan400
 ip address 192.168.150.250 255.255.255.0
!

If I add a route add 192.168.120.0/24 gw 192.168.110.250 to a user located on the network 192.168.110.0/24, then the
traffic is not routed through the switch. How to set up routing so that in different vlans, by adding a static route on the user side, traffic starts to go through the switch?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ruslan-Strannik, 2019-10-11
@Ruslan-Strannik

ACL??? permit any
as far as I remember, it is necessary that cisco also allowed circulation between vlans :) :)
xgu.ru/wiki/Cisco_ACL

M
Mikhail Vasiliev, 2019-10-11
@Loiqig

If this is a switch that can route, since not everyone can, then by default it does not. The command is used to enable this ip routing. Not a very new document but just for your question.

D
Dmitry, 2019-10-13
@lamma

Firstly - what for do you prescribe route add on the switch - if all your networks sit on connected interfaces. The switch is already aware of what networks it has connected.
Secondly - where is default gw delivered on the client? On the switch interface or in Zimbabwe?
Thirdly - is ip routing enabled?
Fourth - what kind of switch?
Fifthly, there is no need to dig ACL - everything is allowed there when routing, unless of course you have already done it there, if you have done it - kill it and deal with routing first.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question