About single-arm Routing

Source: Internet
Author: User

The dual-arm routing introduction connects hosts under two different VLANs. Idea: create multiple sub-interfaces and different VLAN connections on the vro. The sub-interfaces are logical interfaces on the physical interfaces of the vro. 11-1: When the switch receives the data frame sent by the computer in VLAN1, it sends data to the router from its Trunk interface. Because the link is a Trunk link, the frame carries the VLAN1 label, after the frame is transmitted to the vro2, if the data is to be forwarded to VLAN2, The vro1 removes the VLAN1 label of the data frame, encapsulates the VLAN2 label, and sends it to the Trunk interface on the vswitch through the Trunk link; after receiving the frame, the switch removes the VLAN2 tag and sends it to the computer on vlan2. this enables communication between VLANs. Settings: PC8: IP: 172.16.1.1 subnet mask: 255.255.255.0 Gateway: 172.16.1.254 PC9: IP: 172.16.2.2 subnet mask: 255.255.255.0 Gateway: 172.16.2.254 Switch Settings: PC8 at V1 PC9 at V2, set FastEthernet0/0 to trunk Router: Router> enableRouter # configure terminalEnter configuration commands, one per line. end with CNTL/Z. router (config) # int f0/0.1 Router (config-subif) # encapsulation dot1q 1 Router (config-subif) # no shutdownRouter (config-subif) # ip addh Ss 172.16.1.254 255.255.255.0Router (config-subif) # exitRouter (config) # int f0/0.2 Router (config-subif) # encapsulation dot1q 2 Router (config-subif) # no shutdownRouter (config-subif) # ip address 172.16.2.254 255.255.255.0 the two hosts can be pinged to each other!

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.