- VLAN stands for virtual Local Area Netwrok
- Advantages of using VLANs:
- Improves the performance as local networks are divided
- It improves the security as local networks are divided
- Provides Quality Of Service
- To place an restriction on the specific local networks
- VLANs are implemented on switch and SWITCH uses layer 2 technology
- To find out the vlan information:
- show vlan brief
- By default, VLAN 1 is setup which is configured for all the ports of the switch.
- VLAN 1 is also called the native VLAN.
- vlan 10
- to get configure vlan
- use do to show vlan in conf t mode
- do show vlan brief
- show flash
- to show all the files stored in switch
- .bin is the image file of the operating system
- vlan.dat stores all the VLANs.
- To remove all the VLANs, simply remove vlan.dat
- to delete the vlan data file
- delete vlan.dat
- reload
- do not save the configuration and write no on reload
- Assigning the ports to the VLAN
- interface fastEthernet 0/1
- changing the mode of switch
- switchport mode access
- there are two modes of switch
- access and trunk
- by default, switch consists of dynamic auto port which automatically determines the mode.
- switchport access vlan 10 - to access the vlan 10
- to access the range
- interface range fastEthernet 0/1 - fastEthernet 0/10
- switchport mode access
- switchport access vlan 2
- short form of writing range
- int range fa 0/10 - fa 0/15
- another short form of writing the range
- int range fa 0/16-20
- If there is another switch then the other switch must also have the same amount of VLAN
- The VLAN number must be same throughout all the switches but the name does not matter.
- Switch to Switch must be set to trunk to allow the communication
- Trunk port tags all the packets with VLAN Number.
- int g 0/1
- switchport mode trunk
- This will be set on the port the other switch is connected to
- Both switch needs to be set to the trunk.
- Trunk port is not visible in the VLAN information
- show int trunk
- shows the trunk interface ports and shows the tagging information.
Recent Pastes