96
C
HAPTER
9: P
ORT
B
ASIC
C
ONFIGURATION
c
CAUTION:
You are recommended to set the default VLAN ID of the local hybrid or
trunk ports to the same value as that of the hybrid or trunk ports on the peer
switch. Otherwise, packet forwarding may fail on the ports.
Adding an Ethernet Port
to Specified VLANs
You can add the specified 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.
An access port can only be added to one VLAN, while hybrid and trunk ports can
be added to multiple VLANs.
n
The access ports or hybrid ports must be added to an existing VLAN.
Ethernet Port
Configuration
Initially Configuring a
Port
Table 55
Processing of incoming/outgoing packets
Port type
Processing of an incoming packet
Processing of an outgoing
packet
If the
packet does
not carry a
VLAN tag
If the packet carries a
VLAN tag
Access
Receive the
packet and
add the
default tag to
the packet.
■
If the VLAN ID is just the
default VLAN ID, receive
the packet.
■
If the VLAN ID is not the
default VLAN ID, discard
the packet.
Deprive the tag from the packet
and send the packet.
Trunk
■
If the VLAN ID is just the
default VLAN ID, receive
the packet.
■
If the VLAN ID is not the
default VLAN ID but is
one of the VLAN IDs
allowed to pass through
the port, receive the
packet.
■
If the VLAN ID is neither
the default VLAN ID, nor
one of the VLAN IDs
allowed to pass through
the port, discard the
packet.
■
If the VLAN ID is just the default
VLAN ID, deprive the tag and
send the packet.
■
If the VLAN ID is not the default
VLAN ID, keep the original tag
unchanged and send the
packet.
■
Hybrid
Send the packet if the VLAN ID is
allowed to pass through the port.
Use the
port hybrid vlan
command to configure whether
the port tags the packet when
sending a packet in this VLAN
(including default VLAN).
Table 56
Initially configure a port
Operation
Command
Remarks
Enter system view
system-view
-
Enter Ethernet port view
interface
interface-type
interface-number
-
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...