API Guide

c. VRF Red 实例中配置 NTP
OS10(config)# ntp enable vrf red
“% Warning: NTP server/client will be disabled in default VRF and enabled on a red VRF”
Do you wish to continue? (y/n): y
OS10(config)# do show running-configuration ntp
ntp master 8
ntp enable vrf red
OS10(config)#
4. 验证 NTP 客户端 (10.0.0.2) 是否连接到在 VRF Red 中运行的 NTP 服务器 (10.0.0.1)
OS10# show ntp associations vrf red
remote refid st t when poll reach delay offset jitter
==============================================================================
*10.0.0.1 11.0.0.2 10 u 2 64 1 0.578 -1.060 0.008
OS10# show ntp status vrf red
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
system peer: 10.0.0.1:123
system peer mode: client
leap indicator: 00
stratum: 11
log2 precision: -24
root delay: 0.991
root dispersion: 1015.099
reference ID: 10.0.0.1
reference time: dbc7b087.5d47aaa6 Sat, Nov 5 2016 1:12:39.364
system jitter: 0.000000
clock jitter: 0.462
clock wander: 0.003
broadcast delay: -50.000
symm. auth. delay: 0.000
OS10#
5. 验证 NTP 服务器 (10.0.0.1) 是否连接到正在 VRF Red 中运行的 NTP 主节点 (11.0.0.2)
OS10(config)# do show ntp associations vrf red
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) .LOCL. 8 l 111 64 2 0.000 0.000 0.000
*11.0.0.2 LOCAL(0) 9 u 43 64 3 0.441 0.026 0.047
OS10(config)# do show ntp status vrf red
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
system peer: 11.0.0.2:123
system peer mode: client
leap indicator: 00
stratum: 10
log2 precision: -24
root delay: 0.441
root dispersion: 950.580
reference ID: 11.0.0.2
reference time: dbc7b03e.733f51d7 Sat, Nov 5 2016 1:11:26.450
system jitter: 0.000000
clock jitter: 0.009
clock wander: 0.000
broadcast delay: -50.000
symm. auth. delay: 0.000
OS10(config)#
178
系统管理