How to configure ntp server on a Cisco router

First of all set the Router’s clock as accurate as you can , ntp servers don’t like when there is big time difference

!!!!Notice we are not in global Config
2821-cisco#clock set 19:00:00 1  april 2011

!!This will config the DNS server to allow lookup by name

2821-cisco(config)#ip name-server 8.8.8.8

 

2821-cisco(config)#clock timezone GMT+1 +1
2821-cisco(config)#clock summer-time ETE recurring last Sun Mar 2:00 last Sun Oct 3:00 60
2821-cisco(config)#ntp server fr.pool.ntp.org source GigabitEthernet0/1
!! the following command allow the router to be a source of ntp (ntp server )
2821-cisco(config)#ntp master

Advertisements
This entry was posted in LAB, Router and tagged , . Bookmark the permalink.

One Response to How to configure ntp server on a Cisco router

  1. Julo says:

    thanks houssam 🙂

    Julo.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s