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

Use layer 3 switch to realize the communication between VLAN

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

Share

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

For the consideration of security and convenient management, mainly in order to reduce the harm of broadcast storm, the large local area network must be divided into small local area networks, so that VLAN can be widely used in the network, and the communication between different VLAN has to be forwarded through routers, with the increasing exchange of visits between networks. Simply using routers to achieve inter-network access, not only because the number of ports is limited, but also the routing speed is slow, which limits the scale and access speed of the network. Based on this situation, the layer 3 switch arises at the historic moment. The layer 3 switch is designed for IP. The interface type is simple, and it has strong layer 2 packet processing ability, so it is very suitable for data routing and switching in large local area networks. It can not only replace or partially complete the functions of traditional routers in the third layer of the protocol, but also has almost the speed of layer 2 switching, and the price is relatively cheap.

In the process of practical application, the typical practice is: the interconnection of each subnet in the same local area network and the routing between the VLAN in the local area network, using the three-layer switch to replace the router, and only when the interconnection between the local area network and the public network wants to achieve cross-regional network access, only through the professional router.

Now we are going to build a layer 3 switch on GNS3 to realize the interconnection between VLAN.

First, build a new layer 2 switch, a layer 3 switch, and three VPCs devices connected by a network cable. Click on.

Set up the experimental environment PC1 IP 192.168.10.10 VLAN10

PC2 IP 192.168.20.10 VLAN20

PC3 IP 192.168.30.10 VLAN30

The port between sw1 and sw2 is TRUNK

There is a corresponding gateway on SW2: VLAN10 192.168.10.1

VLAN20 192.168.20.1

VLAN30 192.168.30.1

Now start the configuration.

Establishing VLAN10,20,30 in sw1

Divide the f1ax into VLAN 10,20,30 respectively.

Set the f1thumb 0 of sw1 to TRUNK

Set up VLAN10,20,30 in SW2 and set f1apax 0 to TRUNK

Configure the gateway address

View port address do show ip int b

Gateway configuration complete

Next, configure PC1,2,3 with IP.

At this point, all the configuration is complete.

Now let's use PC1ping to use PC2 and PC3 to see if we can connect.

Realize the connectivity of the whole network.

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