How to Connect Hosts Across Two Different VLANs Using a One-Armed Router

Create multiple subinterfaces and different VLAN connections on a router 鈥?subinterfaces are logical interfaces on a router’s physical interface. As shown in the figure, when the switch receives a data frame sent by a computer in VLAN1, it sends the data to the router from its Trunk interface. Since the link is a Trunk link, the frame carries a VLAN1 tag. When the frame arrives at the router, if the data needs to be forwarded to VLAN2, the router will remove the VLAN1 tag from the data frame, re-encapsulate it with a VLAN2 tag, and send it via the Trunk link to the Trunk interface on the switch. The switch receives the frame, removes the VLAN2 tag, and forwards it to the computer in VLAN2, thus enabling inter-VLAN communication.