Protocol-based vlan configuration example, Network requirements – H3C Technologies H3C S12500 Series Switches User Manual

Page 31

Advertising
background image

18

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter VLAN view.

vlan vlan-id

If the specified VLAN does not
exist, this command creates the

VLAN first.

3.

Create a protocol template for the

VLAN.

protocol-vlan [ protocol-index ] { at
| ipv4 | ipv6 | ipx { ethernetii | llc
| raw | snap } | mode { ethernetii

etype etype-id | llc { dsap dsap-id

[ ssap ssap-id ] | ssap ssap-id } |

snap etype etype-id } }

By default, no protocol template
exists.

4.

Exit VLAN view.

quit

N/A

5.

Enter interface view or port group
view.

Enter Ethernet interface view:

interface interface-type
interface-number

Enter Layer 2 aggregate

interface view:
interface bridge-aggregation

interface-number

Enter port group view:
port-group manual

port-group-name

Use any command.

In Ethernet interface view,
the subsequent

configurations apply to the

current port.

In port group view, the

subsequent configurations

apply to all ports in the port

group.

In Layer 2 aggregate

interface view, the
subsequent configurations

apply to the Layer 2

aggregate interface and all

its member ports.

6.

Configure the port link type as
hybrid.

port link-type hybrid

N/A

7.

Configure hybrid ports to permit
the packets of the specified

protocol-based VLANs to pass

through.

port hybrid vlan vlan-id-list
{ tagged | untagged }

By default, all hybrid ports
permit packets of VLAN 1 to

pass through only.

8.

Associate the hybrid ports with
the specified protocol-based

VLAN.

port hybrid protocol-vlan vlan
vlan-id { protocol-index [ to
protocol-end ] | all }

N/A

Protocol-based VLAN configuration example

Network requirements

In a lab environment as shown in

Figure 8

, most hosts run the IPv4 protocol, while the rest of the hosts run

the IPv6 protocol for teaching purpose. To avoid interference, isolate IPv4 traffic and IPv6 traffic at Layer

2.

Advertising
This manual is related to the following products: