當不知道電纜類型時,可以使用自動介質相關接口交叉讓設備兩端自動協商成合適的電纜
SW1(config)#interface fastEthernet 0/1
SW1(config-if)#mdix ?
auto Enable automatic MDI crossover detection on this interface
SW1(config-if)#mdix auto
SW2(config)#interface fastEthernet 0/1
SW2(config-if)#mdix ?
auto Enable automatic MDI crossover detection on this interface
SW2(config-if)#mdix auto