H3C S3100 Series Operation Manual page 103

H3c s3100 series ethernet switches operation manual
Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

[Switch] vlan 100
[Switch-vlan100] protocol-vlan ip
# To ensure the normal operation of IP network, you need to configure a user-defined protocol template
for VLAN 100 to match the ARP protocol (assume Ethernet II encapsulation is adopted here).
[Switch-vlan100] protocol-vlan mode ethernetii etype 0806
# Display the created protocol-based VLANs and the protocol templates.
[Switch-vlan100] display protocol-vlan vlan all
VLAN ID: 100
VLAN Type: Protocol-based VLAN
Protocol Index
0
1
VLAN ID: 200
VLAN Type: Protocol-based VLAN
Protocol Index
0
# Configure Ethernet 1/0/10 as a hybrid port, which removes the VLAN tag of the packets of VLAN 100
and VLAN 200 before forwarding the packets.
[Switch-vlan100] quit
[Switch] interface Ethernet 1/0/10
[Switch-Ethernet1/0/10] port link-type hybrid
[Switch-Ethernet1/0/10] port hybrid vlan 100 200 untagged
# Associate Ethernet 1/0/10 with protocol template 0 and 1 of VLAN 100, and protocol template 0 of
VLAN 200.
[Switch-Ethernet1/0/10] port hybrid protocol-vlan vlan 100 0 to 1
[Switch-Ethernet1/0/10] port hybrid protocol-vlan vlan 200 0
# Display the associations between Ethernet 1/0/10 and the VLAN protocol templates to verify your
configuration.
[Switch-Ethernet1/0/10] display protocol-vlan interface Ethernet 1/0/10
Interface:Ethernet1/0/10
VLAN ID
Protocol-Index
100
100
200
The above output information indicates that Ethernet 1/0/10 has already been associated with the
corresponding protocol templates of VLAN 100 and VLAN 200. Thus, packets from the IP and
AppleTalk workstations can be automatically assigned to VLAN 100 and VLAN 200 respectively for
transmission by matching the corresponding protocol templates, so as to realize the normal
communication between workstations and servers.
Protocol Type
ip
ethernetii etype 0x0806
Protocol Type
at
Protocol-Type
0
ip
1
ethernetii etype 0x0806
0
at
2-12

Advertisement

Chapters

Table of Contents
loading

Table of Contents