Selasa, 02 Agustus 2011

How To Configure VLAN On A Switch


VLAN is a technique to separate a network into several parts that are not connected to each other. basically, a computer network with an IP address with the same class, will be connected by itself. with this VLAN are usually grouped into several groups. and each group can not be connected with other groups. for the configuration we can see as below:



Switch#enable
Switch#conf term
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name admin
Switch(config-vlan)#vlan 3
Switch(config-vlan)#name 4
Switch(config-vlan)#vlan 3
Switch(config-vlan)#name produksi
Switch(config-vlan)#vlan 4
Switch(config-vlan)#name SDM
Switch(config-vlan)#vlan 5
Switch(config-vlan)#name operator
Switch(config-vlan)#vlan 6
Switch(config-vlan)#name marketing
Switch(config-vlan)#vlan 7
Switch(config-vlan)#name manager
Switch(config-vlan)#int fa 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#int fa 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#int fa 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#int fa 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#int fa 0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch(config-if)#int fa 0/6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch(config-if)#int fa 0/7
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 5
Switch(config-if)#int fa0/8
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 5
Switch(config-if)#int fa0/9
Switch(config-if)#switchport access vlan 6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 6
Switch(config-if)#int fa0/10
Switch(config-if)#switchport access vlan 6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 6
Switch(config-if)#int fa0/11
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 7
Switch(config-if)#int fa0/12
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 7
Switch(config-if)#^Z
%SYS-5-CONFIG_I: Configured from console by console
Switch#show vlan brief

VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
2 admin active Fa0/1, Fa0/2
3 produksi active Fa0/3, Fa0/4
4 SDM active Fa0/5, Fa0/6
5 operator active Fa0/7, Fa0/8
6 marketing active Fa0/9, Fa0/10
7 manager active Fa0/11, Fa0/12
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#
%LINK-5-CHANGED: Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up
%LINK-5-CHANGED: Interface FastEthernet0/12, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up

2 komentar:

Mari Berkomunitas di Faceblog mengatakan...

sukses buat blognya,,, contentnya keren-2 sob,,,,, salam kenal by : rofingi.com

nircable mengatakan...

terimakasih gan. moga jaya terus

Poskan Komentar

leave a comment please !
just comment, doesn't spam.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | coupon codes