Cisco router and switch password set (1)

Source: Internet
Author: User

Vswitch password settings:

Switch> enable; enter privileged Mode

Switch # config terminal; enter global configuration mode

Switch (config) # hostname; set the vswitch Host Name

Switch (config) # enable secret xxx; set the privileged encryption password to xxx

Switch (config) # enable password xxx; set the privileged non-password to xxx

Switch (config) # line console 0; enter the control port (Rs232) for initialization

Switch (config-line) # line vty 0 4; enter the virtual terminal virtual tty

Switch (config-line) # login; Allow Logon

Switch (config-line) password xx; set the logon password xx

Switch # exit; return command

Switch VLAN settings:

Switch # vlan database; go to VLAN settings

Switch (vlan) # vlan 2; Create VLAN 2

Switch (vlan) # no vlan 2; Delete VLAN 2

Switch (config) # int f0/1; enter port 1

Switch (config-if) # switchport access vlan 2; the current port 1 is added to VLAN 2

Switch (config-if) # switchport mode trunk; set to trunk Line

Switch (config-if) # switchport trunk allowed vlan 1 and 2; set the allowed VLAN

Switch (config-if) # switchport trunk encap dot1q; Set VLAN Relay

Switch (config) # vtp domain; Set VTP domain Name

Switch (config) # vtp password

Switch (config) # vtp mode server

Switch (config) # vtp mode client

Vswitch IP Address:

Switch (config) # interface vlan 1; enter VLAN 1

Switch (config-if) # ip address; add a remote logon IP address

Switch (config) # ip default-gateway; add default gateway

Switch # dir flash; view memory

Switch display command:

Switch # write; write and save

Switch # show vtp

Switch # show run; view current configuration information

Switch # show vlan; view VLAN

Switch # show interface; view all port information

Switch # show int f0/0; display port 0 Information

Vro display command:

Router # show run; display interface

Router # show interface; display interface

Router # show ip route; displays routes

Touter # show cdp nei; view neighbors

Router # reload; restart

Set password:

Router> enable; enter privileged Mode

Router # config terminal; enter global configuration mode

Router (config) # hostname; set the vswitch Host Name

Router (config) # enable secret xxx; set the privileged encryption password to xxx

Router (config) # enable password xxx; set the privileged non-password to xxx

Router (config) # line console 0; enter the console (Rs232) for initialization

Router (config-line) # line vty 0 4; enter the virtual terminal virtual tty

Router (config-line) # login; Logon Allowed

Router (config-line) password xx; set the logon password xx

Router (config) # (Ctrl + z); returns the privileged Mode

Switch # exit; return command

Configure the IP Address:

Router (config) # int s0/0; Serial serail Interface

Router (config-if) # no shutdown; Start Interface

Router (config-if) # clock rate 6400; set the clock

Router (config-if) # ip address 10.1.1.1 255.255.0.0; set the ip address and subnet mask

Router (config-if) # ip add 10.1.1.2 route 0.0 second

Router (config-if) # int f0/0.1;

Router (config-subif.1) # ip address

Router (config-subif.1) # encapsulation dot1q

Router (config) # config-register 0x2142; skip the configuration file

Router (config) # config-register 0x2102; Use the configuration file normally

Router # reload; reboot

Copy operation:

Router # copy running-config starup-config; Save the Configuration

Router # copy running-config tftp; Upload

Router # copy startup-config tftp

Router # copy tftp flash:; upgrade IOS in privileged Mode

Router # copy tftp startup-config; download the configuration file to nvram

ROM status:

Ctrl + Break; enters ROM monitoring status

Rommon> confreg 0x2142; Skip configuration, 26 36 45xx

Rommon> confreg 0x2102; Use the configuration to restore the working status

Rommon> reset; reboot, equivalent to reboot

Rommon> copy xmodem: flash; upgrade IOS from console

IOS:

Rommon> IP_ADDRESS = 10.65.1.2

Rommon> IP_SUNNET_MASK = 255.255.255.0.0

Rommon> TFTP_SERVER = 10.65.1.1

Rommon> TFTP_FILE = c2600.bin

Rommon> tftpdnld

Rommon> dir flash:

Rommon> boot


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.