AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010 CLI-based Configuration Guide - Ethernet Switching

This document describes how to configure the components for LAN services, including link aggregation groups, VLANs, voice VLANs, MAC address tables, transparent bridging, as well as GVRP, STP/RSTP, and MSTP protocols.

Using VLANIF Interfaces to Implement Inter-VLAN Layer 3 Connectivity

Using VLANIF Interfaces to Implement Inter-VLAN Layer 3 Connectivity

VLANIF interfaces are used to implement inter-VLAN Layer 3 connectivity when devices are connected to the same router or different routers.

Inter-VLAN Layer 3 Connectivity Between Devices Connected to the Same Device

As shown in Figure 3-15, departments 1 and 2 of a small-scale company belong to VLAN 2 and VLAN 3, respectively, and connect to Router through Layer 2 switches. Packets exchanged between the two departments need to pass Router.

Figure 3-15  Using VLANIF interfaces to implement inter-VLAN communication through the same device

Assign VLANs on Switch_1 and Switch_2, configure Switch_1 and Switch_2 to transparently transmit VLAN packets to Router, and configure a VLANIF interface for each VLAN on Router to allow communication between VLAN 2 and VLAN 3.

Inter-VLAN Layer 3 Connectivity Between Devices Connected to Different Layer 3 Routers

As shown in Figure 3-16, departments 1 and 2 of a medium- or large-scale company are connected across two or more routers, and belong to VLAN 2 and VLAN 3 respectively. Packets exchanged between the two departments need to pass the routers.

Figure 3-16  Using VLANIF interfaces to implement inter-VLAN communication through multiple Layer 3 routers

Assign VLANs on the switches, and configure the switches to transparently transmit VLAN packets to Router_1 and Router_2. Configure a VLANIF interface for each user VLAN and interconnected VLANs on switches, and configure VLANIF interfaces for interconnected VLANs on other Layer 3 devices. In addition, configure static routes or a dynamic routing protocol between Router_1 and Router_2 (a dynamic routing protocol is recommended when devices are connected across more than two routers).