当不知道电缆类型时,可以使用自动介质相关接×××叉让设备两端自动协商成合适的电缆

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