search the web

Saturday, February 13, 2016

CONFIGURING VLANS

CONFIGURING VLANS

-----------------------
There are four steps to configure VLANS

1.Configure Trunks (EtherChannel)
2.Configure VTP
3.Configure VLANS
4.Assign Ports to VLAN.

Configure on WC_S1
1.Configure Trunks
WC_S1

interface range fa0/23 -24
switchport mode Trunk
!This command hardcodes these ports as trunk port.
no shut
exit

For configuring Ether-channel we do
interface fa0/23 -24
channel-group 1 mode desirable
!means the ports are desirable to become one channel and this command will make a new port called as port channel 1.
exit
interface po1

switchport mode trunk
no shut
exit


WC_S2

interface range fa0/23 -24
switchport mode Trunk
!This command hardcodes these ports as trunk port.
no shut
exit

interface fa0/23 -24
channel-group 1 mode desirable
!means the ports are desirable to become one channel and this command will make a new port called as port channel 1.
switchport mode trunk
no shut
exit

2.Configure VTP
WC_S1
conf t
vtp domain networkers
!this enables the vtp domain name as networkers
vtp password cisco
!This assigns the password so that no rogue switch can connect to our vtp domain.

vtp mode server (This is the default one)

WC_S2
conf t
vtp domain networkers
!this enables the vtp domain name as networkers
vtp password cisco
!This assigns the password so that no rogue switch can connect to our vtp domain.

vtp mode client

show vtp status
!shows the status of vtp,its revision number and the md5 hash. The md5 hash must be same between both the switches to share vlan information. MD5 hash is calculated from the vtp domain and vtp password.

show vlan brief
!shows the number of vlans in your switch.

3.Configure VLANS
WC_S1
conf t
vlan 10
name sales
exit
vlan 20
name IT
exit
vlan 30
name Engineering
exit

Now the vlan information must replicate from the vtp server to the client

WC_S2
show vlan brief
!you must see the vlans created.

4.Assign Ports to VLAN.
WC_s1
conf t
interfac range fa0/1 -10
switchport mode access
switchport access vlan 10
exit

WC_S2
conf t
int rang fa0/1 -12
switchport mode access
switchport access vlan 20
exit
interface range fa0/13 -15
switchport mode access
switchport access vlan 10
exit

interface range fa0/16 -20
switchport mode access
switchport access vlan 30
exit

show vlan brief
!you will see the ports that are mapped to each vlan.


For initial configuration of Router, Switch or AP click
initial configuration of Router, Switch or AP


No comments: