交换机配置NTP

交换机配置NTP


华为NTP广播模式:

#核心
ntp-service refclock-master 3		#主时间服务器,使用本地时钟作为NTP主时钟,层数为3,这个按需配置,也可不配置

ntp-service authentication enable 		#启用NTP认证
ntp-service authentication-keyid 15 authentication-mode hmac-sha256 cipher superman
ntp-service reliable authentication-keyid 15

int vlan 200		#从VLANIF200发送NTP广播报文,并指定使用密钥ID 15加密
ntp-service broadcast-server authentication-keyid 15

ntp-service unicast-server 203.107.6.88 	#使用aliyun NTP同步本机
undo ntp-service server disable			#使能NTP服务器功能
dis clock 			#查看时间
#其他汇聚、接入设置
ntp-service authentication enable 
ntp authentication-keyid 15 authentication-mode hmac-sha256 cipher superman
ntp-service reliable authentication-keyid 15

int vlan 200
ntp-service broadcast-client 

华三NTP广播模式:

#核心
<H3C>sys
[H3C]ntp-service enable
[H3C]clock protocol ntp
[H3C]ntp-service refclock-master 3
[H3C]ntp-service unicast-server 203.107.6.88
[H3C]ntp-service authentication enable
[H3C]ntp-service authentication-keyid 15 authentication-mode hmac-sha256 simple superman
[H3C]ntp-service reliable authentication-keyid 15

[H3C]int vlan 200
[H3C-Vlan-interface200]ntp-service broadcast-server
[H3C-Vlan-interface200]ntp-service broadcast-server authentication-keyid 15
#汇聚接入
<SwitchA> system-view
[SwitchA] ntp-service enable
[SwitchA] clock protocol ntp
[SwitchA] ntp-service authentication enable
[SwitchA] ntp-service authentication-keyid 15 authentication-mode hmac-sha256 simple superman
[SwitchA] ntp-service reliable authentication-keyid 15

[SwitchA] interface vlan-interface 200
[SwitchA-Vlan-interface200] ntp-service broadcast-client

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值