How to communicate with different vlan CIDR blocks of a layer-3 Switch

Source: Internet
Author: User


How to communicate with different vlan segments of a layer-3 switch can be achieved through the layer-3 function of the layer-3 Switch, that is, route forwarding. For example, PC1 (192.168.255.2/24) is connected to GE0/0/1 PC2 (192.168.254.2/24) connect to GE0/0/2 int GE0/0/1 belongs to vlan 2 int GE0/0/2 belongs to vlan 3 both port link modes are access from above two ports Layer 2 can be found to be disconnected; three-tier Forwarding is required. How can I interwork through three-tier forwarding? Www.2cto.com solution: Configure virtual interfaces for two VLANs for gateway use. Example: create vlan 2 and add ge0/0/1 to vlan2 [Quidway] vlan 2 [Quidway-vlan2] port ge 0/0/1 create vlan2 Virtual Interface and configure IP [Quidway] int vlanif 2 [Quidway-vlanif2] ip address 192.168.255.1 24 add ge0/0/2 To vlan3. Refer to the preceding method, configure the vlanif 3 IP address as 192.168.254.1 24 and then enter the two PCs to add the route pc1: route add 192.168.0.0 mask route 255.0.0 192.168.255.1 pc2: route add 192.168.0.0 mask route 255.0.0 192.168.254.1. Then, let's pull the author liuaibing.

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.