! You can only do this once dynagen is running
ifconfig tap0 10.0.0.254 netmask 255.255.255.0 up
!
ntp server 10.0.0.254
!

Router#show ntp associations 

      address         ref clock     st  when  poll reach  delay  offset    disp
 ~10.0.0.3         17.82.253.7       3    70  1024  377     7.9  -28799    11.1
 * master (synced), # master (unsynced), + selected, - candidate, ~ configured
Router#show ntp associations 
!
! Turn on Remote Syslog
cd /System/Library/LaunchDaemons
sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener dict" com.apple.syslogd.plist
sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener:SockServiceName string syslog" com.apple.syslogd.plist
sudo /usr/libexec/PlistBuddy -c "add :Sockets:NetworkListener:SockType string dgram" com.apple.syslogd.plist
sudo launchctl unload com.apple.syslogd.plist
sudo launchctl load com.apple.syslogd.plist
!
!
logging 10.0.0.254
logging trap 6
! demo commands
!
! Follow on the mac
! tail -f /var/log/system.log | grep "10.0.0.1"
!
en
conf t
int en1/0
no shut
shut
!
!
!
aaa new-model
! all level 15 (privileged commands). If server dies, allow everything
tacacs-server host 10.0.0.254 port 4949
tacacs-server key apricot
aaa authentication login default group tacacs+ local
aaa authorization commands 15 default group tacacs+ local
aaa authorization commands 1 default group tacacs+ local
!


! Start up the Tacacs server
cd /Users/admin/workshops/dynamips/APRICOT2013-SEC
 /usr/local/sbin/tac_plus -1 -f -d 1 tac_plus_config.cfg
tail -f /Users/admin/workshops/dynamips/APRICOT2013-SEC/accounting.log
!



! Disable all the stuff
aaa authentication login default local
aaa authentication enable default enable
no aaa authorization commands 1 default group tacacs+ local 
no aaa authorization commands 15 default group tacacs+ local 
no tacacs-server host 10.0.0.254 port 4949
no tacacs-server key apricot

no logging 10.0.0.254
no logging trap 6
no ntp peer 10.0.0.3

