راه اندازی Vlan در سوییچ سیسکو

???? ??? ????????? ?? ?????? ???? ?????. ?? ?? ????? ???? ????? ?????? ??? ???? ????? ????? ?????? ????? ?? ?? ??? ?? ????? ????. ?????? ??? ????? ?? ?? ???? ? ?????? ?????? ???? ?? ????. ???? ??? ????? ? ????? ????? ??? ???? ???? ???? ?? ??? ?? ???? ??? ?????? VLAN ?? ????? ????? ?? ????.
?? ??? ???? ????? ??? ?????? VLAN ?? ?? ?? ?????? ???? ?? ?? ???????. ??????? ????? ???? ??? ?? ?????? ??????? ?? ?? ??? ????? ? ?????? ? ????? ?? ???? ????.
????? ???????: VLAN ???? ?????
????? ???????: ?????? ?? ????? ???? ???? ????
??? ??? ???? ????? ?? ?? ?? ???? ???? ??? ??????. ?????? ?? ??? ????? ??? Local VLAN ?? ????. ?? ????? ?? ??? End to End ?? ????? ?????? ?? ????? ????? ?? ?????? ?? ?? ??? ?? ????? ???? ??????.
?? ??????? 3 ???? ?? ?????? ????? ?? ????? ?? ???? ???? ??? ? ???????? ??? ?????? VLAN ?? ????? ??? ????? ?? ??? ?? ????? ????.
????? ??? ????? ?? ??? Access ? ???? 2 ?? ?????. ?? ???? ???? ?? ????? Core ???? 3 ?? ????? ?? ???? ???????? ?????. ?????. ????? ????? ??? ????? ?? ??? ????? ???? ?????.?????? ???? ?? ??? ?? ??? ????? ??? ?????.
?? ???? ????? VoIP ?? ?????. ?? ?? ???? ????? ?? ????? ? ?? ???? ?????? ???? ???.
????? VLAN ?? ??????? ??? ?? ????? ????? ???? ?? ?? Core Switch ????? ??? ? ?? ???? ????? ???. ?? ??? ?????? ?? ??? ??? ?? ????? ??????.

