Link between VLAN and Trunk
VLAN
Broadcast: content of specific notice
Broadcast domain: the range that receives the same broadcast
The role of dividing broadcast domains: reducing the number of meaningless broadcasts in the network
Ways to divide broadcast domains: VLAN, routers
1. Function: logically divide broadcast domains
two。 Implementation of VLAN: static VLAN, dynamic VLAN
3. Static VLAN Port ran
1) 0 and 4095: the system comes with it, and users cannot use it or delete it.
2) 1: the switch defaults to VLAN, which can be used by users but cannot be deleted
3) 2-1001: the switch does not exist by default. Users need to create it by themselves, which can be used and deleted.
4) 1002-1005: user token ring can be used by users but cannot be deleted
5) 1006-1024: the system comes with it. Users cannot use it and cannot delete it.
6) 1025-4094: the switch cannot exist by default. Expand VLAN. When 2-1001 is finished, it can be used or deleted.
VLAN creation steps
1) create a VLAN
Switch (config) # vlan vlan-id
2) add the port, and add the designated port to the specified VLAN
Switch (config) # int range fx/x-x / / enter multiple ports continuously
Switch (config-if) # switchport mode access
Switch (config-if) # switchport access vlan vlan-id
3) Verification
Switch# show vlan b / / View VLAN configuration
Note: generally, one network segment and one VLAN per department
Trunk
1.Trunk function: different switches communicate with the same VLAN
2.Trunk marker
1) ISL (Cisco private tag), which can only be used on Cisco devices, takes up a total of 30 bytes
2) IEEE 802.1q (public tag), which applies to all network devices and consumes a total of 4 bytes
Trunk: trunk link for carrying multiple VLAN between switch and switch
Access: access link that carries a VLAN between the switch and the computer
3.Trunk configuration
Switch (config-if) # switchport trunk encapsulation dot1q / / Simulator does not require input
Switch (config-if) # switchport mode trunk
Troubleshooting:
Switch > conf
Translating "conf"... domain server (255.255.255.255)% Name lookup aborted
1) Ctrl+Shift+6
2) Route# sh ip int b / / View router IP configuration
3) Switch# w / / Save the current switch configuration