Enabling Auto-Detect
When the media-type is not configured, the Auto-Detect feature is enabled by default. The Auto-Detect feature automatically detects the media that is connected and links up. If both the media are connected, whichever media comes up first is linked. By default, the media-type on FPGE ports is set to auto-select. User can overwrite the media-type configuration to either RJ-45 or SFP using the media-type rj45/sfp command under the FPGE interface. The media type configuration also falls back to “Auto-select” mode when the no media-type command is configured. You can use the no media-type command in interface configuration mode to enable the Auto-Detect feature.
Configuring Auto-Detect
The Auto-Detect feature is enabled by default on the Front Panel Gige Ports. It is enabled by either configuring "media-type auto-select" or "no media-type". To configure the Auto-Detect, perform these steps:
SUMMARY STEPS
- configure terminal
- interface gigabitethernet {slot | bay | port }
- media-type auto-select
- End
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
Step 2 |
interface gigabitethernet {slot | bay | port } Example:
|
Enters interface configuration mode. |
Step 3 |
media-type auto-select Example:
|
Auto-select mode uses whichever connector is attached. The options are:
|
Step 4 |
End Example:
|
Exits to global configuration mode. |
Examples
The following example shows the default configuration and the show running configuration does not show any media type when the no media-type is selected.
Router(config)# show running interface gigabitethernet 0/0/0
Building configuration...
Current configuration : 71 bytes
!
interface GigabitEthernet0/0/0
no ip address
negotiation auto
end
Configuring the Primary and Secondary Media
When the router receives an indication that the primary media is down, the secondary failover media is enabled. After the switchover, the media does not switch back to primary media when the primary media is restored. You need to use either shut or no shut command or reload the module to switch the media-type back to primary(preferred) media.
To assign the primary or secondary failover media on the GE-SFP port, perform these steps:
SUMMARY STEPS
- configure terminal
- interface gigabitethernet {slot | port }
- media-type rj45 autofailover
- End
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
configure terminal Example:
|
Enters global configuration mode. |
Step 2 |
interface gigabitethernet {slot | port } Example:
|
Enters interface configuration mode. |
Step 3 |
media-type rj45 autofailover Example:
|
Configures the port with rj45 as the primary media for automatic failover. |
Step 4 |
End Example:
|
Exits to global configuration mode. |
Examples
The following example shows the primary configuration.
Router(config)# show running interface gigabitethernet 0/0/0
Building configuration...
Current configuration : 102 bytes
!
interface GigabitEthernet0/0/0
no ip address
media-type rj45 auto-failover
negotiation auto
end