??????? ??? ?????? VLAN ?? ????? ?????
??????? Core Switch ???? VLAN
????? ???? ???? ???? ?? ?? ????? ?????? ???? ? ??? ??????? ?? ??? ???? ???? ????.
- ???? ??? 1 ??? 3 ?? ???? ??? ????? ?? ??? ????? ???.
- ???? ?? ?? ??? ????? ???? ??????.
- ????????? Dot1q ?? ??? ???? ?? ????? ??????.
SW-CORE> enable
SW-CORE# configure terminal
SW-CORE(config)# interface range gig 1/0/1 – 3
SW-CORE(config-if)# switchport mode trunk
SW-CORE(config-if)# switchport trunk encapsulation dot1q
SW-CORE(config-if)# exit
SW-CORE(config)#
??? ???? ?? ?????? ??? ????? ??? ” 1 ? 3? ? “-” ????? ???? ????.
????? ????? ?? ?? ?? ???? VLAN ???? ??????. ?? ??? ? ????? ?????? ???? ????? ?? ?? ??? ???????.
SW-CORE(config)# vtp mode server
SW-CORE(config)# vtp domain TIMANET
SW-CORE(config)# vtp password MYPASSWORD
???? ????? VLAN ?? ???. ?? VLAN ?? ?? ????? ????? ?????.
- ?? ??? ???? Vlan 101,102,103 ?? ???? ???? ??? ?? ??? ?? ??? ???????.
- VLAN 150 ?? ?? ???? VoIP ? 160 ?? ???? ???? ?? ????? ???? ???.
SW-CORE(config)# vlan 101
SW-CORE(config-vlan)# name FIRST-FLOOR
SW-CORE(config-vlan)# exit
SW-CORE(config)# vlan 102
SW-CORE(config-vlan)# name SECOND-FLOOR
SW-CORE(config-vlan)# exit
SW-CORE(config)# vlan 103
SW-CORE(config-vlan)# name 3RD-FLOOR
SW-CORE(config-vlan)# exit
SW-CORE(config)# vlan 150
SW-CORE(config-vlan)# name VOICE
SW-CORE(config-vlan)# exit
SW-CORE(config)# vlan 160
SW-CORE(config-vlan)# name SERVERS
SW-CORE(config-vlan)# exit
SW-CORE(config)#
- ???? ?? VLAN ?? ??? IP ?? ??? ???????. ?? IP ?? ??? ??? ?? ?? ??? VLAN ??????.
- ?? DHCP ???? ?? ???? ????? ?? ?? ??? ???? ???????? ??????. IP ???????? 192.168.100.1 ???.
- ???? VLAN ?? ???? ??? DHCP Server ????? ???. ???? ??? ????? ?? DHCP Helper ??????? ??????.
- ?? ???? UPLINK ?? ?? ???????? ??? ??????.
- ???? 24 ?? ?? ???? VoIP ? ???? 23 ?? ?? ???? ???? ?????? ??????.
- ?? IP ?? ????? ?????? ??????. ??? IP ??? VLAN 1 ???? ?????? ?? Native VLAN ???.
SW-CORE(config)# interface vlan 1
SW-CORE(config-if)# ip add 192.168.100.3 255.255.255.0
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 101
SW-CORE(config-if)# ip add 192.168.101.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 102
SW-CORE(config-if)# ip add 192.168.102.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 103
SW-CORE(config-if)# ip add 192.168.103.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 150
SW-CORE(config-if)# ip add 192.168.150.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 160
SW-CORE(config-if)# ip add 192.168.160.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/0/23
SW-CORE(config-if)# switchport mode access
SW-CORE(config-if)# switchport access vlan 160
SW-CORE(config-if)# description DATA SERVER PORT
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/0/24
SW-CORE(config-if)# switchport mode access
SW-CORE(config-if)# switchport access vlan 150
SW-CORE(config-if)# description VOIP SERVER PORT
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/1/1
SW-CORE(config)# no switchport
SW-CORE(config-if)# ip add 192.168.100.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
- ???? ?????? ? ?????? ?? IP ?? ????? ?????? ??????.
- ???? 23 ?? ???? ???? VoIP ? 24 ?? ???? ???? ???? ?? ??? ???????. ?? ???? ???? ???? ??? ?????? ?????? ??????.
SW-CORE(config)# interface vlan 1
SW-CORE(config-if)# ip add 192.168.100.3 255.255.255.0
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 102
SW-CORE(config-if)# ip add 192.168.102.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 103
SW-CORE(config-if)# ip add 192.168.103.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 150
SW-CORE(config-if)# ip add 192.168.150.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface vlan 160
SW-CORE(config-if)# ip add 192.168.160.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/0/23
SW-CORE(config-if)# switchport mode access
SW-CORE(config-if)# switchport access vlan 150
SW-CORE(config-if)# description VOIP SERVER PORT
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/0/24
SW-CORE(config-if)# switchport mode access
SW-CORE(config-if)# switchport access vlan 160
SW-CORE(config-if)# description DATA SERVER PORT
SW-CORE(config-if)#exit
SW-CORE(config)# interface gig 1/1/1
SW-CORE(config)# no switchport
SW-CORE(config-if)# ip add 192.168.100.2 255.255.255.0
SW-CORE(config-if)# ip helper-address 192.168.100.1
SW-CORE(config-if)#exit
?????? ?? ???? ??????? ?? VLAN ?? ?????? ?? ??????. ??? ?? ??? ??????? ?? ?? ????? ??????.
SW-CORE(config)# ip routing
SW-CORE(config)# ip route 0.0.0.0 0.0.0.0 gig 1/1/1
???? VLAN ?? ?? ????? ??????.
SW-CORE(config)# int gig 1/0/1
SW-CORE(config-if)# switchport trunk allowed vlan 1,101,200
SW-CORE(config-if)# exit
SW-CORE(config)# int gig 1/0/2
SW-CORE(config-if)# switchport trunk allowed vlan 1,102,200
SW-CORE(config-if)# exit
SW-CORE(config)# int gig 1/0/3
SW-CORE(config-if)# switchport trunk allowed vlan 1,103,200
SW-CORE(config-if)# exit
??????? Access Switches ???? ??? ?????? Vlan ?? ????? ?????
????? ???? ???? ??? ???? ? ????? ?? ???? ????. ??? ??????? ?? ??? ???? ???? ????.
- ???? ??? 1 ??? 20 ?? ???? ???? ?? ??? ????? ???.
- ???? 24 ?? ???? Uplink ?? ??? ???????.
????: ?? ???? Access ?????? ?? ?? Network VLAN ? ?? Voice VLAN ??????? ???? ?????.
SW-101(config)# interface range gig 1/0/1 – 20
SW-101(config-if)# switchport mode access
SW-101(config-if)# switchport access vlan 101
SW-101(config-if)# switchport voice vlan 150
SW-101(config-if)# exit
SW-101(config)# interface gig 1/0/24
SW-101(config-if)# switchport mode trunk
SW-101(config-if)# switchport trunk encapsulation dot1q
SW-101(config-if)# exit
????? ?? ?? ?? ?????? VLAN ???? ??????. ??? ? ?????? ?? ?? ????? ??? ????? ????? ?? ?? ????? ???? ??????.
SW-101(config)# vtp mode client
SW-101(config)# vtp domain TIMANET
SW-101(config)# vtp password MYPASSWORD
???? ??? ?? ?? ????? ?? ?????? ????? ????? ?? IP ?? ?? ?? ??????. ??? ?? ???? ? ????? ?? ?????? ? ?????? ?? ??? ??????.
VLAN 1 ?? Native VLAN ????? ??? ? ?????????? ???? ???? ??? ????? ???.
SW-101(config)# int vlan 1
SW-101(config-if)# ip address 192.168.101.3 255.255.255.0
SW-101(config-if)# exit
SW-101(config)# username MYUSER password MYPASSWORD
SW-101(config)# enable password MYPASSWORD
SW-101(config)# line vty 0 4
SW-101(config-line)# login local
SW-101(config-line)# transport input telnet ssh
SW-101(config-line)# exit
???? ???? ????? ?? ??? ??? ??? ?? ????? ??????.
????? ???????? ???? ?????? ?? VLAN ?????
- ?? ??? ????? Winbox ???? ??? ?? ????? Interfaces ?? ?????? ??????.
- ?? ????? ??? ??? ?? ???? ???? ????? VLAN ?? ?????? ??????.
- ???? “+” ?? ?????? ?? ?? VLAN Interface ????? ????.
- ?? ????? ??? ??? ?? ??? ?? ?? ?????? ????? VLAN-101
- ????? VLAN ID ?? ????? ????? VLAN ???? ??????.
- ????????? ?? ????? ????? ???? ??? ?? ?????? ??????.

