Cisco useful feature and commands

发布时间:2020-07-30 16:13:27 作者:zhangfang526
来源:网络 阅读:358

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.1 

configure HTTP server:
---------------------
ip http server
username cisco privilege 15 password cisco
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000

configure local logon without username and password/ with username and password:
-------------------------------
line con 0
 exec-timeout 0 0
 login local
line vty 0 4
 password cisco
 login
 transport input all

Crack username/password for Cisco router:
-------------------------
after router boot up, in 10s, press FN+Ctrl+B or Ctrl+Break
then, confreg 0x2142
reset
----------
en 
copy start-confi running
config-register 0x2102
no enable pass
no enable secret
exit 
wr

--------------

IPAccounting  archive router configuration

archive router

http://www.packetu.com/2013/05/07/how-to-automate-cisco-backup-using-configuration-archive/

 

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

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipapp/configuration/15-s/iap-15-s-book/iap-ipserv.html

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:

https://learningnetwork.cisco.com/thread/10762

 

Copy tftp to flash:

archive tar /xtract tftp://192.168.3.250/c1200-k9w7-tar.123-8.JA2.tar flash:


推荐阅读:
  1. Ansible运维Cisco设备
  2. Cisco ASA Firepower ASDM登录出错ER怎么办

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

cisco common command useful %d

上一篇:Mac下PHP7.3安装Swoole4.4扩展教程

下一篇:哪些企业适合选择云主机?

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》