One-arm routing communication between VLANs

The purpose of the experiment is to understand the application scenarios of one-arm routing

                    掌握路由器子接口的配置方法
                    掌握子接口封装VLAN的配置方法
                    理解单臂路由的工作原理

Experimental principle

One-arm routing addresses situations where users need to communicate across VLANs.
Principle: Through a router, the inter-VLAN data is forwarded through the router at Layer 3. One-to-many functions are implemented on a physical interface of the router by configuring sub-interfaces (ie, logical interfaces). Different sub-interfaces of the same physical interface of the router are used as different VLAN default gateways. When user hosts in different VLANs need to communicate, they only need to send data packets to the gateway, and the gateway processes and then sends them to the VLAN where the destination host is located, thus realizing VLAN. communication between. Features: Data is only transmitted through one physical link.
Experimental process and conclusion:
network topology diagram:

Configuration process:
1) Configure the port VLAN of S1

1.1) VLAN information after configuring S1

2.2) VLAN information after configuring S2

3.1) R port routing settings

3.1.1) R's port routing settings 2

3.2) View the interface status of R

3.3) Port information of R after configuration

3.4) Routing table information of R after configuration

4.1) PC1 successfully pings the gateway and PC2

4.2) PC2 successfully pings the gateway and PC1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324982211&siteId=291194637