Get the App
SLTechnology News&Howtos  ›  Servers  › 

Basic setup of VLAN-- experiment

Shulou Source: shulou.com Published: 2022-06-02 20:15:05 10月03日 Update

VLAN basic setup case

After the previous theoretical chapter: https://blog.51cto.com/14481836/2427908

We will experiment with the configuration of vlan

The experiment begins.

First open GNS3 and drag a routing device and three PCs, as shown in the figure:

Add a routed veneer, and configure disk capacity.

It should be noted that the disk space must be set, otherwise an error will occur when setting up VLAN

Connect three PCs to the route and connect them to f1max 0 f1max 1 f1max 2 respectively.

Click to show each port name and open it.

At this point, we set the VLAN and IP addresses of the PC, and set PC2 and PC3 to belong to the same VLAN, as shown in the figure:

Double-click to open the routing, we first turn off the routing function, because we are changed from the router image file, so turn off the routing function first

Then set the IP address of PC123, as shown in the figure:

Open PC1 at this time and check if you are connected

Click SW, and you can set VLAN10 and name it caiwu. The command you need to enter at this time is: datebase

Vlan10 name caiwu

As shown in the figure:

At this point, you can check whether vlan10 has completed the settings, pay attention to the mode! As shown in the picture

By the same token, we can add VLAN20 and 30, with the command vlan 20jue 30 as shown in the figure:

Now that we have set up, we need to connect the port to the vlan. We should enter the interface mode for access, as shown in the figure:

By the same token, we connect f1amp 1 and f1Uniplic2 to vlan20, as shown in the figure:

Here we use a command: int range F1 Compact 1-2

Now that we have completed the basic configuration and setup, let's take a look at the PC123 interconnection! As shown in the figure:

It is concluded that the same VLAN can communicate with each other. However, different VLAN cannot communicate even in the same network segment.

Tags: Such as figure routing command access configuration experiment between function address mode disk port communication three basic different veneer name basic configuration capacity Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker NVidia macOS Linux MySQL