Port Hybrid Ip-Subnet-Vlan - H3C S7500E Series Command Reference Manual

Lan switching
Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

[Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0

port hybrid ip-subnet-vlan

Syntax
port hybrid ip-subnet-vlan vlan vlan-id
undo port hybrid ip-subnet-vlan { vlan vlan-id | all }
View
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default Level
2: System level
Parameters
vlan vlan-id: Specifies a VLAN by its VLAN ID, in the range of 1 to 4094.
all: Specifies all VLANs.
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 Ethernet Interface Configuration in 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 Ethernet Link Aggregation
Configuration in the Layer 2 – LAN Switching Configuration Guide.
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> 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 2/0/1
[Sysname-GigabitEthernet2/0/1] port link-type hybrid
[Sysname-GigabitEthernet2/0/1] port hybrid vlan 3 untagged
13-35

Advertisement

Table of Contents
loading

Table of Contents