3Com 10014298 Switch User Manual


 
Configuring VLANs 59
[SW7750-vlan2]port ethernet1/0/1 to ethernet1/0/2
3 Create VLAN 3 and enters its view.
[SW7750-vlan2]vlan 3
4 Add Ethernet1/0/3 and Ethernet1/0/4 to VLAN3.
[SW7750-vlan3]port ethernet1/0/3 to ethernet1/0/4
Example: Protocol-Based VLAN Configuration
From port G1/0/1, all the traffic with source IP 10.0.0.1 will belong to VLAN 2 and
any other IP traffic will belong to VLAN 3. If we configure port G1/0/2 in VLAN 2,
the traffic with source IP 10.0.0.1 will be sent from port G1/0/2. If we configure
port G1/0/3 in VLAN 3, any other IP traffic will be sent out from port G1/0/3.
Figure 17 Protocol-Based VLAN Configuration Example
1 Configure port G1/0/1 as hybrid port and allow VLAN 2 and VLAN 3 to pass.
[SW7750-GigabitEthernet1/0/1]port link-type hybrid
[SW7750-GigabitEthernet1/0/1]display th
#
interface GigabitEthernet1/0/1
port link-type hybrid
port hybrid vlan 1 untagged
#
return
[SW7750-GigabitEthernet1/0/1]port hybrid vlan 2 to 3 t
[SW7750-GigabitEthernet1/0/1]display th
#
interface GigabitEthernet1/0/1
port link-type hybrid
port hybrid vlan 2 to 3 tagged
VLAN 2
VLAN 3
G 1/0/2
G 1/0/3
G 1/0/1