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

The switch realizes vlan access and mutual access between vlan.

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

1. The switch implements vlan access.

Set to pc0: 192.168.2.1 255.255.255.0

Set to pc1: 192.168.3.1 255.255.255.0

Set to pc2: 192.168.2.2 255.255.255.0

Set to pc3: 192.168.3.2 255.255.255.0

Set to S0:

Vlan 10

Vlan 20

Enter int f0amp 2

Switchport mode access

Switchport access vlan 10

Enter int f0amp 3

Switchport mode access

Switchport access vlan 20

Enter int f0Universe 1

Switchport mode trunk

Set for S1:

Vlan 10

Vlan 20

Enter int f0amp 2

Switchport mode access

Switchport access vlan 10

Enter int f0amp 3

Switchport mode access

Switchport access vlan 20

Enter int f0Universe 1

Switchport mode trunk

Ping can be reached from 192.168.2.1 ping 192.168.2.2 to achieve the same vlan access for different switches.

2. To achieve access between different vlan, small networks adopt the way of adding routers (single-arm routing)

Set to pc0: 192.168.2.10 255.255.255.0 192.168.2.1

Set to pc1: 192.168.3.10 255.255.255.0 192.168.3.1

For s0memint f0Can 4

Switchport mode trunk

For router0, add 2 logical subinterfaces to configure trunk and ip for a period of time, as follows:

Int f0/0

No shut / / must be enabled

Int f0/0.10

Encap dot1q 10

Ip add 192.168.2.1 255.255.255.0

Exit

Int f0/0.20

Encap dot1q 20

Ip add 192.168.3.1 255.255.255.0

Exit

From pc0192.168.2.10 ping 192.168.3.10, ping can be used to realize the mutual access between different vlan.

Note: for large networks, half of them are not recommended to use routers, and most of them are layer 3 switches. The reason is that the link between router Router 0 and S0 can easily become a bottleneck and terminal.

Attachment: http://down.51cto.com/data/2366457

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

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report