- Table of Contents
-
- H3C Low-End Ethernet Switches Configuration Guide(V1.01)
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-IP Address Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-GVRP Configuration Guide
- 06-Ethernet Interface Basic Configuration Guide
- 07-Link Aggregation Configuration Guide
- 08-Port Isolation Configuration Guide
- 09-Port Security Configuration Guide
- 10-Port Binding Configuration Guide
- 11-MAC Address Table Management Configuration Guide
- 12-DLDP Configuration Guide
- 13-Auto Detect Configuration Guide
- 14-MSTP Configuration Guide
- 15-Routing Configuration Guide
- 16-Multicast Configuration Guide
- 17-802.1x Configuration Guide
- 18-AAA Configuration Guide
- 19-MAC Authentication Configuration Guide
- 20-VRRP Configuration Guide
- 21-ARP Configuration Guide
- 22-DHCP Configuration Guide
- 23-ACL Configuration Guide
- 24-QoS-QoS Profile Configuration Guide
- 25-Web Cache Redirection Configuration Guide
- 26-Mirroring Configuration Guide
- 27-IRF Configuration Guide
- 28-Cluster Configuration Guide
- 29-PoE-PoE Profile Configuration Guide
- 30-UDP Helper Configuration Guide
- 31-SNMP-RMON Configuration Guide
- 32-NTP Configuration Guide
- 33-SSH Configuration Guide
- 34-FTP and TFTP Configuration Guide
- 35-Information Center Configuration Guide
- 36-VLAN-VPN Configuration Guide
- 37-HWPing Configuration Guide
- 38-DNS Configuration Guide
- 39-Access Management Configuration Guide
- 40-Web Authentication Configuration Guide
- 41-IPv6 Management Configuration Guide
- 42-Smart link - Monitor Link Configuration Guide
- 43-VLAN Mapping Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
06-Ethernet Interface Basic Configuration Guide | 44.64 KB |
1 Ethernet Interface Basic Configuration Guide
Configuring the Basic Functions of an Ethernet Port
Networking and Configuration Requirements
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.
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.
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.