Wednesday, April 27, 2011

Cisco vs Huawei essential command mapping

Cisco vs Huawei essential command mapping


CISCO

HUAWEI

ping

ping

traceroute

tracert

show

display

show interfaces

display interface

Show ip route

display routing-table

Show ip interface

Display ip interface

Show version

Display version

Show ip bgp

Display bgp routing-table

Show clock

Display clock

Show port

Display port-mapping

Show flash

dir flash: (on user view mode)

Show logging

Display logbuffer

Show snmp

Display snmp-agent statistics

Show frame-relay pvc

Display fr pvc-info

Show users

Display users

Show terminal length

screen-length disable

undo screen-length disable

enable

Super

disable

Super 0 (number is privilege level from 0 to 3, where 3 is default and equivalent to “enable” on Cisco)

Conf t

System-view

exit

quit

end

return

Show policy-map interface

Display qos policy interface

send

send (on user view mode)

write terminal (sh run)

display current-configuration

Sh startup

Display saved-configuration

[no equivalent: shows the files used for startup]

Display startup

Write erase

Reset saved-configuration

Write mem (or wr or copy run start)

save

clear counters

reset (on user view mode)

Reset counters interface

?

?

telnet

telnet

Enable secret (conf mode)

Super pass cipher (system mode)

Term mon

term debu

clock

clock

no

undo

debug / no debug

debugging / undo debugging

copy running-config

Save safely

terminal monitor

terminal monitor

terminal length

screen-length disable

undo screen-length disable

terminal no monitor

undo terminal monitor

clear counters

reset counters interface

clear interface

reset counters interface

clear crypto

ipsec sa

ike sa

clear access-list counters

reset acl counter all

reload

reboot

shutdown

shutdown

boot

boot bootrom

Aaa

hwtacacs scheme

terminal no monitor

undo terminal monitor

tacacs-server

hwtacacs scheme (in conf command)

snmp-server

tftp-server (in conf command)

router bgp

bgp

Router rip

rip

ip tacacs

hwtacacs nas-ip (this command doesn’t exist !!!)

mtu

Mtu (this command doesn’t exist !!!)

clear ip cef

reset ip fast-forwarding

clear ip route *

reset ip routing-table statistics protocol all

Clear ip bgp

Reset bgp all

Show tech

display diagnostic-information

Sh ip nat translation

Display nat session

Show Controller

display controller (but not relevant for non-modular chassis)

show dsl int atm 0

display dsl status interface Atm 2/0

sho atm pvc

Display atm pvc-info

debug pvc nego

Debug atm all (very dangerous – might crash router)

sho crypto isakmp sa

Display ike sa

sho crypto isakmp key

Display ike peer

sho crypto isakmp police

Display ike proposal

Cisco Interactive 3D Products how the cisco products look like b4 buying

Go to the CISCO site and type “Interactive 3D” and the model number of equipment you are interested in.

This is a fantastic tool that our engineers and support teams can use to see what the physical equipment looks like before they go to site. The model allows you to move, turn, tilt, zoom, measure, and do just about anything but physically touch the equipment. It will even demonstrate removal of cards and let you zoom in on

Cisco CAT4 or CAT6 router IOS update

Steps:

1) Power up Cat4506E as normal
2) (ip add management int vlan1) Use tftp method to copy the image into bootflash:
3) Issue command config-register 0x2102 (the switch default register is 0x2101, it means the switch will always auto-boot from 1st available file inside bootflash: which is normally the old image)
(define which image that you want to boot it from)
4) Issue command boot system flash bootflash:cat4500-entservices-mz.122-46.SG.bin
5) Save config and reload switch; make sure the switch is able to boot with the new image (show version)
6) Issue command config-register 0x2101
7) Delete old image from bootflash: (delete bootflash:)
8) Free up space for bootflash: (squeeze bootflash: )
9) Issue command no boot system flash bootflash:cat4500-entservices-mz.122-46.SG.bin
10) Save config and reload again

Upgrading/recovering Cisco router IOS using a laptop compact flash reader

if you want faster loading ios to CF card? and if you don't have tftp server, console cable, console port etc..

you can copy ios to CF card directly from laptop card reader.
then just put it back to router and reboot it.

check dir or show version after booted.

Cisco ASA bypass and play around

You can play new configuration without touching existing configurations.



#asdm image flash:/asdm-602.bin
#http server enable
pixfirewall(config)# http 192.168.10.0 255.255.255.0 inside


