Get the App
SLTechnology News&Howtos  ›  Servers  › 

Simple configuration experiment of VLAN

Shulou Source: shulou.com Published: 2022-06-02 13:24:30 10月02日 Update

A simple configuration example of VLAN (illustrated with both pictures and texts). Experimental environment

First of all, we need to have a simple experimental environment: GNS3,C2691 router

two。 Experimental diagram

As shown in the figure, first create a simple topology diagram as shown in the figure.

Note: remember to set parameters for the switch. As shown in the picture

mark

mark

three。 Experimental procedure

First, we have to configure the ip addresses of the three hosts. The configuration is shown in the figure.

Pc1pc2

Pc3

The host configuration is complete. Next, let's set up the switch. As shown in the picture

We can look at the routing function to see the vlan and interfaces we have set up. Configure three vlan,10,20,30 first, and then exit vlan mode

As shown in the figure, you have configured the vlan of the interface f1amp 0. The second red box can be abbreviated to sw mo acc. The third red box can be abbreviated as sw acc vlan10.

Similarly, we can also set up f1Uniqure 1 and f1Uniple 2. As follows.

At this point, the simple vlan configuration experiment is complete. Interested children's shoes can be tested, at first the three hosts can communicate with each other, but after our vlan experimental operation, the three hosts can not communicate with each other, forming an isolation.

Tags: Experiment configuration such as figure host three three switch interface environment abbreviation routing next interest function parameter picture and text picture and text address instance topology Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi Microsoft Shulou Information OPPO Reno