cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1217
Views
0
Helpful
1
Replies

Help to route Vlan to Internet Company Router

blisteink4m
Level 1
Level 1

Hello All I am tryng to get internet access in my local network based on Vlan.

 

This is the topology of my local network I am using two switch with vlan 10 and vlan 20 and one router with on-stick method.

 

All pc of different vlan works and have ping beetween them. I only need to get internet access via my router company it has 192.168.5.0/24 network I think that I should to connect it directly to the Router 0 but How should I to configure it? I try but it doesn´t work

 

This is my topology

 

topology.JPG

1 Reply 1

Francesco Molino
VIP Alumni
VIP Alumni
Hi

You need to connect your router 0 to your internet router.
Let's assume your internet router has ip 192.268.5.254/24.
On your router 0 interface facing this internet router, configure IP 192.268.5.253 255.255.255.0 and add a static route: ip route 0.0.0.0 0.0.0.0 192.168.5.254

On your internet router you need to add 2 static routes:
ip route 192.168.10.0 255.255.255.0 192.168.5.253
ip route 192.168.20.0 255.255.255.0 192.168.5.253

The ip 192.168.5.253 i used for your router 0 can be changed by any IP you want and that's free (not used), then just adapt static routes with this new ip.

Then if nat is done correctly on your internet router, everything should be fine otherwise you'll need to adapt the nat config.

Hope this is clear

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question