configure DHCP server on Cisco Router:
---------------------------------------ip dhcp excluded-address 192.168.27.1 192.168.27.50! ip dhcp pool cisco network 192.168.27.0 255.255.255.0 dns-server 192.168.7.20 domain-name fagorarrasate.net default-router 192.168.27.1configure HTTP server:
---------------------ip http serverusername cisco privilege 15 password ciscoip http authentication localip http secure-serverip http timeout-policy idle 60 life 86400 requests 10000configure local logon without username and password/ with username and password:
-------------------------------line con 0 exec-timeout 0 0 login localline vty 0 4 password cisco login transport input allCrack username/password for Cisco router:
-------------------------after router boot up, in 10s, press FN+Ctrl+B or Ctrl+Breakthen, confreg 0x2142reset----------en copy start-confi runningconfig-register 0x2102no enable passno enable secretexit wr--------------
IPAccounting archive router configuration
archive router :
archive
path tftp://10.254.254.10/router/
write-memory
no file verify auto
int g2/0
ip accounting output-packets
exit
sh ip accounting
int g2/0
no ip accounting
exit
clear ip accounting
Router# configureterminal
Router(config)#interface ethernet 0/5
Router(config-if)#ip accounting mac-address input
Router(config-if)#ip accounting mac-address output
Router(config-if)#ip accounting precedence input
Router(config-if)#ip accounting precedence output
The followingexample shows how to enable IP accounting with the ability to identify IPtraffic that fails IP access lists and with the number of transit records thatwill be stored in the IP accounting database limited to 100:
Router# configureterminal
Router(config)# ipaccounting-transits 100
Router(config)#interface ethernet 0/5
Router(config-if)#ip accounting output-packets
Router(config-if)#ip accounting access-violations
---------------
Copy flash的内容到tftp中:
archive tar /create tftp:1.2.3.4/saved.tar flash:
Copy tftp to flash:
archive tar /xtract tftp://192.168.3.250/c1200-k9w7-tar.123-8.JA2.tar flash: