Get the App
SLTechnology News&Howtos  ›  Servers  › 

Create hybrid to realize the interworking of specified network segments

Shulou Source: shulou.com Published: 2022-06-02 10:04:23 10月03日 Update

Experimental requirements:

Interworking between 1.vlan10

Interworking between 2.vlan20

3.vlan88 and vlan20 interworking (using hybrid)

Configuration steps and ideas:

one。 Configure the PC with IP

Pc4:

Ip: 192.168.1.1

Subnet mask: 255.255.255.0

Gateway: 192.168.1.254

Pc5:

Ip: 192.168.2.1

Subnet mask: 255.255.255.0

Gateway: 192.168.2.254

Pc6:

Ip: 192.168.1.2

Subnet mask: 255.255.255.0

Gateway: 192.168.1.254

Pc7:

Ip: 192.168.2.2

Subnet mask: 255.255.255.0

Gateway: 192.168.2.254

Server2:

Ip: 192.168.88.1

Subnet mask: 255.255.255.0

Gateway: 192.168.88.254

two。 Create a vlan in lsw2 using hybrid mode

Note: find out the direction of data flow and see which line is the blocking port.

Vlan batch 10 20 88 / / create vlan10,20,88

Interface ge0/0/2 / / enter the interface

Port link-type hybrid / / configure link class hybrid for link PC

Port hybrid pvid vlan 10 / / PVID on the configured port is 10

Interface ge0/0/3 / / enter the interface

Port link-type hybrid / / configure link class hybrid for link PC

Port hybrid pvid vlan 20 / / PVID on the configured port is 20

three。 Create a vlan in lsw3 using hybrid mode

Vlan batch 10 20 88 / / create vlan10,20,88

Interface ge0/0/1 / / enter the interface

Port link-type hybrid / / configure link class hybrid for link PC

Port hybrid pvid vlan 10 / / PVID on the configured port is 10

Interface ge0/0/1 / / enter the interface

Port link-type hybrid / / configure link class hybrid for link PC

Port hybrid pvid vlan 10 / / the PVID on the configured port is 20

Note: lsw2 and lsw3 databases must be consistent

four。 Configure the VLAN of the encapsulation label on each port

1. On lsw2

Interface fe0/0/2

Port hyvrid untagges vlan 10 ensures that after lsw2 receives the data sent by lsw3, it is dismantled and sent to gi0/0/4.

Interface fe0/0/3

Port hyvrid untagges vlan 20 ensures that after lsw2 receives the data sent by lsw3, it is dismantled and sent to gi0/0/4.

Port hyvrid untagges vlan 88 ensures that after lsw2 receives the data sent by lsw1, it is dismantled and sent to gi0/0/4.

Iterface ge0/0/4

Port hybrid tagged vlan 10 ensures that the link between switches forwards data with label 10

Interface ge0/0/4

Port hybrid tagged vlan 20 ensures that links between switches carry label 20 when forwarding data out

Interface ge0/0/1

Port hybrid tagged vlan 20 ensures that links between switches forward data out with label 88

two。 On lsw3

Interface ge0/0/2

Port hyvrid untagges vlan 10 ensures that after lsw3 receives the data sent by lsw2, it is dismantled and sent to gi0/0/4.

Interface ge0/0/3

Port hyvrid untagges vlan 20 ensures that after lsw3 receives the data sent by lsw2, it is dismantled and sent to gi0/0/4.

Interface ge0/0/2

Port hybrid tagged vlan 10 ensures that the link between switches forwards data with label 10

Interface ge0/0/3

Port hybrid tagged vlan 20 ensures that links between switches carry label 20 when forwarding data out

3 on lsw1

Interface ge0/0/3

Port hyvrid untagges vlan 10 ensures that after lsw1 receives the data sent by lsw2, it is dismantled and sent out by gi0/0/1.

Interface ge0/0/1

Port hybrid tagged vlan 88 ensures that the link between switches forwards data with label 88

five。 Create a vlan configuration gateway on lsw1

Vlan batch 10 20 88 create vlan10 20 88

Configure the gateway for vlan10

Interface vlan 10

Ip address 192.168.1.254 255.255.255.0

Configure the gateway for vlan20

Interface vlan 20

Ip address 192.168.2.254 255.255.255.0

Configure the gateway for vlan88

Interface vlan 88

Ip address 192.168.88.254 255.255.255.0

six。 Verification. test

1. Interworking between vlan10 based on ping 192.168.1.2 on pc4

two。 Interworking between vlan10 based on ping 192.168.1.2 on pc5

3. Realize the interworking between vlan20 and vlan 88 on any PC ping vlan 88 on vlan20

Tags: Configuration data between links gateways labels switches ports subnets interfaces links patterns consistency ideas databases directions steps lines experiments encapsulation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Redmi Shulou Tech Info Docker Huawei