VLAN Configuration via CLI on 300/500 Series Managed Switches

Similar documents
Configuring Access and Trunk Interfaces

VLANs. LAN Switching and Wireless Chapter 3. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

CHAPTER 1: VLANS. Routing & Switching

VLANs Level 3 Unit 9 Computer Networks

Command Reference for Voice VLAN

Sybex CCENT Chapter 11: VLANs and Inter-VLAN Routing. Instructor & Todd Lammle

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Port-Based Traffic Control

Chapter 3: VLANs. Routing & Switching

Antonio Cianfrani. Virtual LAN (VLAN)

Configuring the MAC Address Table

T e c h n i c a l D o c u m e n t. Cisco 2960G, 2960S, and 2960X Configuration for WheatNet-IP

The following steps should be used when configuring a VLAN on the EdgeXOS platform:

Cisco Nexus 1000V for KVM Interface Configuration Guide, Release 5.x

Configuring VLANs. Understanding VLANs CHAPTER

1. Which two statements are true about VLAN implementation? (Choose two.)

Lab 5: Basic VLAN Configuration

Configuring VLANs. Understanding VLANs CHAPTER

CCENT Study Guide. Chapter 11 VLANs and Inter-VLAN Routing

VLAN Configuration. Understanding VLANs CHAPTER

For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.

Configuring Q-in-Q VLAN Tunnels

Configuring VLANs. Understanding VLANs CHAPTER

Configuring IEEE 802.3ad LACP EtherChannels on the Cisco MWR 2941

Lecture (03) VLANs. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II 4.0

Configuring VLANs. Understanding VLANs CHAPTER

The Octava HDDSX Matrix System works in conjunction with a Cisco SG-300 series managed Ethernet switch.

Configuring Layer 2 Switching

Configuring Link Aggregation

Configuring VLANs. Understanding VLANs CHAPTER

Layer 2 Engineering VLANs

Configuring Private VLANs Using NX-OS

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Q-in-Q VLAN Tunnels

Lecture (03) VLANs 4.0 PC2 PC1 PC4 PC3. By: Dr. Ahmed ElShafee. Topology. Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II IP

Lecture (06) Design and Configuration LAN Practicing, working on CISCO equipment. By: Dr. Ahmed ElShafee

Configuring Storm Control

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Interface Characteristics

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Link Aggregation

Port ACLs (PACLs) Prerequisites for PACls CHAPTER

Configuring System Port Profiles

Configuring Interface Characteristics

VLANs. CCNA Exploration Semester 3 Chapter Sep-13

Lecture (08) DHCP server L3 switch By: Dr. Ahmed ElShafee Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II

Lecture (04) Using VLANs to segment LANs. Dr. Ahmed M. ElShafee. Dr. Ahmed ElShafee, ACU Spring 2014, Practical Applications in Computer Networks 4.

Understanding and Configuring VTP

Configuring SPAN. Understanding SPAN CHAPTER. This chapter describes how to configure Switched Port Analyzer (SPAN) and on the Catalyst 2960 switch.

Configuring Private VLANs

Cisco Exploration 3 Module 3 LAN Switching and Wireless Jim Johnston Class Notes September 9, 2008


Configuring EtherChannels

Configuring the Switching Infrastructure for Mirage NAC Appliances

Configuring Interfaces

Configuring Storm Control

Configuring sflow. Information About sflow. sflow Agent. This chapter contains the following sections:

Configuring Flex Links

Laboration 2 Troubleshooting Switching and First-Hop Redundancy

Configuring Port-Based Traffic Control

Configuring VN-Segment

Configuring Interfaces

VLANs. Traditional Campus Networks. Performance Issues. Broadcast Issues. Bridges terminate collision domains

VLANs. 2003, Cisco Systems, Inc. All rights reserved. 2-1

VLANs. 2003, Cisco Systems, Inc. All rights reserved. 2-1

Configuring VTP. Understanding How VTP Works CHAPTER


Overview. About the Catalyst 2820 and Catalyst 1900 Switches CHAPTER

Multicast VLAN Registration (MVR)

Configuring DHCP Features and IP Source Guard

Configuring IP Unnumbered Interface

Vendor: Cisco. Exam Code: Exam Name: Cisco Interconnecting Cisco Networking Devices Part 1 (ICND1 v3.0) Version: Demo

Using Switches with a PS Series Group

22 Cisco IOS Commands for the Catalyst 4500 Series Switches interface

Configuring IGMP Snooping

Configuring SPAN and RSPAN

Lab 1. CLI Navigation. Scenario. Initial Configuration for R1

Configuring Port Channels

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Configuring Q-in-Q VLAN Tunnels

Configuring Port-Based Traffic Control

Configuring Private VLANs

Configuring SPAN and RSPAN

Monitor Commands. monitor session source, page 2 monitor session destination, page 4

Configuring Layer 2 Switching

Configuring Port Security

Lab Using the CLI to Gather Network Device Information Topology

Configuring Traffic Storm Control

