TEXT 26
Data Communication and Networks Guest on 18th April 2022 10:35:14 AM
  1. VLAN stands for virtual Local Area Netwrok
  2.  
  3. Advantages of using VLANs:
  4. Improves the performance as local networks are divided
  5. It improves the security as local networks are divided
  6. Provides Quality Of Service
  7. To place an restriction on the specific local networks
  8.  
  9. VLANs are implemented on switch and SWITCH uses layer 2 technology
  10.  
  11.  
  12. To find out the vlan information:
  13. show vlan brief
  14.  
  15. By default, VLAN 1 is setup which is configured for all the ports of the switch.
  16.  
  17. VLAN 1 is also called the native VLAN.
  18.  
  19. vlan 10
  20. to get configure vlan
  21.  
  22.  
  23. use do to show vlan in conf t mode
  24. do show vlan brief
  25.  
  26. show flash
  27. to show all the files stored in switch
  28. .bin is the image file of the operating system
  29.  
  30. vlan.dat stores all the VLANs.
  31. To remove all the VLANs, simply remove vlan.dat
  32. to delete the vlan data file
  33. delete vlan.dat
  34. reload
  35. do not save the configuration and write no on reload
  36.  
  37. Assigning the ports to the VLAN
  38. interface fastEthernet 0/1
  39. changing the mode of switch
  40. switchport mode access
  41.  
  42. there are two modes of switch
  43. access and trunk
  44.  
  45. by default, switch consists of dynamic auto port which automatically determines the mode.
  46. switchport access vlan 10 - to access the vlan 10
  47.  
  48. to access the range
  49. interface range fastEthernet 0/1 - fastEthernet 0/10
  50. switchport mode access
  51. switchport access vlan 2
  52.  
  53. short form of writing range
  54. int range fa 0/10 - fa 0/15
  55.  
  56. another short form of writing the range
  57. int range fa 0/16-20
  58.  
  59. If there is another switch then the other switch must also have the same amount of VLAN
  60. The VLAN number must be same throughout all the switches but the name does not matter.
  61.  
  62. Switch to Switch must be set to trunk to allow the communication
  63. Trunk port tags all the packets with VLAN Number.
  64.  
  65. int g 0/1
  66. switchport mode trunk
  67. This will be set on the port the other switch is connected to
  68. Both switch needs to be set to the trunk.
  69.  
  70. Trunk port is not visible in the VLAN information
  71. show int trunk
  72. shows the trunk interface ports and shows the tagging information.

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.