评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置混合型组网的时钟同步示例
混合型时钟同步网中,使能扩展SSM可有效避免时钟环路的出现。
组网需求
如图7-2所示,这是一个环型组网和链型组网混合的时钟同步网。DeviceA、DeviceB和DeviceC在同一环型时钟同步网中,其中DeviceA与外接BITS直连,DeviceC与属于另一链型时钟同步网的DeviceD直连。
在此混合型时钟网中,BITS时钟正常时各设备均同步来自BITS的高质量时钟信号。当BITS出现异常时,全网可切换到跟踪来自DeviceD所属的链型时钟同步网的时钟信号。为解决时钟同步网常见的时钟环路问题,本组网中配置了扩展SSM功能。
操作步骤
- 使能扩展SSM功能。
# 配置DeviceA
<HUAWEI> system-view
[~HUAWEI] sysname DeviceA
[HUAWEI] commit
[~DeviceA] clock extend-ssm-control on
[*DeviceA] commit
# 其他设备与DeviceA配置相同,此处不再赘述。
- 配置时钟参考源。
# 配置DeviceA
[*DeviceA] clock bits-type bits0 2mbps
[*DeviceA] clock source bits0 priority 1
[*DeviceA] clock source bits0 clock-id 1
[*DeviceA] commit
[~DeviceA] quit
[~DeviceA] interface gigabitethernet 0/1/0
[*DeviceA-GigabitEthernet0/1/0] clock synchronization enable
[*DeviceA-GigabitEthernet0/1/0] clock clock-id 2
[*DeviceA-GigabitEthernet0/1/0] commit
[~DeviceA-GigabitEthernet0/1/0] quit
[~DeviceA] interface gigabitethernet 0/2/0
[*DeviceA-GigabitEthernet0/2/0] clock synchronization enable
[*DeviceA-GigabitEthernet0/2/0] clock priority 3
[*DeviceA-GigabitEthernet0/2/0] clock clock-id 3
[*DeviceA-GigabitEthernet0/2/0] commit
# 配置DeviceB
[~DeviceB] interface gigabitethernet 0/1/0
[*DeviceB-GigabitEthernet0/1/0] clock synchronization enable
[*DeviceB-GigabitEthernet0/1/0] clock priority 1
[*DeviceA-GigabitEthernet0/1/0] clock clock-id 4
[*DeviceB-GigabitEthernet0/1/0] commit
[~DeviceB-GigabitEthernet0/1/0] quit
[~DeviceB] interface gigabitethernet 0/2/0
[*DeviceB-GigabitEthernet0/2/0] clock synchronization enable
[*DeviceB-GigabitEthernet0/2/0] clock priority 2
[*DeviceA-GigabitEthernet0/2/0] clock clock-id 5
[*DeviceB-GigabitEthernet0/2/0] commit
# 配置DeviceC
[~DeviceC] interface gigabitethernet 0/2/0
[*DeviceC-GigabitEthernet0/2/0] clock synchronization enable
[*DeviceA-GigabitEthernet0/2/0] clock clock-id 6
[*DeviceC-GigabitEthernet0/2/0] commit
[~DeviceC-GigabitEthernet0/2/0] quit
[~DeviceC] interface gigabitethernet 0/2/0
[*DeviceC-GigabitEthernet0/2/0] clock synchronization enable
[*DeviceC-GigabitEthernet0/2/0] clock priority 3
[*DeviceA-GigabitEthernet0/2/0] clock clock-id 7
[*DeviceC-GigabitEthernet0/2/0] commit
[~DeviceC-GigabitEthernet0/2/0] quit
[~DeviceC] interface gigabitethernet 0/1/0
[*DeviceC-GigabitEthernet0/1/0] clock synchronization enable
[*DeviceC-GigabitEthernet0/1/0] clock priority 2
[*DeviceA-GigabitEthernet0/1/0] clock clock-id 8
[*DeviceC-GigabitEthernet0/1/0] commit
# 配置DeviceD
[~DeviceC] interface gigabitethernet 0/1/0
[*DeviceC-GigabitEthernet0/1/0] clock synchronization enable
[*DeviceC-GigabitEthernet0/1/0] clock priority 1
[*DeviceA-GigabitEthernet0/1/0] clock clock-id 9
[*DeviceC-GigabitEthernet0/1/0] commit
[~DeviceC-GigabitEthernet0/1/0] quit
配置文件
DeviceA的配置文件
#
sysname DeviceA
#
clock extend-ssm-control on
clock bits-type bits0 2mbps
clock source bits0 clock-id 1
#
interface GigabitEthernet0/1/0
clock synchronization enable
clock clock-id 2
#
interface GigabitEthernet0/2/0
clock synchronization enable
clock priority 3
clock clock-id 3
#
return
DeviceB的配置文件
#
sysname DeviceB
#
clock extend-ssm-control on
#
interface GigabitEthernet0/1/0
clock synchronization enable
clock priority 1
clock clock-id 4
#
interface GigabitEthernet0/2/0
clock synchronization enable
clock priority 2
clock clock-id 5
#
return
DeviceC的配置文件
#
sysname DeviceC
#
clock extend-ssm-control on
#
interface GigabitEthernet0/1/0
clock synchronization enable
clock priority 2
clock clock-id 8
#
interface GigabitEthernet0/2/0
clock synchronization enable
clock priority 3
clock clock-id 7
#
interface GigabitEthernet0/3/0
clock synchronization enable
clock clock-id 6
#
return
DeviceD的配置文件
#
sysname DeviceD
#
clock extend-ssm-control on
#
interface GigabitEthernet0/1/0
clock synchronization enable
clock priority 1
clock clock-id 9
#
return