Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Inter-Vlan Routing to the internet

Hi,

 

I have a Cisco SG300 switch in layer 3 mode.

 

currently have a very cheap router, which only allows me to add 2 static routes back to my layer 3 switch.

 

I have 4 subnets on my SG 300 example

 

VLAN 10 192.168.10.0

VLAN 20 192.168.20.0

VLAN 30 192.168.30.0

VLAN 40 192.168.40.0

 

my router is on vlan 1 with say on 192.168.1.254

 

now I have configured my default route on my switch to route all traffic to 192.168.1.254, but I can only get two vlans working on the internet because I can only add two static route back to my switch from the router. is there anyway around this, can I do anything on my SG 300 to route all traffic via its IP, I guess kind of doing NAT?

 

Any ideas?


Thanks,

2 REPLIES

just create a supernet of

just create a supernet of your subnets and add that as single route on the router ( I am assuming that you dont have 192.168.X.X any beyond Router using a site2site tunnel or mpls etc). For example :

ip route 192.168.0.0 255.255.192.0 SWITCH_IP

this will send packets destined to 192.168.0-63.0/24 towards your switch.

Manish

HelloManisharara is correct

Hello

Manisharara is correct regards the summarised static , however I would also suggest adding a static to NULL0 on the switch also, this will negate any routing loop between the router and the switch.

 

ip route 192.168.0.0.255.255.255.0 null 0

 

res

Paul

 

Please don't forget to rate any posts that have been helpful. Thanks.
126
Views
0
Helpful
2
Replies
CreatePlease to create content