cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

CISCO SWITCHES FOR SMALL and MEDIUM BUSINESS

Introducing the next generation of Cisco Small and Medium Business Switches. Cisco is refreshing its SMB Switch portfolio. Click here  to learn more.


5670
Views
0
Helpful
9
Replies
Highlighted
Beginner

Inter VLAN routing on SG350

Hello,

I'm configuring a new SG350-28P, running with the latest frimware (2.4.0.94).

Layer 3 is supposed to be already active (default settings); I cannot find any choice (Layer 2 / Layer 3) as found on SG300 series.

I have a default router : 192.168.1.1

 

I configured the following VLAN :

- VLAN 1 : IP 192.168.1.2 / 255.255.255.0

- VLAN 20 : IP 192.168.20.1 / 255.255.255.0

 

In the IP Configuration -> IPv4 Interface -> IPv4 Routing is enabled.

 

I configured the following IPV4 Static Route : 

Destination IP Prefix Length Route type Next Hop Router IP Metric Outgoing Interface
0.0.0.0 0 Remote 192.168.1.1 4 VLAN1

 

 

From VLAN1 (the switch itself, and any device connected to VLAN1), I can access the Internet.

 

 

The IPV4 Forwarding Table contains :

Destination IP Prefix Length Route type Next Hop Router IP Route Owner Metric Admin. distance Outgoing Interface
0.0.0.0 0 Remote 192.168.1.1 Static 4 1 VLAN1
192.168.1.0 24 Local 192.168.1.2 Directly Connect     VLAN1
192.168.20.0 24 Local 192.168.20.1 Directly Connect     VLAN20

  

 

Problem from VLAN 20 is :

- I can ping the local switch interface 192.168.20.1

- I can ping the VLAN1 switch interface 192.168.1.2

- I cannot ping the default gateway 192.168.1.1

- And I cannot ping anything on the Internet (of course)...

 

 

Do you have any idea to solve this issue please ?

 

Thanks in advance for your help.

9 REPLIES 9
VIP Advisor

Re: Inter VLAN routing on SG350

Hi there,

Does the router (192.168.1.1) have a route back to 192.168.20.0 /24 via 192.168.1.2 ?

 

If it is a siply router, then chances are you will not be able to add IP routes to it. So you will need to NAT 192.168.20.0 /24 (and any other VLANs you add to the SG350) onto 192.168.1.0 /24 . The problem is the SG350 does not support NAT.

 

...so you need a NAT device to sit between the router and SG350.

 

Let us know where you get stuck above.

 

cheers,

Seb.

Beginner

Re: Inter VLAN routing on SG350

Hi,

 

Thanks for the answser.

 

The switch itself is a L3 !  It must do the routing (if not, what does L3 mean) ?

 

Event with the router disconnected, there is no inter-vlan routing.

From a PC in one VLAN, I cnnot ping a PC in the other VLAN (but I can ping the interface in the other VLAN).

 

 

 

Beginner

Re: Inter VLAN routing on SG350

The route has been added, as suggested.

From VLAN1, the packets are routed to the SG350, and then dropped.

 

Test :

- Source of the tracert : PC 192.168.1.182

- Destination of the tracert : PC 192.168.20.101

- Hops :

  * 192.168.1.1 (router)

  * 192.168.1.2 (SG350)

  * then, nothing, no internal routing in the SG350

 

 

My old SG300 switches can do that !!
The interVLAN routing is automatic !  Even without any router.

VIP Advisor

Re: Inter VLAN routing on SG350

What are the devices you have connected to the SG350? Are they windows machines? By default the windows firewall will not respond to ping requests. 

 

Can two devices in the same VLAN ping each other?

Beginner

Re: Inter VLAN routing on SG350

Yes, they are Windows PC, and they can ping each-other when they are connected in VLAN1.

 

I added the route in the router : Destination 192.168.20.0 /24 - Gtw 192.168.1.2

 

The router itself can ping the SG350 VLAN20 interface 192.168.20.1.

But, it cannot ping the PC in VLAN20...

Tracert show the (ping to VLAN20 PC) is routed to 192.168.1.2 (SG350) but... no further.

 

 

Explorer

Re: Inter VLAN routing on SG350

I assume you are using 192.168.20.1 as your default gateway for your client PCs.  It would not work for me a couple of years ago when I tried to use 192.168.1.2 as my default gateway for all the other VLAN clients.

 

Yes I have done this on my SG300-28 L3 switch.  I figured out I like a separate router VLAN for my for connection to the router.  I use a point to point VLAN for my router VLAN.  You might try using a separate router VLAN to see if it works. 

 

Have used both the Cisco RV320 and RV340 routers and they work fine.

Beginner

Re: Inter VLAN routing on SG350

I did a full reset this morning.

I applied the same configuration and... it works now !!

Beginner

Re: Inter VLAN routing on SG350

Lee,

Would you be willing to share your running config with me?  I have a Cisco 1921 and a SG300-28.  I have spent days trying to get router on a stick to work and I am missing something.  I would just like to see a working example.
Thanks for your time.

Beginner

Re: Inter VLAN routing on SG350

Virtual LANs (VLANs) divide one physical network into multiple broadcast domains. But, VLAN-enabled switches cannot, by themselves, forward traffic across VLAN boundaries. So you need to have routing between these VLANs which is called interVLAN routing.