Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The switch realizes vlan access and mutual access between vlan.

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

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

Tags: Routing switch different router network between single arm reason suggestion interface mode bottleneck terminal logic link attachment configuration mutual access Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Docker Shulou Information macOS OPPO Reno