Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 146
  • Last Modified:

Default gateway

We have Cisco 3750 and 4 Cisco 2960 connected to it.
 5 VLan are set on Cisco 3750.
Is it possible to assign a different gateway just for one VLan keeping all others on current one?
Thank you.
0
D_Batona
Asked:
D_Batona
  • 2
1 Solution
 
AkinsdNetwork AdministratorCommented:
Every vlan (subnet) needs a default gateway otherwise it won't be able to talk to other vlans.
Default gateway and default route are viewed a little differently but mean the same thing.
The conventional default route is the gateway out of the network to the outside world

With that said, you may need to make your  concept a little clearer. A topology sketch will be helpful

Nevertheless, If you have 2 routers on the network within the same vlan eg Main Router 192.168.1.254, and another router or layer 3 switch with SVIs configured, let's say with an address of 192.168.1.253. You can configure the 2nd router or L3 switch with routes and make it the default gateway for some devices.
0
 
D_BatonaAuthor Commented:
Sorry my bad English..
You are right.
Vlan1 10.10.10.0 gateway   10.10.10.1
Vlan2 10.10.20.0 gateway   10.10.20.1
Vlan3 10.10.30.0. gateway   10.10.30.1
etc...
Default route 0.0.0.0 for all of then is 10.10.2.1
I need to set it to 10.10.2.5 just for one particular Vlan leaving 10.10.2.1 for all others

Thank you!
0
 
AkinsdNetwork AdministratorCommented:
Your description was correct. It's just that not too many people interchange default gateway with default route.

To answer your question, yes it is possible.

You will need to configure policy based route maps that will inject a default route based on an access list or distribution list.

http://www.networkworld.com/article/2345134/cisco-subnet/how-to-configure-default-routing-so-different-default-routes-are-used-based-on-the-sour.html
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now