cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2000
Views
5
Helpful
8
Replies

SG350 intervlan routing issue

Xan
Level 1
Level 1

Hi all together,

 

I have problem with Inter   routing on SG350.

 

The configuration is :

 

Default vlan1 : 192.168.1.3

Network: 192.168.1.0/24

Default gateway:  192.168.1.1

 

VLAN2: 10.0.15.1/24

VLAN3: 10.0.20.1/24

VLAN5: 192.168.2.1/24

 

 

 

I can't see hosts in vlan1 (default) from any network, but the hosts in vlans2, 3 and 5 can see each other without problems.

Also hosts in vlan's2 , 3 and 5 can't see the default g (192.168.1.1) , they only can ping 192.168.1.3 and no more.

 

IPv4 Routing is enabled on the switch.

 

Any ideas?

 

Thanks in advance,

 

1 Accepted Solution

Accepted Solutions

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Your problem is two-fold. For devices in VLAN1 their DGW is 192.168.1.1, so traffic sourced from the other VLANs is sent to the wrong gateway.

The VLAN1 hosts require routes for the VLANs 2,3,5 to go via the SG350 SVI (192.168.1.3).

 

Likewise the DGW for VLAN1 also needs the same set of routes configured:

!
ip route 10.0.15.0 255.255.255.0 192.168.1.3
ip route 10.0.20.0 255.255.255.0 192.168.1.3
ip route 192.168.2.0 255.255.255.0 192.168.1.3
!

cheers,

Seb.

View solution in original post

8 Replies 8

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Your problem is two-fold. For devices in VLAN1 their DGW is 192.168.1.1, so traffic sourced from the other VLANs is sent to the wrong gateway.

The VLAN1 hosts require routes for the VLANs 2,3,5 to go via the SG350 SVI (192.168.1.3).

 

Likewise the DGW for VLAN1 also needs the same set of routes configured:

!
ip route 10.0.15.0 255.255.255.0 192.168.1.3
ip route 10.0.20.0 255.255.255.0 192.168.1.3
ip route 192.168.2.0 255.255.255.0 192.168.1.3
!

cheers,

Seb.

Hi Seb Rupik,

 

Thank you for your answer, much appreciated!

 

I'm getting error in this case :

 

sg350(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.3
Gateway cannot be one of the addresses configured on this device.

 

The problem is with 192.168.1.3

 

Many thanks,

Xan

the gateway should be 192.168.1.1

 

you mean on the switch?

Seb Rupik
VIP Alumni
VIP Alumni

Hello again,

Those routes need to be configured on the device which has the SVI 192.168.1.1 (the VLAN default gateway).

 

cheers,

Seb.

Hi Seb,

 

I will check and I will post result here.

 

Cheers,

Xan

Hi again,

 

I added route on the Mikrotik for the

10.0.15.0 /24

 and now I can access the router (192.168.1.1) and behind  (the internet) from 10.0.15.0/24 hosts

 

also from the  192.168.1.0/24  I can see  everything in 10.0.15.0/24 

 

The only "issue" is  that  I can't   ping anything in 192.168.1.0/24( except 192.168.1.1) from 10.0.15.0/24.

This is just for debugging

Xan
Level 1
Level 1

I created dhcp pool on mikrotik  and get address for my test client - and now- inter vlan routing between default vlan(192...) and others are working.

 

mikrotik vlan 2 addr 10.0.15.1/24

ip dhcp server pool :10.0.15.100 -10.0.15.130

 

cisco vlan 2 int. addr : 10.0.15.2/24 

test client ip addr. 10.0.15.100 ( from dhcp pool)

 

Everything is working in both directions. 

 

Screenshot from 2020-11-29 09-28-06.png

 

Thank you all!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card