Step
8.
Associate the hybrid
ports with the specified
IP subnet-based VLAN.
IP subnet-based VLAN configuration example
Network requirements
As shown in
192.168.50.0/24.
Configure Device C to transmit packets over separate VLANs based on their source IP addresses.
Figure 37 Network diagram
Configuration consideration
Create VLANs 100 and 200.
•
Associate IP subnets with the VLANs.
•
Assign ports to the VLANs.
•
Configuration procedure
# Associate IP subnet 192.168.5.0/24 with VLAN 100.
<DeviceC> system-view
[DeviceC] vlan 100
[DeviceC-vlan100] ip-subnet-vlan ip 192.168.5.0 255.255.255.0
[DeviceC-vlan100] quit
# Associate IP subnet 192.168.50.0/24 with VLAN 200.
Command
port hybrid ip-subnet-vlan vlan
vlan-id
Figure
37, the hosts in the office belong to different IP subnets 192.168.5.0/24 and
Remarks
Not configured by default.
122