***if you want to play with already configured ASA. You don't need to touch inside configuration..

Boot ASA
Presss ESC ...at boot
rommon #1> confreg

Use ? for help.
rommon #0> confreg

Current Configuration Register: 0x00000001
Configuration Summary:
boot default image from Flash

Do you wish to change this configuration? y/n [n]: y <----
enable boot to ROMMON prompt? y/n [n]: n
enable TFTP netboot? y/n [n]: n
enable Flash boot? y/n [n]: n
select specific Flash image index? y/n [n]: n
disable system configuration? y/n [n]: y
go to ROMMON prompt if netboot fails? y/n [n]: n
enable passing NVRAM file specs in auto-boot mode? y/n [n]: n
disable display of BREAK or ESC key prompt during auto-boot? y/n [n]: n

Current Configuration Register: 0x00000040
Configuration Summary:
boot ROMMON
ignore system configuration

Update Config Register (0x40) in NVRAM...

rommon #1> en
Invalid or incorrect command. Use 'help' for help.
rommon #0>
rommon #0>
rommon #0> boot
Launching BootLoader...
Default configuration file contains 1 entry.

Searching / for images to boot.

Loading /asa802-k8.bin... Booting...


You can play whatever you want ...........................

if you play enoguht
ciscoasa(config)# config-register 0x1
ciscoasa#reboot

Don't save or don't write mem

Cisco Routers and Switches telnet and console login enable

username xtra privilege 15 secret cisco@admin
username customer privilege 15 secret cisco@customer

line con 0
login local
line vty 0 4
login local

Cisco Switches password recovery

Console cable connect to pc and open hyperterminal or SecureCRT

power up switch

press mode butten 1 mins


check the file at flash:
dir flash:
change config.txt ... something like that ... config.old
http_init
boot

Procedure with Password Recovery Enabled

If the password-recovery mechanism is enabled, this message appears:

The system has been interrupted prior to initializing the flash file system. The following
commands will initialize the flash file system, and finish loading the operating system
software:


flash_init

load_helper

boot

Step 1 Initialize the flash file system:

switch: flash_init


Step 2 If you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port.

Step 3 Load any helper files:

switch: load_helper


Step 4 Display the contents of flash memory:

switch: dir flash:


The switch file system appears:

Directory of flash:

13 drwx 192 Mar 01 1993 22:30:48 c3750-ipservices-mz-122-25.SEB

11 -rwx 5825 Mar 01 1993 22:31:59 config.text

18 -rwx 720 Mar 01 1993 02:21:30 vlan.dat


16128000 bytes total (10003456 bytes free)


Step 5 Rename the configuration file to config.text.old.

This file contains the password definition.

switch: rename flash:config.text flash:config.text.old


Step 6 Boot the system:

switch: boot


You are prompted to start the setup program. Enter N at the prompt:

Continue with the configuration dialog? [yes/no]: N


Step 7 At the switch prompt, enter privileged EXEC mode:

Switch> enable


Step 8 Rename the configuration file to its original name:

Switch# rename flash:config.text.old flash:config.text


Note Before continuing to Step 9, power on any connected stack members and wait until they have completely initialized. Failure to follow this step can result in a lost configuration depending on how your switch is set up.

Step 9 Copy the configuration file into memory:

Switch# copy flash:config.text system:running-config
Source filename [config.text]?
Destination filename [running-config]?


Press Return in response to the confirmation prompts.

The configuration file is now reloaded, and you can change the password.

Step 10 Enter global configuration mode:

Switch# configure terminal


Step 11 Change the password:

Switch (config)# enable secret password


The secret password can be from 1 to 25 alphanumeric characters, can start with a number, is case sensitive, and allows spaces but ignores leading spaces.

Step 12 Return to privileged EXEC mode:

Switch (config)# exit
Switch#

Step 13 Write the running configuration to the startup configuration file:

Switch# copy running-config startup-config


The new password is now in the startup configuration.

Note This procedure is likely to leave your switch virtual interface in a shutdown state. You can see which interface is in this state by entering the show running-config privileged EXEC command. To re-enable the interface, enter the interface vlan vlan-id global configuration command, and specify the VLAN ID of the shutdown interface. With the switch in interface configuration mode, enter the no shutdown command.

Step 14 Reload the switch stack:

Switch# reload

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Router
CTRL+BREAK
CTRL+C
confreg 2142

after finished recovery put it back normal confreg

config 2102