H3C S5120-EI Series Command Reference Manual page 181

Lan switching
Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

Description
Use the port hybrid ip-subnet-vlan command to associate the current Ethernet port with the specified IP
subnet-based VLAN.
Use the undo port hybrid ip-subnet-vlan command to remove the association.
On an Ethernet port associated with an IP subnet-based VLAN, if the source IP address of a received
untagged packet belongs to the corresponding IP subnet, the port tags the packet with the corresponding
VLAN tag.
In port group view, this command applies to all ports in the port group. For more information about port
groups, see the Layer 2—LAN Switching Configuration Guide.
In Layer 2 aggregate interface view, this command applies to the Layer 2 aggregate interface and all its
member ports. After you perform this command, the system starts applying the configuration to the
aggregate interface and its aggregation member ports. If the system fails to do that on the aggregate
interface, it stops applying the configuration to the aggregation member ports. If it fails to do that on an
aggregation member port, it simply skips the port and moves to the next port. For more information about
Layer 2 aggregate interfaces, see the Layer 2—LAN Switching Configuration Guide.
Only hybrid ports support this feature. Before issuing this command, assign the port to the IP
subnet-based VLAN to be associated with.
Related commands: display ip-subnet-vlan interface.
Examples
# Associate GigabitEthernet 1/0/1 with the IP subnet-based VLAN 3.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0
[Sysname-vlan3] quit
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] port link-type hybrid
[Sysname-GigabitEthernet1/0/1] port hybrid vlan 3 untagged
Please wait... Done.
[Sysname-GigabitEthernet1/0/1] port hybrid ip-subnet-vlan vlan 3
# Associate the hybrid Layer 2 aggregate interface Bridge-aggregation 1 with the IP subnet-based VLAN
3 (assuming that Bridge-aggregation 1 does not have member ports).
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0
[Sysname-vlan3] quit
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] port link-type hybrid
[Sysname-Bridge-Aggregation1] port hybrid vlan 3 untagged
Please wait... Done
[Sysname-Bridge-Aggregation1] port hybrid ip-subnet-vlan vlan 3
# Associate the hybrid Layer 2 aggregate interface Bridge-aggregation 1 with the IP subnet-based VLAN
3. Among the member ports of the aggregation group corresponding to Bridge-aggregation 1,
GigabitEthernet 1/0/2 is an access port and GigabitEthernet 1/0/3 is a trunk port.
<Sysname> system-view
[Sysname] vlan 3
169

Advertisement

Table of Contents
loading

Table of Contents