Configuring Port-based VLANs from the CLI
To configure VLANs from the CLI, execute the following commands:
vlan 1
vlan 100
interface GigabitEthernet 1/1
switchport access vlan 100
switchport trunk native vlan 100
switchport trunk allowed vlan 1,100
switchport trunk vlan tag native
switchport mode trunk
exit
interface GigabitEthernet 1/2
switchport access vlan 100
switchport trunk native vlan 100
switchport trunk allowed vlan 1,100
switchport trunk vlan tag native
switchport mode trunk
exit
interface GigabitEthernet 1/7
switchport access vlan 100
switchport trunk native vlan 100
switchport trunk allowed vlan 1,100
switchport mode trunk
exit
Example 3: IEEE 802.1Q Tagging
ISW is able to construct Layer-2 broadcast domain by identifying
ID specified by IEEE 802.1Q. It
forwards a frame between bridge ports assigned to the same VLAN ID and can set multiple VLANs on
each bridge port.
In the following figure, the tagged incoming packets are assigned directly to VLAN 100 and VLAN 200
because of the tag assignment in the packet. Port 2 is configured as a tagged member of VLAN 100,
and Port 7 is configured as an untagged member of VLAN 200. Hosts in the same VLAN communicate
with each other as if they in a LAN. However, hosts in different VLANs cannot communicate with each
other directly.
Example 3: IEEE 802.1Q Tagging
ISW Application Guides
32
ISW Series Managed Industrial Ethernet Switch Hardware Installation & User Guide