vlan gateway

Unanswered Question
Aug 14th, 2009
User Badges:


I have one l3 switch. I want to create multiple Vlans on it but at the same time the Gateways for those vlans are different.

This is what is my current config :

ip default-gateway

vlan 3

ip address

untagged 1-24


Now i want to create a new Vlans vlan100 and vlan200 whose default gateway is and resp.

Can anybody help?

How can i assign different gateways for two different Vlans? can we assign different gateway to different vlan?

pls suggest

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
vaib7av.shirkul Fri, 08/14/2009 - 01:02
User Badges:

First create vlan 100 and 200 then follow the steps....

SW#config t

SW(config)#int vlan 100

SW(config-if)#ip add


SW(config)#int vlan 200

SW(config-if)#ip add

add the interface in desired VLANs.

SW(config)#interface range fa0/1 - 10

SW(config-if)#switchport access vlan 100

SW(config)#interface range fa0/11 - 20

SW(config-if)#switchport access vlan 200

interface fa0/1 - 10 users use as a default gateway

and int fa0/11 - 20 users use as a DG.

Hope ur problem sort out !!!

iyde Sun, 08/30/2009 - 10:59
User Badges:
  • Silver, 250 points or more

In a little more details:

The ip default-gateway is the default gateway for the switch, if it is a L2 switch or a L3 switch in L2 mode (i.e. "no ip routing" has been configured).

The default gateway for the end users will be the IP address defined on in your case VLAN 3 for the first network and VLAN 100 and 200 for the other two, as shown in the reply.



This Discussion