beautypg.com

Specify the host whose ntp server we talk to, Set key id to use for authenticated requests – Alcatel Carrier Internetworking Solutions Omni Switch/Router User Manual

Page 312

background image

NTP Administration Menu

Page 12-34

Specify the Host Whose NTP Server We Talk To

The

ntphost

command specifies the name of the

NTP

server to which server queries are sent.

This can be a domain name or an

IP

address. The default is localhost (the local server).

To change the

NTP

server for the switch, enter the

ntphost

command as shown:

ntphost

where

is the either the domain name or

IP

address of the

NTP

server. For example,

to configure the switch to use an

NTP

server with an

IP

address of 1.1.1.4, enter:

ntphost 1.1.1.4

To view the current

NTP

server used by the switch, enter the

ntphost

command at the prompt

with no address. A message similar to the following is shown:

current host is 1.1.1.4

Specify a Password to Use for Authenticated Requests

The

ntppasswd

command allows you to specify a password that must be entered when

making configuration requests. The password must correspond to the key configured for use
by the

NTP

server.

To specify a password:

1. Enter the

ntppasswd

command at the system prompt. A prompt displays asking for the

Key

ID

number for the server, as shown:

Keyid:

Enter the key ID number for the server (as specified in the key file) and press

.

2. The following prompt appears requesting a password, as shown:

Password:

Enter the new password. This password is now required before making a configuration
request of the server.

Set Key ID to Use for Authenticated Requests

The

ntpkeyid

command allows you to specify a key number to be used to authenticate config-

uration requests. This must correspond to the key number the server has been configured to
use in the key file.

To set a new key

ID

, enter the

ntpkeyid

command as shown:

ntpkeyid

where

is the new key

ID

number. For example, to set the key

ID

to 2, you would

enter the following:

ntpkeyid 2

To view the currently configured key

ID

, enter the

ntpkeyid

command at the prompt and press

. A message similar to the following is shown:

keyid is 2