Linux系统ntp组播设置,NTP典型组网配置案例7(组播模式)

SW2:

sys

System View: return to User View with Ctrl+Z.

[H3C]sysname SW2

[SW2]vlan 10

[SW2-vlan10]quit

[SW2]int vlan 10

[SW2-Vlan-interface10]ip address 10.0.0.1 24

[SW2-Vlan-interface10]quit

[SW2]ip route-static 0.0.0.0 0.0.0.0 10.0.0.2

[SW2]int gi 1/0/1

[SW2-GigabitEthernet1/0/1]port link-type access

[SW2-GigabitEthernet1/0/1]port access vlan 10

[SW2-GigabitEthernet1/0/1]quit

SW2 NTP关键配置点:

[SW2]clock protocol ntp

[SW2]ntp-service enable

[SW2]int vlan 10

[SW2-Vlan-interface10]ntp-service multicast-client

[SW2-Vlan-interface10]quit

SW1:

sys

[H3C]sysname SW1

[SW1]vlan 10

[SW1-vlan10]quit

[SW1]int vlan 10

[SW1-Vlan-interface10]ip address 10.0.0.2 24

[SW1-Vlan-interface10]quit

[SW1]ip route-static 0.0.0.0 0.0.0.0 10.0.0.1

[SW1]int gi 1/0/1

[SW1-GigabitEthernet1/0/1]port link-type access

[SW1-GigabitEthernet1/0/1]port access vlan 10

[SW1-GigabitEthernet1/0/1]quit

SW1 NTP关键配置点:

[SW1]clock protocol ntp

[SW1]ntp-service enable

[SW1]ntp-service unicast-peer 10.0.0.1 source Vlan-interface 10

[SW1]ntp-service refclock-master 2

[SW1]int vlan 10

[SW1-Vlan-interface10]ntp-service multicast-server

[SW1-Vlan-interface10]quit

分别查看SW2和SW1的NTP显示信息:

97416f131b8bf2ef3f3bdae347384398.png

6b13f293cae3f25f0b592f1db9dde171.png

1c9b07c08c9e7806a0647a69f8589d57.png

fc501885b5736b89bcea278c3d5aef0e.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值