H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3100 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
06-Ethernet Interface Basic Configuration Guide

Configuring the Basic Functions of an Ethernet Port

An Ethernet port on an H3C Low-End Ethernet switches can operate in one of the three link types:

l          Access: an access port can belong to only one VLAN and is generally used to connect to a PC.

l          Trunk: a trunk port can belong to multiple VLANs. It can receive/send packets of multiple VLANs and is generally used to connect to a switch.

l          Hybrid: a hybrid port can belong to multiple VLANs. It can receive/send packets of multiple VLANs and can be used to connect to either a switch or a PC.

You can add an Ethernet port to a specified VLAN. After that, the Ethernet port can forward the packets of the specified VLAN, so that the VLAN on this switch can intercommunicate with the same VLAN on the peer switch.

Network Diagram

Figure 1-1 Network diagram for Ethernet port configuration

 

Networking and Configuration Requirements

l          Switch A and Switch B are connected through the trunk port Ethernet 1/0/1 on each side.

l          Specify VLAN 100 as the default VLAN of Ethernet 1/0/1.

l          Configure Ethernet 1/0/1 to permit the packets of VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 to pass through.

Applicable Product Matrix

Product series

Software version

Hardware version

S5600 series

Release 1510, Release1602

All versions

S5100-SI/EI series

Release 2200, Release2201

All versions

S3600-SI/EI series

Release 1510, Release1602

All versions

S3100-EI series

Release 2104, Release 2107

All versions

S3100-C-SI series

S3100-T-SI series

Release 0011, Release 2102, Release 2107

All versions

S3100-52P

Release 1500, Release 1602

S3100-52P

 

Configuration Procedure

l          The following provides only the configuration on Switch A. The configuration on Switch B is similar to that on Switch A.

l          This configuration example assumes that VLAN 2, VLAN 6 through VLAN 50, and VLAN 100 have been created.

 

# Enter Ethernet port view of Ethernet 1/0/1.

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] interface ethernet1/0/1

# Configure Ethernet 1/0/1 as a trunk port. 

[SwitchA-Ethernet1/0/1] port link-type trunk

# Configure Ethernet 1/0/1 to permit the packets of VLAN 1 through VLAN 3, VLAN 6 through VLAN 50, and VLAN 100 to pass through.

[SwitchA-Ethernet1/0/1] port trunk permit vlan 1 to 3 6 to 50 100

# Configure VLAN 100 as the default VLAN of Ethernet 1/0/1.

[SwitchA-Ethernet1/0/1] port trunk pvid vlan 100

Complete Configuration

#

interface Ethernet1/0/1

 port link-type trunk

 port trunk permit vlan 1 to 3 6 to 50 100

 port trunk pvid vlan 100

#

Refer to VLAN Configuration Guide for the use of hybrid ports.

 

Precautions

Do not configure the port trunk permit vlan all command on a trunk port with GVRP disabled.

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网