mdi-mode
Syntax
mdi-mode mode;
Hierarchy Level
[edit interfaces interface-name ether-options], [edit interfaces interface-range range ether-options]
Description
You must configure media dependent interface (MDI) properties for a 10-Gigabit Ethernet interface on a copper network port of an EX4550 switch to ensure that both sides of the link are compatible.
MDI refers to the IEEE standard for the interface to an unshielded twisted pair (UTP) cable. Twisted-pair Ethernet standards are such that the majority of cables can be wired "straight-through" (pin 1 to pin 1, pin 2 to pin 2 and so on), but others may need to be wired in the "crossover" form (receive to transmit and transmit to receive).
For most ports, the switch can automatically detect the required connection type and can therefore configure the interface appropriately. However, the switch cannot automatically detect whether the connection type of a 10-Gigabit Ethenet interface on a copper network port is straight-through or crossover.
Therefore, you must set the MDI properties of the local interface of a 10-Gigabit Ethernet interface on a copper network port to ensure that it will work correctly with the other side of the link. When you set this configuration on an interface, you must also disable auto-negotiation and set the speed to 100m.
This configuration does not apply to management Ethernet or console interfaces and it does not apply to 1-Gigabit copper ports.
The proper setting depends both on the type of cable and the setting that is being used on the other side of the link:
For crossover cables—Set the polarity to match the other side of the link. Specify
mdi
for the switch interface ifmdi
is being used on the other side of the link; specifymdix
ifmdix
is being used on the other side of the link.For straight cables—Set the polarity to be the opposite of the other side link. Specify
mdi
for the switch interface ifmdix
is being used on the other side of the link; specifymdix
ifmdi
is being used on the other side of the link.
Options
One of the following modes:
auto |
Set the MDI properties to automatic. This setting should not be used with 10-Gigabit Ethernet interfaces on a copper network port of an EX4550 switch. |
mdi |
Set the MDI properties of the interface to straight through mode. The selection of the mode depends on whether crossover or straight cables are being used and on the setting used on the other side of the link. |
mdix |
Set the MDI properties of the interface to crossover mode. The selection of the mode depends on whether crossover or straight cables are being used and on the setting used on the other side of the link. |
force |
For SRX Series Firewalls this option enables the MDI properties to auto-mdix always. |
Required Privilege Level
interface—To view this statement in the configuration.interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 12.2.
Support for SRX Series Firewalls introduced in Junos OS Release 15.1x49.D80.