Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Cisco useful feature and commands

Shulou Source: shulou.com Published: 2022-06-03 03:01:55 10月27日 Update

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 t ftp://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 0amp 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 0amp 5

Router (config-if) # ip accounting output-packets

Router (config-if) # ip accounting access-violations

-

The contents of Copy flash are added to 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 t ftp://192.168.3.250/c1200-k9w7-tar.123-8.JA2.tar flash:

Tags: Content Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Microsoft NVidia vpn Redmi