jump to navigation

Design of a simple VLAN September 1, 2008

Posted by Ravindu Jayalath in Technical.
trackback

VLAN are very important in case of limiting broadcast traffic and security and so on. So it is very important to learn how to configure a VLAN. Here are basic steps to da that.

According to the diagram fastethernet0/1 and fastethernet0/24 of switch 0 and fastethernet0/1 of switch 1 are trunk ports as every VLAN traffic goes through that ports.

Then fastethernet0/2 and fastethernet0/3 of Switch 0 and fastethernet0/2 and fastethernet0/3 of switch 1 are access links as they are conneted to particular VLANs.

Then here we have two switches. So we have to define Vlan Trunking Protocol to send VLAN information of one switch to other. There both switches should be in the same VTP domain and one Shoul be VTP Server.

When we create VLANs first we need to create and then we need to name the VLAN.

Now lets consider the step by step configurations.

Switch 0:

interface FastEthernet0/1

switchport mode trunk

interface FastEthernet0/24

switchport mode trunk

Switch 1:

interface FastEthernet0/1

switchport mode trunk

Trunking is done. Next we define the Vlan Trunking Protocol(VTP).

Switch 0:

vtp mode server

vtp domain MYVLAN

Switch 1:

vtp mode client

vtp domain MYVLAN

Now we will create VLANs.As we define VTP we need to do this in server switch only.

Switch 0:

vlan 2

name VLAN2

vlan 3

name VLAN3

Then we have to assign particular switch port to the appropriate VLAN.

Switch 0:

int fa0/2

switchport access vlan 2

int fa0/3

switchport access vlan 3

Switch 1:

int fa0/2

switchport access vlan 3

int fa0/3

switchport access vlan 2

Now everything is done. We can confirm it as shown below.

Switch#show vtp status
VTP Version                     : 2
Configuration Revision          : 4
Maximum VLANs supported locally : 64
Number of existing VLANs        : 7
VTP Operating Mode              : Server
VTP Domain Name                 : MYVLAN
VTP Pruning Mode                : Disabled
VTP V2 Mode                     : Disabled
VTP Traps Generation            : Disabled
MD5 digest                      : 0x44 0xD9 0x26 0x26 0xB2 0x45 0xC0 0xBF
Configuration last modified by 0.0.0.0 at 3-1-93 00:30:27
Local updater ID is 0.0.0.0 (no valid interface found)

Switch#show vlan brief

VLAN Name                             Status    Ports
—- ——————————– ——— ——————————-
1    default                          active    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
2    VLAN2                           active    Fa0/2
3    VLAN3                           active    Fa0/3
1002 fddi-default               active
1003 token-ring-default    active
1004 fddinet-default           active
1005 trnet-default               active

Yo! man you are done with VLANs. Have fun

Comments»

No comments yet — be the first.

Leave a comment