beautypg.com

Iii. configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual

Page 480

background image

Operation Manual – NTP

H3C S3100-52P Ethernet Switch

Chapter 1 NTP Configuration

1-18

III. Configuration procedure

1) Configure

H3C3.

# Enter system view.

system-view

[H3C3]

# Enter Vlan-interface2 view.

[H3C3] interface Vlan-interface 2

[H3C3-Vlan-interface2]

# Set H3C3 to the broadcast server, which sends broadcast packets through
Vlan-interface2.

[H3C3-Vlan-interface2] ntp-service broadcast-server

2) Configure

S3100-52P-1.

# Enter system view.

system-view

[S3100-52P-1]

# Enter Vlan-interface2 view.

[S3100-52P-1] interface Vlan-interface 2

[S3100-52P-1-Vlan-interface2]

# Set S3100-52P-1 to a broadcast client.

[S3100-52P-1-Vlan-interface2] ntp-service broadcast-client

3) Configure

S3100-52P-2

# Enter system view.

system-view

[S3100-52P-2]

# Enter Vlan-interface2 view.

[S3100-52P-2] interface Vlan-interface 2

[S3100-52P-2-Vlan-interface2]

# Set S3100-52P-2 to a broadcast client.

[S3100-52P-2-Vlan-interface2] ntp-service broadcast-client

After the above configurations, S3100-52P-1 and S3100-52P-2 will listen to broadcast
packets through their own Vlan-interface2, and H3C3 will send broadcast packets
through Vlan-interface2. Because S3100-52P-2 and H3C3 do not share the same
network segment, S3100-52P-2 cannot receive broadcast packets from H3C3, while
S3100-52P-1 is synchronized to H3C3 after receiving broadcast packets from H3C3.
View the status of S3100-52P-1 after synchronization.

[S3100-52P-1] display ntp-service status

Clock status: synchronized