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

Experimental configuration of VLAN trunk link

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The concept and advantages of VLAN

Split broadcast domain

(1) physical segmentation: router

(2) logical partition: divide multiple VLAN on the switch, and each VLAN is a broadcast domain

Advantages of VLAN

(1) Control of broadcasting

(2) enhance network security

(3) simplify network management

Types of VLAN

(2) static VLAN, which is divided into static VLAN based on port. A VLAN can contain multiple ports, and a port belongs to only one VLAN

(2) dynamic VLAN, which divides dynamic VLAN based on MAC address

Configuration of static VLAN

Range of VLAN

Steps to configure static VLAN

(1) create a VLAN

(2) add the port of the switch to the corresponding VLAN

(3) verify the configuration of VLAN

(2) add the port of the switch to the corresponding VLAN

(3) verify the configuration of VLAN

Create VLAN

Two ways to create VLAN

(1) VLAN database configuration mode

(2) Global configuration mode

Add multiple ports to VLAN at the same time

Access link and trunk link

Access link: access terminal PC, can only run the corresponding VLAN data

Trunk link: access to other network devices (switches, routers, etc.) to run all VLAN data

Trunk configuration step command

Experiment

In the GNS3 simulator, according to the following topology diagram, establish VLAN10 and VLAN20 in switch sw1 and sw2, put PC1 and PC3 on VLAN10, put PC2 and PC4 on VLAN20, and make PC1 and PC3 interworking, PC2 and PC34 interworking.

1. Set the IP address of the corresponding PC

2. Open sw1 and sw2 and set up VLAN10 and VLAN20, and put the corresponding computer connection port into sw1

3. Set the interface between sw1 and sw2 to create trunk link

4. After all settings are completed, use the ping command to test whether the PC is interconnected.

PC1pingPC3 succeeded

PC2pingPC4 succeeded

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