logo__splash
gray_bg

In this tutorial, we are going to set up a simple routed LAN. The scenario will illustrate how you would connect multiple workgroup switches, configure & route between VLANs. The following is a diagram illustrating how we are going to interconnect the core layer 3 switch with the three workgroup switches.

 

The design is simple. One VLAN and subnet per workgroup switch. Each end user that connects to a workgroup switch will point to the appropriate layer 3 VLAN interface on the core switch as its default gateway. Because the core switch is a layer 3 switch (router), we must configure both layer 2 VLANS & layer 3 VLAN interfaces. Here’s the configuration:

Config Tips:
Site Map / Legal / © Copyright 2006 enetworktutor.com

Typically by default, the vlan1 (layer 3) interface is already in the Cisco switch configuration. In this particular design, you should administratively shut down the interface. Also, make sure you assign the correct VLAN to the access ports that are cabled up to client's workstations. The default per-port setting (vlan 1) will not work in this environment.

VLANs & InterVLAN Routing
SYNTAX DESCRIPTION

layer 3 switch

 
conf t Enter global configuration mode
vlan 10  Creates (layer 2) VLAN 10
vlan 20 Creates (layer 2) VLAN 20
vlan 30 Creates (layer 2) VLAN 30
exit Leaves vlan-config mode
interface f0/1 Enter interface-config mode
switchport access vlan 10    Assigns port to VLAN 10
interface f0/2                             Enter interface-config mode
switchport access vlan 20          Assigns port to VLAN 20
interface f0/3 Enter interface-config mode
switchport access vlan 30 Assigns port to VLAN 30
exit Leaves interface-config mode
interface vlan10 Creates layer 3 VLAN interface
ip address 10.1.1.1 255.255.255.0                       Assigns IP address to interface (gateway address for VLAN 10)
no shut Enables interface
interface vlan20 Creates layer 3 VLAN interface
ip address 10.1.2.1 255.255.255.0                       Assigns IP address to interface (gateway address for VLAN 20)
no shut Enables interface
interface vlan30 Creates layer 3 VLAN interface
ip address 10.1.3.1 255.255.255.0                       Assigns IP address to interface (gateway address for VLAN 30)
no shut Enables interface
   
SYNTAX DESCRIPTION

workgroup switch 1

conf t Enter global configuration mode
vlan 10 Creates (layer 2) VLAN 10 
interface vlan10 Creates layer 3 VLAN interface
ip address 10.1.1.2 255.255.255.0                       Assigns IP address to switch for management
no shut Enables interface
interface f0/1 Enter interface-config mode
switchport access vlan 10 Assigns port to VLAN 10 (do the same for every user port that will be off vlan 10).
exit Return to global-config mode
ip default-gateway 10.1.1.1 Creates default route for management purposes
   
SYNTAX DESCRIPTION

workgroup switch 2

conf t Enter global configuration mode
vlan 20 Creates (layer 2) VLAN 20
Interface vlan20 Creates layer 3 VLAN interface
ip address 10.1.2.2 255.255.255.0                       Assigns IP address to switch for management
no shut Enables interface
interface f0/1 Enter interface-config mode
switchport access vlan 20 Assigns port to VLAN 20 (do the same for every user port that will be off vlan 20).
exit Return to global-config mode
ip default-gateway 10.1.2.1 Creates default route for management purposes
   
SYNTAX DESCRIPTION

workgroup switch 3

conf t Enter global configuration mode
vlan 30 Creates (layer 2) VLAN 30
interface vlan30 Creates layer 3 VLAN interface
ip address 10.1.3.2 255.255.255.0                       Assigns IP address to switch for management
no shut Enables interface
interface f0/1 Enter interface-config mode
switchport access vlan 30 Assigns port to VLAN 30 (do the same for every user port that will be off vlan 30).
exit Return to global-config mode
ip default-gateway 10.1.3.1 Creates default route for management purposes