2015 – VLAN-CISCO SWITCH_5.2

———20150428tko: reBlogger———
How to configure VLAN on CISCO SWITCH_5.2.

Home
Networking Fundamental
LAN
WAN
Routers
Switches
Broadband
IP Addressing +
IP Routing / Protocols
Wireless Networking
VLAN and Trunking
Access Control Lists (ACL)
Basic Computer Training
Network Security
Troubleshoot Network
CCNA Exam Questions.
Site Map
Contact Us
———————————————————–
Configuring VLAN on a Cisco Switch.

On this page, we learn how to configure:

* Telnet line & Password
* Console line & Password
* VLAN & Names
* Switch Host Names
* Assigning a Switch Port
* Delete a VLAN

The following is a basic configuration of VLAN on Cisco Switch Interfaces:

Before you begin you must have worked out your IP addresses

We are configuring VLAN ports for three departments:

1. VLAN 10, Name: orbit

2. VLAN 20, Name:cisco

3. VLAN 30, Name: Student

We use the topology below as an example:
image

How to configure CCNA VLAN on Cisco Switch

1. Configuring Telnet line and password:

switch1#config t
Switch1(config)#enable secret cisco
Switch1(config)#line vty 0 15
Switch1(config-line)#password cisco
Switch1(config-line)#login
Switch1(config-line)#exit

2. Configuring console line and password:

Switch1(config)#line con 0
Switch1(config-line)#password cisco
Switch1(config-line)#login
Switch1(config-line)#exit

3. Create and Configure VLANs and Names on Switch:

Switch1#config t

switch1(config)#vlan 10
switch1(config-vlan)#name orbit
switch1(config-vlan)#exit

switch1(config)#vlan 20
switch1(config-vlan)#name cisco
switch1(config-vlan)#exit

Switch1(config)#vlan 30
Switch1(config-vlan)#name student
Switch1(config-vlan)#exit

Switch1(config)#exit

4. To view your configurations, use the show vlan command:-

Switch1#show vlan

VLAN Name Status Ports

—- ——————————– ——— ——————————-

1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4

Fa0/5, Fa0/6, Fa0/7, Fa0/8

Fa0/9, Fa0/10, Fa0/11, Fa0/12

Fa0/13, Fa0/14, Fa0/15, Fa0/16

Fa0/17, Fa0/18, Fa0/19, Fa0/20

Fa0/21, Fa0/22, Fa0/23, Fa0/24

Gig1/1, Gig1/2

10 orbit active

20 cisco active

30 student active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

005 trnet-default active

Switch#

5. How to assign a switchport to a VLAN.

After creating your VLAN, you can assign a switch port to the VLAN .

VLAN 20, is statically assigned to port F0/8 on switch S1:

Switch1#config t
Switch1(config)#interface fa0/2
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 20
Switch1(config-if)#no shut
Switch1(config-if)#exit
Switch1(config)#exit
Switch1#

NB:use the above commands to assign the rest of the VLANs a switchport access.

6. How to delete VLANs

To delete a VLAN, use the global configuration command no vlan vlan-id to remove VLAN 20 from the switch.

e.g.

Switch1(config)#no vlan 20
Switch1(config)#end

7. Use the show vlan brief command to verify that VLAN 20 is no longer in the vlan.dat file.

8. Alternatively, the entire vlan.dat file can be deleted using the command delete flash:vlan.dat from privileged EXEC mode. After the switch is reloaded, the previously configured VLANs will no longer be present. This effectively places the switch into its “factory default” concerning VLAN configurations.

Advertisements

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s