Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Link between VLAN and Trunk

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report