1. Networking requirements: 1. switchA and SwitchB use trunk for interconnection. Mutual access is allowed between PCs with the same VLAN. Mutual access is prohibited between PCs with different VLANs. PC1 and PC2 are located in different VLANs. You can set the IP address of VLAN Interface 10 of the SwitchB layer-3 Switch to 10.1.1.254/24, when the IP address of VLAN 20 is 255.1.1.254/24, mutual access between VLANs can be achieved.
Www.2cto.com 2 network diagram: 1. Intercommunication within VLAN, intervlan Access prohibited 1 implement intervlan Access prohibited configuration process
Related configurations of www.2cto.com SwitchA: 1. create (enter) VLAN10 and Add E0/1 to VLAN10 [SwitchA] vlan 10 [SwitchA-vlan10] port Ethernet 0/12. create (enter) VLAN20, Add E0/2 To VLAN20 [SwitchA] vlan 20 [SwitchA-vlan20] port Ethernet 0/23. configure port G1/1 as the Trunk port, and allow VLAN10 and VLAN20 via [SwitchA] interface GigabitEthernet 1/1 [SwitchA-GigabitEthernet1/1] port link-type trunk [SwitchA-GigabitEthernet1/1] port trunk permit vlan 10 20SwitchB related configuration: 1. create (enter) VLAN10 and Add E0/10 to VLAN10 [SwitchB] vlan 10 [SwitchB-vlan10] port Ethernet 0/102. create (enter) VLAN20, Add E0/20 to VLAN20 [SwitchB] vlan 20 [SwitchB-vlan20] port Ethernet 0/203. configure port G1/1 as the Trunk port, and allow VLAN10 and VLAN20 through [SwitchB] interface GigabitEthernet 1/1 [SwitchB-GigabitEthernet1/1] port link-type trunk [SwitchB-GigabitEthernet1/1] port trunk permit vlan 10 20 2. use a layer-3 Switch to achieve mutual access between VLANs. 2. Use a layer-3 Switch to achieve mutual access between VLANs. Configure SwitchA: 1. create (enter) VLAN10 and Add E0/1 to VLAN10 [SwitchA] vlan 10 [SwitchA-vlan10] port Ethernet 0/12. create (enter) VLAN20, Add E0/2 To VLAN20 [SwitchA] vlan 20 [SwitchA-vlan20] port Ethernet 0/23. configure port G1/1 as the Trunk port, and allow VLAN10 and VLAN20 via [SwitchA] interface GigabitEthernet 1/1 [SwitchA-GigabitEthernet1/1] port link-type trunk [SwitchA-GigabitEthernet1/1] port trunk permit vlan 10 20SwitchB related configuration: 1. create VLAN10 [SwitchB] vlan 102. set Virtual interface address of VLAN10 [SwitchB] interface vlan 10 [SwitchB-int-vlan10] ip address 10.1.1.254 255.255.20.03. create VLAN20 [SwitchB] vlan 204. set Virtual interface address of VLAN20 [SwitchB] interface vlan 20 [SwitchB-int-vlan20] ip address 255.1.1.254 255.255.255.255.05. configure port G1/1 as the Trunk port, and allow VLAN10 and VLAN20 through [SwitchA] interface GigabitEthernet 1/1 [SwitchA-GigabitEthernet1/1] port link-type trunk [SwitchA-GigabitEthernet1/1] port trunk permit vlan 10 20