• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 691
  • Last Modified:

cisco router syntax ntp server

I have vpn cisco router with DCHP pool ccp-pool enabled
I have to add ntp server ip address and I am looking for exact syntax.
0
leop1212
Asked:
leop1212
  • 2
1 Solution
 
Thomas GrassiSystems AdministratorCommented:
Config  t

ntp server 141.165.5.137

wr mem
0
 
giltjrCommented:
Are you asking to to set the NTP server for the router?  If so trgrassijr55 answer is correct.

However, if you are trying to set the DHCP client NTP  server via DHCP you might try:

option 42 ip x.x.x.x

In your dhcp server setttings.
0
 
leop1212Author Commented:
yes i am trying to add option 42 to my dhcp scope on the router

and looking for exact sytnax.
config t
dchp ccp-pool?????
option 42 ip 141.165.5.137 ?
........?
0
 
giltjrCommented:
You can try:

config t
dhcp pool ccp-pool
option 42 ip 141.165.5.137

Based on: https://supportforums.cisco.com/thread/2146860

HOWEVER, please note that not all DHCP clients may accept option 42.  Example:  I don't think Windows clients accept getting a NTP server via DHCP.  The DHCP client in Windows only accepts a small subset of DHCP parameters that DHCP servers can offer.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now