VLAN (Virtual Local Area Network)







Cisco Packet Tracer
3.1.
VLAN


Cisco Packet Tracer

access
trunk.
3.2.













VLAN (Virtual Local Area Network).





Cisco Packet Tracer.
3.3.
VLAN (Virtual Local Area Network) 































;






















;















; 








-












.
38
VLAN 

































[3]










-spoofing.
access port


-



-

trunk port 

















up/up.






VLAN 













- 





port-based, 802.1Q




















VLAN



























VLAN 










VLAN 











VLAN |
VLAN |
Com, Planet, D-Link, Zyxel, HP |
untagged |
Cisco, Juniper native VLAN |
|
39 |
|


VLAN 








, 










VLAN,
-
MAC-


MAC-based




VLAN 





MAC-
MAC- |
VLAN |
|
- |
Protocol-based |
- |
|
|
, |
VLAN



IP-















VLAN
AppleTalk-























































IPv
IPv6
- 












authentication based






















VLAN, 





















, 



















802.1X.
3.4.



3.4.1.

























Cisco 






.4.1. 








VLAN 2 professors
VLAN 3 students. 











40


















VLAN - 










|
|
|
4.1. |
|
|
IP- |
VLAN |
PC0 |
FastEthernet0 |
192.168.2.1 |
2 |
PC1 |
FastEthernet0 |
192.168.2.2 |
2 |
PC2 |
FastEthernet0 |
192.168.2.3 |
2 |
PC3 |
FastEthernet0 |
192.168.2.4 |
2 |
PC4 |
FastEthernet0 |
192.168.3.1 |
3 |
PC5 |
FastEthernet0 |
192.168.3.2 |
3 |
PC6 |
FastEthernet0 |
192.168.3.3 |
3 |
PC7 |
FastEthernet0 |
192.168.3.4 |
3 |
|
FastEthernet0/1 |
- |
2 |
|
FastEthernet0/2 |
- |
2 |
Switch0 Cisco 2960 |
FastEthernet0/3 |
- |
3 |
|
FastEthernet0/4 |
- |
3 |
|
GigabitEthernet0/1 |
- |
2,3 |
|
FastEthernet0/1 |
- |
2 |
|
FastEthernet0/2 |
- |
2 |
Switch1 Cisco 2960 |
FastEthernet0/3 |
- |
3 |
|
FastEthernet0/4 |
- |
3 |
|
GigabitEthernet0/1 |
- |
2,3 |
|
|
|
, |
|
|
|
Desktop |
IP |
Configurations |
IP- |
|



























PC0. 








4.2. 




PC0
41
C:\>ipconfig















PC.





4.3. 








PC0
3.4.2.






access-

















Switch0 Cisco 






























CLI 

















Tab):
Switch>enable
Switch#configure terminal






VLAN 
































VLAN 2:
Switch(config)#vlan 2
Switch(config-vlan)#name professors
Switch(config-vlan)#exit
Switch(config)#interface FastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
42
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit






VLAN 3 (students)
Switch#show vlan 












VLAN 





)



3.4.4. 








VLAN
VLAN 







43
Switch# show vlan brief









.




.4.5. 








VLAN






























VLAN















VLAN 








PC0 





-

ping
PC



PC
PC












C:\>ping 192.168.2.2





4.6. 




-



PC
PC1





4.7. 




-



PC
PC4
44





















Switch0 Cisco 2960,







show running-config 






















FastEthernet0/1-









Switch#show running-config





4.8. 













Switch0




Switch1 Cisco 2960 







3.4.3. 




trunk-






















VLAN 











-


(trunk-





































Switch
Switch













45
Switch#configure terminal Switch(config)#interface gigabitEthernet 0/1 Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 2,3 (






VLAN 2
3)























show runningconfig 






















GigabitEthernet0/1
Switch#show running-config






.





4.9. 













Switch1
46






-



PC1 







VLAN 2 (PC0, PC
PC3) 
VLAN 3 (PC4, PC5, PC
PC



















VLAN 





























.




.4.10. 




-



PC
PC
PC2
VLAN.





.







trunk-





VLAN 
























VLAN 





























trunk-

VLAN 3:
Switch# configure terminal
Switch(config)#interface gigabitEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan 2
Switch(config-if)#end
Switch#show running-config
47
