cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
448
Views
0
Helpful
2
Replies

Inter-Vlan Routing to the internet

campbellkay001
Level 1
Level 1

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 2

manish arora
Level 6
Level 6

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

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 rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul