Example for Configuring VLAN Aggregation
This example illustrates how to implement communication between VLANs with fewer IP
addresses.
Networking Requirements
An enterprise has multiple departments in the same network segment. To improve service
security, different departments are added to different VLANs. Employees in different
departments need to communicate with each other.
As shown in Figure 3-14, the R&D department and test department belong to different VLANs
and need to communicate with each other.
Configuration Roadmap
The configuration roadmap is as follows:
1. Add interfaces of the Switch to sub-VLANs.
2. Add the sub-VLANs to a super-VLAN.
3. Configure the IP address for the super-VLAN.
4. Configure proxy ARP for the super-VLAN.
Data Preparation
To complete the configuration, you need the following data:
l VLAN to which GE 0/0/1 and GE 0/0/2 belong: VLAN 2
l VLAN to which GE 0/0/3 and GE 0/0/4 belong: VLAN 3
l Super-VLAN: VLAN 4
l IP address of the super-VLAN: 100.1.1.12
Procedure
Step 1 Set the interface type.
# Configure GE 0/0/1 as an access interface.
<Quidway> system-view
[Quidway] interface gigabitethernet 0/0/1
[Quidway-GigabitEthernet0/0/1] port link-type access
[Quidway-GigabitEthernet0/0/1] quit
Step 2 Configure VLAN 2.
# Create VLAN 2.
[Quidway] vlan 2
# Add GE 0/0/1 and GE 0/0/2 to VLAN 2.
[Quidway-vlan2] port gigabitethernet 0/0/1 0/0/2
[Quidway-vlan2] quit
Step 3 Configure VLAN 3.
# Create VLAN 3.
[Quidway] vlan 3
# Add GE 0/0/3 and GE 0/0/4 to VLAN 3.
[Quidway-vlan3] port gigabitethernet 0/0/3 0/0/4
[Quidway-vlan3] quit
Step 4 Configure VLAN 4.
# Configure the super-VLAN.
[Quidway] vlan 4
[Quidway-vlan4] aggregate-vlan
[Quidway-vlan4] access-vlan 2 to 3
# Configure the VLANIF interface.
[Quidway] interface vlanif 4
[Quidway-Vlanif4] ip address 100.1.1.12 255.255.255.0
[Quidway-Vlanif4] quit
Step 5 Configure the PCs.
Configure an IP address for each PC. Ensure that the PC IP addresses are in the same network
segment as VLAN 4.
When the configuration is complete, the PCs and the Switch can ping each other, but the PCs in
VLAN 2 and the PCs in VLAN 3 cannot ping each other.
Step 6 Configure proxy ARP.
[Quidway] interface vlanif 4
[Quidway-Vlanif4] arp-proxy inter-sub-vlan-proxy enable
Step 7 Verify the configuration.
When the configuration is complete, the PCs in VLAN 2 and VLAN 3 can ping each other.