Cisco router switch configuration commands (1)

Source: Internet
Author: User

1. commands supported by the vswitch:
Vswitch basic status:

Switch:; ROM status, vrommon>
Hostname>; User Mode
Hostname #; privileged Mode
Hostname (config) #; global configuration mode
Hostname (config-if) #; interface status
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
Switch (config) # enable password xxa; set the privileged non-password
Switch (config) # line console 0; enter the console Port
Switch (config-line) # line vty 0 4; enter the virtual terminal
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; Add vlan 2 to the current port
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 ; Set the vtp Password
Switch (config) # vtp mode server; Set vtp mode
Switch (config) # vtp mode client; Set vtp mode

Vswitch IP Address:

Switch (config) # interface vlan 1; enter vlan 1
Switch (config-if) # ip address ; Set IP Address
Switch (config) # ip default-gateway ; Set the Default Gateway
Switch # dir flash:; view flash

Switch display command:

Switch # write; save configuration information
Switch # show vtp; view vtp configuration information
Switch # show run; view current configuration information
Switch # show vlan; view vlan configuration information
Switch # show interface; view port information
Switch # show int f0/0; view the specified port information

2. commands supported by routers:
Vro display command:

Router # show run; displays configuration information
Router # show interface; display interface information
Router # show ip route; displays route information
Router # show cdp nei; displays neighbor Information
Router # reload; restart

Vro password settings:

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
Router (config) # enable password xxb; set a privileged non-password
Router (config) # line console 0; enter the console Port
Router (config-line) # line vty 0 4; enter the virtual terminal
Router (config-line) # login; password verification required
Router (config-line) # password xx; set the logon password xx
Router (config) # (Ctrl + z); returns the privileged Mode
Router # exit; return command

Vro Configuration:

Router (config) # int s0/0; enter the Serail Interface
Router (config-if) # no shutdown; activate the current interface
Router (config-if) # clock rate 64000; set the synchronization clock
Router (config-if) # ip address ; Set IP Address
Router (config-if) # ip address Second; set the second IP Address
Router (config-if) # int f0/0.1;
Router (config-subif.1) # ip address ; Set the subinterface IP Address
Router (config-subif.1) # encapsulation dot1q ; Bind vlan relay Protocol
Router (config) # config-register 0x2142; skip the configuration file
Router (config) # config-register 0x2102; Use the configuration file normally
Router # reload; reboot

Vro file operations:

Router # copy running-config startup-config; Save the Configuration
Router # copy running-config tftp; Save the configuration to tftp
Router # copy startup-config tftp; the boot configuration is saved to tftp
Router # copy tftp flash:; upload files to flash
Router # copy tftp startup-config; download the configuration file

ROM status:
Ctrl + Break; enters ROM monitoring status
Rommon> confreg 0x2142; Skip configuration file
Rommon> confreg 0x2102; restore the configuration file
Rommon> reset; reboot
Rommon> copy xmodem: Flash: ; Transfer files from the console

Rommon> IP_ADDRESS = 10.65.1.2; set the router IP Address
Rommon> IP_SUBNET_MASK = 255.255.0.0; set the router mask
Rommon> TFTP_SERVER = 10.65.1.1; specifies the IP address of the TFTP server.
Rommon> TFTP_FILE = c2600.bin; specifies the downloaded file
Rommon> tftpdnld; download from tftp
Rommon> dir flash:; view flash Content
Rommon> boot; boot IOS

Static Routing:

Ip route
      
       
       
        
; Command Format
        
Router (config) # ip route 2.0.0.0 255.0.0.0 1.1.1.2; Static Routing example
Router (config) # ip route 0.0.0.0 0.0.0.0 1.1.1.2; default route example

Dynamic Routing:

Router (config) # ip routing; Start route forwarding
Router (config) # router rip; start the RIP routing protocol.
Router (config-router) # network ; Set publish route
Router (config-router) # negihbor Point-to-Point frame relay.


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.