3Com S7902E Command Reference Manual - page 223
1-31
Parameters
vlan
-
id
: VLAN ID, in the range of 1 to 4094.
all
: Specifies all VLANs.
Description
Use the
port hybrid ip-subnet-vlan vlan
command to associate the current Ethernet port with the
specified IP subnet-based VLAN.
Use the
undo
port hybrid ip-subnet-vlan 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.
z
In Ethernet interface view, this command only applies to the current port.
z
In port group view, this command applies to all ports in the port group. For information about port
groups, refer to
Ethernet Interface Configuration
in the
Access Volume
.
z
In Layer-2 aggregate interface view, this command applies to the Layer-2 aggregate interface and
all its member ports. After you perform the configuration, 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 information about Layer-2 aggregate interfaces, refer to
Link Aggregation Configuration
in
the
Access Volume
.
Currently, only hybrid ports support this feature. Before issuing this command, make sure that you have
assigned the port to the IP subnet-based VLAN to be associated with.
Related commands:
display ip-subnet-vlan interface
.
Examples
# Associate GigabitEthernet 2/0/1 with the IP subnet-based VLAN 3.
[Sysname] vlan 3
[Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0
[Sysname-vlan3] quit
[Sysname] interface GigabitEthernet 2/0/1
[Sysname-GigabitEthernet2/0/1] port link-type hybrid
[Sysname-GigabitEthernet2/0/1] port hybrid vlan 3 untagged
Please wait... Done.
[Sysname-GigabitEthernet2/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] 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