Today, I would like to share with you when the OLT configures upstream Ethernet port attributes.
Preconditions
The board in the GIU slot has been installed and is working normally.
Background Information
The MA5680T/MA5683T/MA5608T needs to be connected to the upstream device using the Ethernet port, so you need to pay attention to the consistency of the port attributes.
Default configuration
The system default values of Ethernet port attributes are shown in Table 1 .
Steps
· Configure Ethernet port physical properties.
1. (Optional) Set the auto-negotiation mode of the Ethernet port.
Use the command auto-neg to set the auto-negotiation mode of the Ethernet port. Auto-negotiation mode can be enabled or disabled:
· When the auto-negotiation mode is enabled, the port automatically negotiates the port speed and working mode of the Ethernet port with the interconnected port.
· When the auto-negotiation mode is disabled, the speed and working mode of the port are in mandatory mode (use the default or command-line set speed and working mode).
Notice:
The configuration of the OLT port mode and the port mode of the connected device must be consistent, either in auto-negotiation mode or in forced mode, otherwise, normal communication may not be possible!
2. (Optional) Set the Ethernet port speed.
Use the command speed to set the Ethernet port rate. After the port rate is configured successfully, the port can work at the set rate. Considerations when configuring:
· The configuration principle is that the port rates of the corresponding ports of the two interconnected devices should be the same to avoid the problem of inability to communicate.
· The auto-negotiation mode needs to be disabled.
3. (Optional) Configure the duplex mode of the Ethernet port.
Use the command duplex to configure the duplex mode of the Ethernet port. The duplex status of the port can be half-duplex, full-duplex, and auto-negotiation. Precautions when configuring:
· The configuration principle is that the duplex status of the corresponding ports of the two interconnected devices should be consistent to avoid the problem of inability to communicate.
· The auto-negotiation mode needs to be disabled.
· The duplex mode of the optical port does not support configuration.
4. (Optional) Configure the network cable adaptation mode of the Ethernet port.
Run the mdi command to configure the network cable adaptation mode of the Ethernet port to match the actual network cable. There are three ways to adapt the network cable:
· normal : Specifies that the network cable adaptation mode of the Ethernet port is to use a straight-through network cable. In this case, the type of network cable actually connected to the Ethernet port must be a straight-through network cable.
· across : Specifies that the network cable adaptation mode of the Ethernet port is to use a crossover network cable. In this case, the type of network cable actually connected to the Ethernet port must be a crossover cable.
· auto: Specifies that the network cable adaptation mode of the Ethernet port is the adaptive mode. At this time, the type of network cable actually connected to the Ethernet port can use either a straight-through network cable or a crossover network cable.
In addition, you need to pay attention when configuring:
· The Ethernet optical port does not support the configuration of the network cable adaptation mode.
· If the Ethernet electrical port is working in forced mode (disable auto-negotiation mode), the network cable type of the port cannot be set to auto .
· Configure flow control for Ethernet ports.
Use the flow-control command to enable flow control on the Ethernet port. When the traffic of the Ethernet port is relatively large and needs to be controlled, use this command to avoid network congestion and loss of data packets. Flow control needs to be supported by both the local and peer devices. When configuring, you need to pay attention to:
If the peer device supports flow control, the local end is generally set to enable the flow control switch.
If the peer device does not support flow control, the local end is generally set to disable flow control.
The system default is to disable flow control.
· Configure Ethernet port mirroring.
Use the mirror port command to configure Ethernet port mirroring. When a problem occurs in the system, you need to copy the traffic of a port in the system to other ports for output for traffic observation, network fault diagnosis, and data analysis.
Task example
For example: Ethernet port 0/19/0 is an electrical port, set its properties as: port rate 1000Mbit/s , full-duplex mode, support flow control, and do not support auto-negotiation mode.
huawei(config)# interface giu 0/19
huawei(config-if-giu- 0/19 )# auto-neg 0 disable
huawei(config-if-giu- 0/19 )# speed 0 1000
huawei(config-if-giu- 0/19 )# duplex 0 full
huawei(config-if-giu- 0/19 )# flow-control 0
huawei(config-if-giu- 0/19 )# display port state 0
The port is active
Native VLAN ID is 1
Ethernet port is offline
Ethernet port is full duplex
Ethernet port rate is 1000M
Ethernet port supports flow control
Ethernet port does not support jumbo frame
Line-adaptive function of the ethernet port is normal
Ethernet port network-role is uplink
Note: For any port, setting MDI to auto-negotiation is invalid, For a 1000 M
Electrical port in the full-duplex mode, setting MDI to any value is
invalid
Leave a comment