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

VLAN Subnets

ccooper77
Level 1
Level 1

We recently installed and will be migrating to a catalyst 3850 switch stack in our environment and need to know how to assign a subnet to a vlan?  I've looked in the documentation and being new to Cisco and CLI, couldn't see where to configure this.

1 Reply 1

Jon Marshall
Hall of Fame
Hall of Fame

You create the vlan at L2 in the vlan database -

switch(config)# vlan <vlan ID>
switch(config-vlan)# name <vlan name>

then you create a L3 interface for the vlan (SVI) -

switch(config)# int vlan <vlan ID>
switch(config-if)# ip address x.x.x.x <subnet mask>

then you allocate ports into that vlan and any clients are allocated an IP from the same subnet and their default gateway is the SVI IP address above.

Jon