步骤4、检查互联双方的速率双工的配置是否一致

 

通常建议使用默认设置自动协商速率双工,但在以下情况需要进行调整:

 

·    对方设备不支持自动协商,例如光电收发器,则需要在我端交换机上指定速率双工和流控

·    安装的光模块速率和接口速率不一致,例如在支持万兆速率的SFP接口上插入Mini-GBIC千兆光模块,则需要指定速率

·    对方设备配置了强制速率和双工,则我端需要配置成一样

 

参考如下操作过程:

 

Ruijie#show run int te 1/2

 

Building configuration...

Current configuration : 46 bytes

!

interface TenGigabitEthernet 1/2

 speed 10G

Ruijie#

Ruijie#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Ruijie(config)#int te 1/2

Ruijie(config-TenGigabitEthernet 1/2)#speed 10g             --> 指定接口速率

Ruijie(config-TenGigabitEthernet 1/2)#duplex full           --> 指定全双工

Ruijie(config-TenGigabitEthernet 1/2)#flowcontrol off       --> 指定流控

Ruijie(config-TenGigabitEthernet 1/2)#end

Ruijie#show run int te 1/2

 

Building configuration...

Current configuration : 60 bytes

!

interface TenGigabitEthernet 1/2

 duplex full

 speed 10G

Ruijie#

 

 

两端光口速率和双工各种配置和最终Link状态如下表所示:

 

Port A

Speed/Duplex

Port B

Speed/Duplex

Port A Status

Port B Status

auto/auto

auto/auto

up

up 

auto/auto

auto/full

up

up

auto/auto

auto/half

up

up

auto/auto

1000/auto

down

up

auto/auto

1000/full

down

up

auto/auto

1000/half

down

up

 

 

 

 

1000/full

1000/full

up

up

1000/full

1000/half

up

up

1000/full

1000/auto

up

up

1000/full

auto/full

up

down

1000/full

auto/half

up

down

 

 

 

 

1000/half

1000/half

up

up

1000/half

1000/auto

up

up

1000/half

auto/full

up

down

1000/half

auto/half

up

down

 

 

 

 

auto/full

auto/full

up

up

auto/full

auto/half

down

Down

auto/full

1000/auto

down

up

 

 

 

 

auto/half

auto/half

up

up

auto/half

1000/auto

down

up

 

 

 

 

1000/auto

1000/auto

up

up