![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 173](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487173.webp)
[SwitchA-Vlan20]
quit
[SwitchA]
interface gigabitethernet 1/0/0
[SwitchA-GigabitEthernet1/0/0]
port hybrid pvid vlan 20
[SwitchA-GigabitEthernet1/0/0]
port hybrid untagged vlan 20
[SwitchA-GigabitEthernet1/0/0]
quit
[SwitchA]
interface vlanif 20
[SwitchA-vlanif20]
ip address 1.0.1.11 24
[SwitchA-vlanif20]
quit
Step 3
Configure the NTP broadcast server and enable NTP authentication.
# Configure the clock of Switch C as the NTP master clock with the stratum being 3.
<SwitchC>
system-view
[SwitchC]
ntp-service refclock-master 3
# Enable NTP authentication.
[SwitchC]
ntp-service authentication enable
[SwitchC]
ntp-service authentication-keyid 16 authentication-mode md5 Hello
[SwitchC]
ntp-service reliable authentication-keyid 16
# Configure Switch C as an NTP broadcast server. Broadcast packets are encrypted by using the
authentication key ID 16 and then sent through VLANIF10.
[SwitchC]
interface vlanif 10
[SwitchC-vlanif10]
ntp-service broadcast-server authentication-keyid 16
[SwitchC-vlanif10]
quit
Step 4
Configure Switch D, which resides on the same network segment with the server.
# Enable NTP authentication.
<SwitchD>
system-view
[SwitchD]
ntp-service authentication enable
[SwitchD]
ntp-service authentication-keyid 16 authentication-mode md5 Hello
[SwitchD]
ntp-service reliable authentication-keyid 16
# Configure Switch D as the NTP broadcast client and configure Switch D to listen to NTP
broadcast packets through VLANIF10.
[SwitchD]
interface vlanif 10
[SwitchD-vlanif10]
ntp-service broadcast-client
[SwitchD-vlanif10]
quit
After the configurations, the clock of Switch D is synchronized with the clock of Switch C.
Step 5
Configure Switch A, which resides on different network segment from the server.
# Enable NTP authentication.
[SwitchA]
ntp-service authentication enable
[SwitchA]
ntp-service authentication-keyid 16 authentication-mode md5 Hello
[SwitchA]
ntp-service reliable authentication-keyid 16
# Configure Switch A as the NTP broadcast client and configure Switch A to listen to NTP
broadcast packets through VLANIF20.
[SwitchA]
interface vlanif 20
[SwitchA-vlanif20]
ntp-service broadcast-client
[SwitchA-vlanif20]
quit
Step 6
Verify the configuration.
After the configurations, the clock on Switch D can be synchronized to the clock on Switch C,
but the clock on Switch A cannot be synchronized
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
3 NTP Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3-31