Vlan Configuration Examples; Port-Based Vlan Configuration Example - HP 6125XLG Configuration Manual

Blade switch layer 2 lan switching
Table of Contents

Advertisement

VLAN configuration examples

Port-based VLAN configuration example

Network requirements
As shown in
Host A and Host C belong to Department A. VLAN 100 is assigned to Department A.
Host B and Host D belong to Department B. VLAN 200 is assigned to Department B.
Configure port-based VLANs so that hosts only in the same department can communicate with each
other.
Figure 40 Network diagram
Configuration procedure
1.
Configure Device A:
# Create VLAN 100, and assign port Ten-GigabitEthernet 1/1/5 to VLAN 100.
<DeviceA> system-view
[DeviceA] vlan 100
[DeviceA-vlan100] port ten-gigabitethernet 1/1/5
[DeviceA-vlan100] quit
# Create VLAN 200, and assign port Ten-GigabitEthernet 1/1/6 to VLAN 200.
[DeviceA] vlan 200
[DeviceA-vlan200] port ten-gigabitethernet 1/1/6
[DeviceA-vlan200] quit
# Configure port Ten-GigabitEthernet 1/1/7 as a trunk port to forward packets from VLANs 100
and 200 to Device B.
[DeviceA] interface ten-gigabitethernet 1/1/7
[DeviceA-Ten-GigabitEthernet1/1/7] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/1/7] port trunk permit vlan 100 200
Please wait... Done.
2.
Configure Device B in the same way Device A is configured. (Details not shown.)
3.
Configure hosts:
Configure Host A and Host C to be on the same IP subnet. For example, 192.168.100.0/24.
Configure Host B and Host D to be on the same IP subnet. For example, 192.168.200.0/24.
Figure
40:
144

Advertisement

Table of Contents
loading

Table of Contents