1-4
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet port view interface interface-type
interface-number
Enable the Ethernet port undo shutdown By default, the port is enabled.
Use the shutdown command to
disable the port.
Set the description of the
Ethernet port description text By default, no description is defined
for an Ethernet port.
Set the duplex mode of the
Ethernet port duplex { auto | full | half } The port defaults to auto
(autonegotiation) mode.
Set the rate of the Ethernet port speed { 10 | 100 | 1000 |
auto } By default, the speed of the port is
set to auto mode.
Set the MDI attribute of the
Ethernet port mdi { across | auto |
normal } Be default, the MDI attribute of the
port is set to auto mode.
Allow jumbo frames that are not
larger than 4096 bytes to pass
through the Ethernet port jumboframe enable
Optional
By default, jumbo frames that are
not larger than 4096 bytes are
allowed to pass through the port.
z For a combo port, only after the optical interface has been configured with the shutdown
command can the electrical interface be used, and vice versa.
z The speed and mdi commands are not available on the combo port.
z The mdi command is not available on the Ethernet ports of the expansion interface card.
Configuring Port Auto-Negotiation Speed
You can configure an auto-negotiation speed for a port by using the speed auto command.
Take a 10/100/1000 Mbps port as an example.
z If you expect that 10 Mbps is the only available auto-negotiation speed of the port, you just need to
configure speed auto 10.
z If you expect that 10 Mbps and 100 Mbps are the available auto-negotiation speeds of the port, you
just need to configure speed auto 10 100.
z If you expect that 10 Mbps and 1000 Mbps are the available auto-negotiation speeds of the port,
you just need to configure speed auto 10 1000.
Follow these steps to configure auto-negotiation speeds for a port:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet interface view interface interface-type
interface-number