H3C S5100-SI Operation Manual page 99

Ethernet switches
Hide thumbs Also See for H3C S5100-SI:
Table of Contents

Advertisement

[Sysname] vlan 200
[Sysname-vlan200] port GigabitEthernet 1/0/12
# Configure protocol templates for VLAN 200 and VLAN 100, matching AppleTalk protocol and IP
protocol respectively.
[Sysname-vlan200] protocol-vlan at
[Sysname-vlan200] quit
[Sysname] vlan 100
[Sysname-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).
[Sysname-vlan100] protocol-vlan mode ethernetii etype 0806
# Display the created protocol-based VLANs and the protocol templates.
[Sysname-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 GigabitEthernet1/0/10 as a hybrid port, which removes the VLAN tag of the packets of
VLAN 100 and VLAN 200 before forwarding the packets.
[Sysname-vlan100] quit
[Sysname] interface GigabitEthernet 1/0/10
[Sysname-GigabitEthernet1/0/10] port link-type hybrid
[Sysname-GigabitEthernet1/0/10] port hybrid vlan 100 200 untagged
# Associate GigabitEthernet1/0/10 with protocol template 0 and 1 of VLAN 100, and protocol template 0
of VLAN 200.
[Sysname-GigabitEthernet1/0/10] port hybrid protocol-vlan vlan 100 0 to 1
[Sysname-GigabitEthernet1/0/10] port hybrid protocol-vlan vlan 200 0
# Display the associations between GigabitEthernet1/0/10 and the VLAN protocol templates to verify
your configuration.
[Sysname-GigabitEthernet1/0/10] display protocol-vlan interface GigabitEthernet 1/0/10
Interface:GigabitEthernet1/0/10
VLAN ID
Protocol-Index
100
100
200
The above output information indicates that GigabitEthernet1/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
Protocol Type
ip
ethernetii etype 0x0806
Protocol Type
at
Protocol-Type
0
ip
1
ethernetii etype 0x0806
0
at
2-10

Advertisement

Table of Contents
loading

This manual is also suitable for:

H3c s5100-ei

Table of Contents