Friday, October 16, 2009

Configuring Routers as NTP servers and ASA as client

On the router:

Router(config)# ntp master 2
! Sets the router as an ntp server with stratum 2
Router(config)# ntp authenticate
Router(config)# ntp authentication key 3 md5 ntpkey
Router(config)# ntp trusted key 3
! Sets up ntp authentication defining a key with index 3 and then selecting it as trusted

On the ASA:

ASA(config)# ntp authentication-key 3 md5 ntpkey
ASA(config)# ntp authenticate
ASA(config)# ntp server 10.1.1.240 key 3

DHCP server on Pix/ASA

Configuring ASA/pix as DHCP server

ASA(config)# dhcpd address 10.1.1.1-10.1.1.10 Inside
! sets the pool and associates it with an interface
ASA(config)# dhcpd dns 10.1.1.100
ASA(config)# dhcpd wins 10.1.1.11
! self explanatory
ASA(config)# dhcpd option 66 ip 10.1.1.111
! defines the tftp server option on the dhcp server

Other interesting options for DHCP:

4 - Time server
67 - Bootfile name