Chapter 1 Port Basic
Configuration
1.1 Ethernet Port Overview
1.1.1
Link Types of Ethernet Ports
An
Ethernet port on an S7500 switch 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 user PCs.
l
Trunk: A trunk port can
belong to more than one VLAN. It can receive/send packets from/to multiple
VLANs, and is generally used to connect another switch.
l
Hybrid: A hybrid port can
belong to more than one VLAN. It can receive/send packets from/to multiple
VLANs, and can be used to connect either a switch or user PCs.
A
hybrid port allows the packets of multiple VLANs to be sent without tags, but a
trunk port only allows the packets of the default VLAN to be sent without tags.
You can configure all
the three types of ports on the same device. However, note that you cannot
directly switch a port between trunk and hybrid and you must set the port as
access before the switching. For example, to change a trunk port to hybrid, you
must first set it as access and then hybrid.
An access port can
belong to only one VLAN. Therefore, the VLAN an access port belongs to is also
the default VLAN of the access port. A hybrid/trunk port can belong to several
VLANs, and so a default VLAN ID for the port is required.
After you configure
default VLAN IDs for Ethernet ports, the packets passing through the ports are
processed in different ways depending on different situations. See Table 1-1 for details.
Table 1-1 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.
|
l If the VLAN ID is just the default VLAN ID,
receive the packet.
l If the VLAN ID is not the default VLAN ID,
discard the packet.
|
Deprive the tag from the packet and send the packet.
|
|
Trunk
|
l If the VLAN ID is just the default VLAN ID,
receive the packet.
l 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.
l 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.
|
l If the VLAN ID is just the default VLAN ID,
deprive the tag and send the packet.
l If the VLAN ID is not the default VLAN ID,
keep the original tag unchanged and send the packet.
|
|
Hybrid
|
l
If the VLAN ID is just the
default VLAN ID, deprive the tag and send the packet.
l
If the VLAN ID is not the
default VLAN ID, deprive the tag or keep the tag unchanged (whichever is done
is determined by the port hybrid vlan vlan-id-list { tagged
| untagged } command) and send the packet.
|
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.
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.
The
access ports or hybrid ports must be added to an existing VLAN.
Table 1-2 Initially configure
a port
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Enable the Ethernet
port
|
undo shutdown
|
Optional
By default, the port
is enabled.
Use the shutdown
command to disable the port.
|
|
Set the description
of the Ethernet port
|
description text
|
Optional
By default, no
description is defined for the port.
|
|
Set the duplex mode
of the Ethernet port
|
duplex { auto | full | half }
|
Optional
By default, the
duplex mode of the port is auto (auto-negotiation).
|
|
Set the speed of the
Ethernet port
|
speed { 10 | 100 | 1000 | 10000 |
auto }
|
Optional
By default, the speed
of the port is auto (auto-negotiation).
|
|
Set the medium
dependent interface (MDI) attribute of the Ethernet port
|
mdi { across | auto | normal }
|
Optional
Be default, the MDI
attribute of the port is auto.
|
|
Allow jumbo frames to
pass through the Ethernet port
|
jumboframe enable [ jumboframe-value ]
|
Optional
By default, jumbo
frames that are larger than 1518 bytes and smaller than 1536 bytes are
allowed to pass through the port.
|
Pay attention to the
following points when setting the duplex mode and rate of an Ethernet port.
Table 1-3
Precautions in duplex mode setting
|
Port type
|
Precautions
in duplex mode setting
|
|
100 Mbps electrical
Ethernet port
|
It can work in full-duplex mode,
half-duplex mode or auto-negotiation mode as required.
|
|
Gigabit electrical
Ethernet port
|
It can work in full-duplex mode,
half-duplex mode or auto-negotiation mode. However, if the rate is set to
1000 Mbps, its duplex mode can be set to full or auto.
|
|
100 Mbps optical
Ethernet port
|
It works in full-duplex mode and its
duplex mode can be set to full or auto.
|
|
Gigabit optical
Ethernet port
|
It works in full-duplex mode and its
duplex mode can be set to full or auto.
|
|
10,000 Mbps optical
Ethernet port
|
Its duplex mode can be set to full
only.
|
|
Management port
|
Its duplex mode cannot be set.
|
Table 1-4
Precautions in port rate setting
|
Port type
|
Precautions
in duplex mode setting
|
|
100 Mbps electrical
Ethernet port
|
Its rate can be set to 10 Mbps or 100
Mbps as required.
|
|
Gigabit electrical
Ethernet port
|
Its rate can be set to 10 Mbps, 100 Mbps
or 1000 Mbps as required. If its duplex mode is set to full or half,
its rate cannot be set to 1000 Mbps.
|
|
100 Mbps optical
Ethernet port
|
Its supports the rate of 100 Mbps. Its
rate can be set to 100 Mbps or auto.
|
|
Gigabit optical
Ethernet port
|
Its supports the rate of 1000 Mbps. Its
rate can be set to 1000 Mbps or auto.
|
|
10,000 Mbps optical
Ethernet port
|
Its rate can be set to 10,000 Mbps only.
|
|
Management port
|
Its rate cannot be set.
|
1.2.2
Configuring
Broadcast/Multicast Suppression
By performing the following configurations, you can limit
different types of incoming traffic on individual ports. When a type of
incoming traffic exceeds the threshold you set, the system drops the packets
exceeding the traffic limit to reduce the traffic ratio of this type to the
reasonable range, so as to keep normal network service.
Table 1-5
Configure broadcast/multicast
suppression
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter VLAN view
|
vlan vlan-id
|
—
|
|
Suppress broadcast
traffic received on all ports in the current VLAN
|
broadcast-suppression { ratio | pps pps
}
|
Optional
By default, the
switch does not suppress broadcast traffic
|
|
Exit VLAN view
|
quit
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Limit broadcast
traffic received on the current port
|
broadcast-suppression { ratio | bandwidth
bandwidth | pps pps }
|
Optional
By default, the
switch does not suppress broadcast traffic.
|
|
Limit multicast
traffic received on the current port
|
multicast-suppression { ratio | bandwidth { mbps-value | kbps kbps-value
} | pps max-pps }
|
Optional
By default, the
switch does not suppress multicast traffic.
|
l Broadcast suppression is set in different ways for different LPUs of
the S7500 series: For type-A LPUs, broadcast suppression must be set in VLAN
view; for non-type-A LPUs, broadcast suppression must be set in Ethernet port
view.
l Type-A LPUs include LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA, and
LS81GT8UA.
Flow control is enabled
on both the local and peer switches. If congestion occurs on the local switch:
l
The local switch sends a
message to notify the peer switch of stopping sending packets to itself
temporarily.
l
The peer switch will stop
sending packets to the local switch or reduce the sending rate temporarily when
it receives the message; and vice versa. By this way, packet loss is avoided
and the network service operates normally.
Table 1-6 Enable flow control on a port
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enable flow control
globally
|
flow-control enable
|
Required
By default, flow
control is disabled globally.
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Enable flow control
on the Ethernet port
|
flow-control
|
Required
By default, flow
control is disabled on the port.
|
Table 1-7 Configure access port attribute
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Set the link type of
the port to access
|
port link-type access
|
Optional
By default, the link
type of a port is access.
|
|
Add the current
access port to a specified VLAN
|
port access vlan vlan-id
|
Optional
|
1.2.5 Configuring Hybrid Port Attribute
Table 1-8 Configure hybrid port attribute
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Set the link type of
the port to hybrid
|
port link-type hybrid
|
Required
|
|
Set the default VLAN
ID for the hybrid port
|
port hybrid pvid
vlan vlan-id
|
Optional
If no default VLAN ID
is set for a hybrid port, VLAN 1 (system default VLAN) is used as the default
VLAN of the port.
|
|
Add the current
hybrid port to a specified VLAN
|
port hybrid vlan vlan-id-list { tagged
| untagged }
|
Optional
For a hybrid port,
you can configure to tag the packets of specific VLANs, based on which the
packets of those VLANs can be processed in differently ways.
|
Table 1-9 Configure trunk port attribute
|
Operation
|
Command
|
Description
|
|
Enter system view
|
System-view
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Set the link type of
the port to trunk
|
port link-type trunk
|
Required
|
|
Set the default VLAN
ID for the trunk port
|
port trunk pvid
vlan vlan-id
|
Optional
If no default VLAN ID
is set for a trunk port, VLAN 1 (system default VLAN) is used as the default
VLAN of the port.
|
|
Add the current trunk
port to a specified VLAN
|
port trunk permit
vlan { vlan-id-list | all
}
|
Optional
|
To make some other
ports have the same configuration as that of a specific port, you can copy the
configuration of the specific port to the ports.
Specifically, the
following types of port configuration can be copied from one port to other
ports: VLAN configuration, protocol-based VLAN configuration, LACP
configuration, QoS configuration, STP configuration and initial port
configuration.
l
VALN configuration: includes
IDs of the VLANs allowed on the port and the default VLAN ID of the port;
l
Protocol-based VLAN
configuration: includes IDs and indexes of the protocol-based VLANs allowed on
the port;
l
Link aggregation control
protocol (LACP) configuration: includes LACP enable/disable status;
l
QoS configuration: includes
rate limit, port priority, and default 802.1p priority on the port;
l
STP configuration: includes
STP enable/disable status on the port, link attribute on the port
(point-to-point or non-point-to-point), STP priority, path cost, packet
transmission rate limit, whether loop protection is enabled, whether root
protection is enabled, and whether the port is an edge port;
l
Port configuration: includes
link type of the port, port rate and duplex mode.
Table 1-10 Copy the
configuration of a port to other ports
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Copy the configuration of a port to other ports
|
copy configuration source { interface-type interface-number | aggregation-group
source-agg-id } destination { interface-list [ aggregation-group
destination-agg-id ] | aggregation-group destination-agg-id
}
|
Required
|
l If you specify a source aggregation group ID,
the system will use the port with the smallest port number in the aggregation
group as the source.
l If you specify a destination aggregation group
ID, the configuration of the source port will be copied to all ports in the
aggregation group and all ports in the group will have the same configuration
as that of the source port.
Loopback detection is
used to monitor if loopback occurs on a switch port.
After you enable
loopback detection on Ethernet ports, the switch can monitor if external
loopback occurs on them. If there is a loopback port found, the switch will put
it under control.
l
If loopback is found on an
access port, the system disables the port, sends a Trap message to the client
and removes the corresponding MAC forwarding entry.
l
If loopback is found on a
trunk or hybrid port, the system disables the port, sends a Trap message to the
client and removes the corresponding MAC forwarding entry.
Table 1-11 Set loopback detection for a port
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enable loopback
detection globally
|
loopback-detection
enable
|
Optional
By default, loopback
detection is disabled globally.
|
|
Set time interval for
port loopback detection
|
loopback-detection
interval-time time
|
Optional
The default interval
is 30 seconds.
|
You can enable the
system to test the cable connected to a specific port. The test result will be
returned in five minutes. The system can test these attributes of the cable:
Receive and transmit directions (RX and TX), short circuit/open circuit or not,
the length of the faulty cable.
Table 1-12 Enable the system to test connected cables
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter Ethernet port view
|
interface interface-type interface-number
|
—
|
|
Enable the system to test connected cables
|
virtual-cable-test
|
Required
|
By performing the
following configuration, you can set the interval to perform statistical
analysis on the traffic of a port.
When you use the display
interface interface-type interface-number command to display the
information of a port, the system performs statistical analysis on the traffic
flow passing through the port during the specified interval and displays the
average rates in the interval. For example, if you set this interval to 100
seconds, the displayed information is as follows:
Last 100 seconds input: 0 packets/sec 0
bytes/sec
Last 100 seconds output: 0 packets/sec 0
bytes/sec
Table
1-13 Set the interval to
perform statistical analysis on port traffic
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enter Ethernet port
view
|
interface interface-type interface-number
|
—
|
|
Set the interval to
perform statistical analysis on port traffic
|
flow-interval interval
|
Optional
By default, this
interval is 300 seconds.
|
Perform the following configuration to
speed up the hardware in a port or out of a port.
Table
1-14 Set speedup for a port
|
Operation
|
Command
|
Description
|
|
Enter system view
|
system-view
|
—
|
|
Enable the hardware speedup function
inside the port
|
hardspeedup enable
|
Optional
By default, the hardware speedup function
inside the port is enabled.
|
|
Disable the hardware speedup function
inside the port
|
hardspeedup disable
|
|
Enable the hardware speedup function
outside the port
|
speedup enable
|
Optional
By default, the hardware speedup function
outside the port is enabled.
|
|
Disable the hardware speedup function
outside the port
|
speedup disable
|
Caution:
l The hardspeedup enable/disable commands are applicable to
type-A LPUs only, including LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA, and
LS81GT8UA.
l The speedup enable/disable commands are applicable to
non-type-A LPUs only.
l The commands above are diagnostic, so you cannot use them at discretion.
1.2.12 Displaying
Basic Port Configuration
After the above
configurations, you can execute the display commands in any view to
display information about Ethernet ports, so as to verify your configurations.
You can execute the reset
counters command in user view to clear the statistics of Ethernet ports.
Table 1-15 Display basic port configuration
|
Operation
|
Command
|
Description
|
|
Display port
configuration information
|
display interface [ interface-type |
interface-type interface-number ]
|
You can execute the display
commands in any view.
|
|
Display information
about a specified optical port
|
display
transceiver-information interface interface-type interface-number
|
|
Display the
information about port loopback detection
|
display
loopback-detection
|
|
Display brief
information about port configuration
|
display brief
interface [ interface-type
interface-number ] [ | { begin | include | exclude
} string ]
|
|
Display the hybrid or
trunk ports
|
display port { hybrid | trunk }
|
|
Display port
information about a specified unit
|
display unit unit-id interface
|
|
|
Clear port statistics
|
reset counters
interface [ interface-type | interface-type
interface-number ]
|
You can execute the reset
command in user view.
|