[ENSP] Inter-VLAN communication (three-layer exchange)

One. Introduction


Create the corresponding VLAN Interface (SVI) on the switch, and the VLAN Interface address will be used as the gateway of the
PC in the corresponding VLAN to realize the communication between different VLAN PCs

Write the picture description here

二、配置< /strong>


// Create VLANs in batchvlan batch 10 20// Create VLAN Interface 10 as the gateway of PC1interface vlanif 10ip address 192.168.1.254 255.255.255.0// Create VLAN Interface 20 as a gateway to PC2interface vlanif 20 ip address 192.168.2.254< /span> 24// Divide the interface into the corresponding VLAN interface gigabitEthernet 0/0/1< /span>port link-type access port default vlan 10interface gigabitEthernet 0/0/2port link-type accessport default vlan 20

Write the picture description here
Write the picture description here
Write the picture description here
here写图片描述

Three. Test


Write the picture description here

Leave a Comment

Your email address will not be published.