Configuring Port-Based Traffic Control

Lab Catalyst 2950T and 3550 Series Static VLANS

Configuring Port-Based and Client-Based Access Control (802.1X)

On the Cisco Nexus 5548 Switch, Fibre Channel ports and VSAN ports cannot be configured as ingress source ports in a SPAN session.

Configuring Interface Characteristics

Table of Contents 1 Port Mirroring Configuration 1-1

Configuring IGMP Snooping and MVR

Cisco 4-Port and 8-Port Layer 2 Gigabit EtherSwitch Network Interface Module Configuration Guide for Cisco 4000 Series ISR

CCNA 1 Chapter 5 v5.0 Exam Answers 2013

Switched Ethernet Virtual LANs

Application Notes for Mirage Networks CounterPoint in an Avaya IP Telephony Infrastructure Issue 1.0

Lenovo NE1032 and NE1032T Switch

Transcription:

Article ID: 4986 4986 - VLAN Configuration via CLI on 300/500 Series Managed Switches Objective VLANs allow you to logically segment a LAN into different broadcast domains. In scenarios where sensitive data may be broadcast on a network, VLANs can be created to enhance security by designating a broadcast to a specific VLAN. Only users that belong to a VLAN are able to access and manipulate the data on that VLAN. VLANs can also be used to enhance performance by reducing the need to s broadcasts and multicasts to unnecessary destinations. The objective of this document is to show you how to configure a basic VLAN via the Line Interface (CLI) on 300 and 500 Series Managed Switches. Applicable Devices Cisco Small Business 300 Series Managed Switches Cisco Small Business 500 Series Managed Switches Software Versions 1.4.0 Basic VLAN Configuration Step 1. Login to the switch s Line Interface (CLI). Note: For more information on how to access the CLI, refer to the article Access the CLI on 300 and 500 Switches via PuTTY using SSH and Telnet.

Creating a VLAN Step 1. Enter the following commands to create a VLAN: config vlan database vlan <ID> Enter VLAN database mode. Create a new VLAN with an ID specified. The following screenshot shows the steps required to create a VLAN with an ID of 200. Step 2. (Optional) Enter the following command to display VLAN information: show vlan Display VLAN information. Note: The VLAN information table will vary deping on the type of switch you are using. For example, SF-type switches may have a Type and Authorization field as opposed to a Creators field. The Ports field will also vary since different switches have different port types and numbering schemes. The created VLAN is displayed: Note: VLAN 1 is the default VLAN, which by default, includes all possible ports on the switch. Ports that are numbered with gi are Gigabit Ethernet (individual links). Ports that are numbered with fa are Fast Ethernet (individual links). Ports that are numbered with Po are port-channels (a group of Ethernet links).

Assigning a Port to a VLAN Once the VLANs are created, you need to assign the ports to the appropriate VLAN. You can configure ports using the switchport command and specify whether the port should be in access or trunk mode. The port modes are defined as follows: Access frames received on the interface are assumed to not have a VLAN tag and are assigned to the VLAN indicated by the command. Access ports are used primarily for hosts and can only carry traffic for a single VLAN. Trunk frames received on the interface are assumed to have VLAN tags. Trunk ports are for links between switches or other network devices and are capable of carrying traffic for multiple VLANs. Note: By default, all interfaces are in trunk mode, which means they can carry traffic for all VLANs. Step 1. Enter the following commands to configure an access port: conf t int <port number> switchport mode access switchport access vlan <ID> no shut Enter interface configuration mode for the specified port number. Gigabit Ethernet, Fast Ethernet and port-channels are valid. Sets the interface as a nontrunking nontagged single- VLAN Ethernet interface. An access port can carry traffic in one VLAN only. Specifies the VLAN for which this access port will carry traffic. Turn on (enable) the port. The following screenshot shows the steps required to configure the Gigabit Ethernet port (gi2) as an access port and assign it to VLAN 200.

Step 2. (Optional) Enter the show vlan command to see your assigned port. Step 3. Enter the following commands to configure a trunk port and specify that only certain VLANs are allowed on the specified trunk: config int <port number> switchport mode trunk switchport mode trunk allowed vlan add <ID> no shut Enter interface configuration mode for the specified port number. Gigabit Ethernet, Fast Ethernet and portchannels are valid. Make the specified port number aware of all VLANs. Makes the port a member in the specified VLAN ID and gives it an Egress Rule: Tagged. This means packets are tagged with the VLAN ID as they leave this port on the device. Turn on (enable) the port. Note: In trunk mode, all VLANs are allowed by default. Using the switchport trunk allowed vlan command lets you configure the VLANs allowed on the trunk. The following screenshot shows the steps required to set the Gigabit Ethernet port (gi3) as a trunk port and add it to VLAN 200:

Step 4. (Optional) Enter the show vlan command to see your changes. Step 5. (Optional) Enter the following command to display information about a port: show interfaces switchport <port number> Displays information such as VLAN membership, the Egress rule, and forbidden VLANs for the specified port.