Switches, Hubs, and Modems
1748142 Members
3705 Online
108758 Solutions
New Discussion юеВ

Re: Default Gateways \ Static Routing \ 3x VLANs

 
SOLVED
Go to solution
Karl Collinson
Frequent Advisor

Default Gateways \ Static Routing \ 3x VLANs

Afternoon All,
Setting up a LAB with a few switches..

Need a question answering regarding the Routing and VLAN location of the Router (Gateway).

Currently have: -
Default VLAN - 1 <172.0.0.254>
Data VLAN - 10 <190.10.0.254>
VoIP VLAN - 20 <172.1.0.254>

Layer 3 routing is enabled.

Should i place the ISP's router in the default VLAN and input the static routings on the router for the Data and VoIP and then 0.0.0.0 0.0.0.0 RO.UT.ER.IP on the Main Switch?

Or does it not matter what VLAN the Router is located in? As long as the local IP of the router is within the same Subnet as the VLAN itтАЩs a member of?

Thx,
K

PS, In the past Ive always stuck the router in the Default VLAN with static routes.
3 REPLIES 3
Mohieddin Kharnoub
Honored Contributor
Solution

Re: Default Gateways \ Static Routing \ 3x VLANs

Hi

If your Routing is enabled, then the 3 Vlans will be routed to each other,

Then for the Default Route, you can place this router in any Vlan, and once you do that, you should do 2 things :

- Enter the default route on the switch: ip route 0.0.0.0/0 Router_IP
- On the router: Enter 2 Static Routes back to the other Vlans.

Example: If you place the router in Vlan1, then you should inform the Router how to reach Vlan2 and Vlan3 by entering a static routes back:

ip route 190.10.0.0/mask 172.0.0.254
ip route 172.1.0.0/mask 172.0.0.254

I believe you can enter these static routes either from the CLI or from the WEB Interface on that Router.

Good Luck !!!
Science for Everyone
Karl Collinson
Frequent Advisor

Re: Default Gateways \ Static Routing \ 3x VLANs

Thx for your reply..
Why do i need to enter static IP routes from one vlan to another?

Ive used the Ip route command and all devices can spk across the diff VLANS\subnets...

"I understand using them for the router"

Thx,
K
Karl Collinson
Frequent Advisor

Re: Default Gateways \ Static Routing \ 3x VLANs

Thx