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

How to use trunk to achieve communication across switches using the same VLAN

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

Share

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

Editor to share with you how to use trunk to use the same VLAN to communicate across switches. I hope you will get something after reading this article. Let's discuss it together.

I. the role of the horse.

The role of 1.TRUNK: to enable the same VLAN to communicate across switches

two。 In a switched network, there are two types of links

● access link: the general term is a vlan

● trunk link: can carry multiple vlan

II. Configuration of Trunk

1. Enter the interface mode

Switch (config) # interface FastEthernet

two。 Select Encapsulation Type

Switch (config-if) # switch trunk encapsulation dot1q

3. Configure the port as Trunk

Switch (config-if) # switchport mode trunk

three。 The experimental environment is as follows

The purpose of the experiment is to make sure that PC1 and PC2 can communicate with each other, PC3 and PC4 can communicate with each other, PC5 and PC6 can communicate, and other PC can not.

1. Configure six PC with IP addresses respectively

two。 Set the ports of switch SW1 and switch SW2 f1max 0, f1max 1 and f1max 2 to vlan1 vlan2 vlan3 respectively.

SW1 switch f1max 1-port vlan setting

The f1max 2-port vlan setting of SW1

SW2's f1max 1-port vlan setting

The f1max 2-port vlan setting of SW2

* * 3.SW1 and SW2 f1amp 2 ports are set to trunk**

three. Test after configuration

After reading this article, I believe you have a certain understanding of "how to use trunk to use the same VLAN to communicate across switches". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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