06-02-2014 02:52 PM - edited 03-04-2019 11:04 PM
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,
06-02-2014 04:26 PM
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
06-03-2014 01:19 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide