H3C Switch configuration cross-switch VLAN Communication

Source: Internet
Author: User


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.