H3C S3100-52P Operation Manual
Hide thumbs Also See for S3100-52P:

Advertisement

Operation Manual - VLAN
H3C S3100-52P Ethernet Switch
Chapter 1 VLAN Overview ............................................................................................................ 1-1
1.1 VLAN Overview.................................................................................................................. 1-1
1.1.1 Introduction to VLAN ............................................................................................... 1-1
1.1.2 Advantages of VLANs ............................................................................................. 1-2
1.1.3 VLAN Fundamentals ............................................................................................... 1-2
1.1.4 VLAN Interface ........................................................................................................ 1-4
1.1.5 VLAN Classification................................................................................................. 1-5
1.2 Port-Based VLAN............................................................................................................... 1-5
1.2.1 Link Types of Ethernet Ports................................................................................... 1-5
1.2.2 Assigning an Ethernet Port to Specified VLANs ..................................................... 1-6
1.2.3 Configuring the Default VLAN ID for a Port ............................................................ 1-6
1.3 Protocol-Based VLAN........................................................................................................ 1-7
1.3.1 Introduction to Protocol-Based VLAN ..................................................................... 1-7
1.3.2 Encapsulation Format of Ethernet Data.................................................................. 1-8
1.3.3 Procedure for the Switch to Judge Packet Protocol.............................................. 1-10
1.3.4 Encapsulation Formats ......................................................................................... 1-10
1.3.5 Implementation of Protocol-Based VLAN ............................................................. 1-11
Chapter 2 VLAN Configuration .................................................................................................... 2-1
2.1 VLAN Configuration ........................................................................................................... 2-1
2.1.1 VLAN Configuration Task List ................................................................................. 2-1
2.1.2 Basic VLAN Configuration....................................................................................... 2-1
2.1.3 Basic VLAN Interface Configuration ....................................................................... 2-2
2.1.4 Displaying VLAN Configuration............................................................................... 2-3
2.2 Configuring a Port-Based VLAN ........................................................................................ 2-3
2.2.1 Port-Based VLAN Configuration Task List.............................................................. 2-3
2.2.2 Configuring the Link Type of an Ethernet Port........................................................ 2-4
2.2.3 Assigning an Ethernet Port to a VLAN.................................................................... 2-4
2.2.4 Configuring the Default VLAN for a Port ................................................................. 2-5
2.2.5 Displaying and Maintaining Port-Based VLAN........................................................ 2-6
2.2.6 Port-Based VLAN Configuration Example .............................................................. 2-6
2.3 Configuring a Protocol-Based VLAN ................................................................................. 2-8
2.3.1 Protocol-Based VLAN Configuration Task List ....................................................... 2-8
2.3.3 Associating a Port with a Protocol-Based VLAN................................................... 2-10
2.3.4 Displaying Protocol-Based VLAN Configuration ................................................... 2-11
2.3.5 Protocol-Based VLAN Configuration Example...................................................... 2-11

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S3100-52P and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S3100-52P

  • Page 1: Table Of Contents

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Table of Contents Table of Contents Chapter 1 VLAN Overview ......................1-1 1.1 VLAN Overview........................1-1 1.1.1 Introduction to VLAN ....................1-1 1.1.2 Advantages of VLANs ..................... 1-2 1.1.3 VLAN Fundamentals ....................1-2 1.1.4 VLAN Interface ......................
  • Page 2: Chapter 1 Vlan Overview

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview Chapter 1 VLAN Overview This chapter covers these topics: VLAN Overview Port-Based VLAN Protocol-Based VLAN 1.1 VLAN Overview 1.1.1 Introduction to VLAN The traditional Ethernet is a broadcast network, where all hosts are in the same broadcast domain and connected with each other through hubs or switches.
  • Page 3: Advantages Of Vlans

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview communicate with each other directly but need the help of network layer devices, such as routers and Layer 3 switches. Figure 1-1 illustrates a VLAN implementation. Figure 1-1 A VLAN implementation 1.1.2 Advantages of VLANs...
  • Page 4 The 16-bit TPID field with a value of 0x8100 indicates that the frame is VLAN tagged. On the H3C series Ethernet switches, the default TPID is 0x8100. The 3-bit priority field indicates the 802.1p priority of the frame. Refer to the “QoS-QoS profile”...
  • Page 5: Vlan Interface

    1.1.4 VLAN Interface Hosts in different VLANs cannot communicate with each other directly unless routers or Layer 3 switches are used to do Layer 3 forwarding. The S3100-52P Ethernet switch supports VLAN interfaces configuration to forward packets in Layer 3.
  • Page 6: Vlan Classification

    1.2.1 Link Types of Ethernet Ports The link type of an Ethernet port on the S3100-52P can be one of the following: Access: An access port can belong to only one VLAN, and is generally connected to a user PC.
  • Page 7: Assigning An Ethernet Port To Specified Vlans

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview 1.2.2 Assigning an Ethernet Port to Specified VLANs You can assign an Ethernet port to a VLAN to forward packets for the VLAN, thus allowing the VLAN on the current switch to communicate with the same VLAN on the peer switch.
  • Page 8: Protocol-Based Vlan

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview Table 1-2 Packet processing of a trunk port Processing of an incoming packet Processing of an outgoing packet For an untagged packet For a tagged packet If the port has already...
  • Page 9: Encapsulation Format Of Ethernet Data

    The switch identifies whether a packet is an Ethernet II packet or an 802.2/802.3 packet according to the ranges of the two fields. Note: The H3C S3100-52P switch recognizes packets with the value of the type field being in the range 0x05DD to 0x05FF as 802.2/802.3 encapsulated packets.
  • Page 10 Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview II. Extended encapsulation formats of 802.2/802.3 packets 802.2/802.3 packets have the following three extended encapsulation formats: 802.3 raw encapsulation: only the length field is encapsulated after the source and destination address field, followed by the upper layer data.
  • Page 11: Procedure For The Switch To Judge Packet Protocol

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 1 VLAN Overview Note: When the OUI is 00-00-00 in 802.2 SNAP encapsulation, the PID field has the same meaning as the type field in Ethernet II encapsulation, which both refer to globally unique protocol number.
  • Page 12: Implementation Of Protocol-Based Vlan

    Supported (0x809B) 1.3.5 Implementation of Protocol-Based VLAN S3100-52P Ethernet switch assigns the packet to the specific VLAN by matching the packet with the protocol template. The protocol template is the standard to determine the protocol to which a packet belongs. Protocol templates include standard templates and user-defined templates: The standard template adopts the RFC-defined packet encapsulation formats and values of some specific fields as the matching criteria.
  • Page 13: Chapter 2 Vlan Configuration

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Chapter 2 VLAN Configuration When configuring a VLAN, go to these sections for information you are interested in: VLAN Configuration Configuring a Port-Based VLAN Configuring a Protocol-Based VLAN 2.1 VLAN Configuration...
  • Page 14: Basic Vlan Interface Configuration

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Caution: VLAN 1 is the system default VLAN, which needs not to be created and cannot be removed, either. The VLAN you created in the way described above is a static VLAN. On the switch, there are dynamic VLANs which are registered through GVRP.
  • Page 15: Displaying Vlan Configuration

    The operation of enabling/disabling a VLAN’s VLAN interface does not influence the physical status of the Ethernet ports belonging to this VLAN. An S3100-52P switch can be configured with a single VLAN interface only, and the VLAN must be the management VLAN. For details about the management VLAN, refer to the “Stack-Cluster Configuration”...
  • Page 16: Configuring The Link Type Of An Ethernet Port

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Task Remarks Configuring the Default VLAN for a Port Optional 2.2.2 Configuring the Link Type of an Ethernet Port Follow these steps to configure the link type of an Ethernet port: To do…...
  • Page 17: Configuring The Default Vlan For A Port

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Note: When assigning an access or hybrid port to a VLAN, make sure the VLAN already exists. In VLAN view Follow these steps to assign one or multiple access ports to a VLAN in VLAN view: Use the To do…...
  • Page 18: Displaying And Maintaining Port-Based Vlan

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Caution: After configuring the default VLAN for a trunk or hybrid port, you need to use the port trunk permit command or the port hybrid vlan command to configure the port to allow traffic of the default VLAN to pass through.
  • Page 19 Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration II. Network diagram Server2 Server1 SwitchA Eth1/0/12 Eth1/0/13 Eth1/0/2 Eth1/0/10 Eth1/0/11 SwitchB Eth1/0/1 Figure 2-1 Network diagram for VLAN configuration III. Configuration procedure Configure Switch A. # Create VLAN 100, specify its descriptive string as Dept1, and add Ethernet 1/0/1 to VLAN 100.
  • Page 20: Configuring A Protocol-Based Vlan

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration [SwitchB] vlan 100 [SwitchB-vlan100] description Dept1 [SwitchB-vlan100] port Ethernet 1/0/13 [SwitchB-vlan103] quit # Create VLAN 200, specify its descriptive string as Dept2 and add Ethernet 1/0/11 and Ethernet 1/0/12 to VLAN 200.
  • Page 21 Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration II. Configuration procedure Follow these steps to configure the protocol template for a VLAN: To do... Use the command... Remarks Enter system view system-view — Enter VLAN view vlan vlan-id —...
  • Page 22: Associating A Port With A Protocol-Based Vlan

    Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration Caution: Because the IP protocol is closely associated with the ARP protocol, you are recommended to configure the ARP protocol type when configuring the IP protocol type and associate the two protocol types with the same port to avoid that ARP packets and IP packets are not assigned to the same VLAN, which will cause IP address resolution failure.
  • Page 23: Displaying Protocol-Based Vlan Configuration

    1/0/10 on the S3100-52P switch. IP network and AppleTalk network workstations (hosts) coexist in the Workroom. The S3100-52P switch connects to VLAN 100 (using IP network) through Ethernet 1/0/11 and to VLAN 200 (using AppleTalk network) through Ethernet 1/0/12. Configure the switch to automatically assign the IP and AppleTalk packets to proper VLANs for transmission, so as to ensure the normal communication between the workstations and servers.
  • Page 24 Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration II. Network diagram Figure 2-2 Network diagram for protocol-based VLAN configuration III. Configuration procedure # Create VLAN 100 and VLAN 200, and add Ethernet 1/0/11 and Ethernet 1/0/12 to VLAN 100 and VLAN 200 respectively.
  • Page 25 Operation Manual – VLAN H3C S3100-52P Ethernet Switch Chapter 2 VLAN Configuration VLAN Type: Protocol-based VLAN Protocol Index Protocol Type ethernetii etype 0x0806 VLAN ID: 200 VLAN Type: Protocol-based VLAN Protocol Index Protocol Type # 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.

Table of Contents