??? OK ???? ?????? ?? ??????? ????? ???. ???? ??? ?? ???? ???? VLAN ?? ????? ??????.
- ?? ????? VLAN ?? IP ?????? ??????. ???? ?????? ?? ???? ??? ?? IP > Address ?? ??????.
- ?? ????? ??? ??? “+” ?? ??? ? ?? IP ?? ??? VLAN ?? ?? ?????? ??????.

??? OK ???? ?????? ?? ??????? ????? ???. ???? ??? ?? ???? ???? VLAN ?? ????? ??????.
- ????? ?? ???? ??? ?? ????? IP > DHCP Server ?? ?????? ??????.
- ?? ????? ??? ??? ?? ?? DHCP ????? DHCP Setup ?? ??????.
- ?? ????? ??? ??? ???????? ????? ?? ????? ??? ?? ?????? ?????? ? Next ?? ??????.

- DHCP Address Space: ??? IP ??? ???? ?? ? ????? 192.168.101.0/24 ???.
- Gateway for DHCP Network: ??? ?? ????? ??? ?? ????? ?? ??? ? ????? 192.168.101.2 ???. (IP VALN ?? ?? ??? ????? ??????? ?? ???? ???)
- Addresses to Give Out: ??? IP ?????? ???? ??? ?? ??????? ???. ???? 192.168.101.43 – 192.168.101.20
- DNS Servers: DNS ??? ??? ?? ????? ??????.
- Lease Time: ??? ????? ?? IP ???? ????? ???? ???? ?? ????
??? ??? ?????? VLAN ?? ????? ????? ?? ?? ???? ???? ???? ??? ????? ?????. ?????? ????? ??? ????? ???? ????? ??? ? ???? ??? ???? ????? ??? ????.
??????? :
???? ??????
???? :

