Cisco router configuration commands

Source: Internet
Author: User

In fact, many brands of vro configuration commands are very similar. Therefore, this article provides a comprehensive analysis of commonly used Cisco vro configuration commands for Cisco vrouters, at the same time, I learned more.

The basic status of a vswitch with the Cisco router configuration command:

Switch:; ROM status
Hostname #; privileged Mode
Hostname (config) #; global configuration mode
Hostname (config-if) #; interface status
Enable; enter privileged Mode
Switch # config terminal; enter global configuration mode
Switch (config) # hostname; set the Host Name of the switch.
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
Xxswitch # exit; return command
 
Vswitch VLAN settings for the Cisco router configuration command:

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 the current port
Vlan 2 switch (config-if) # switchport mode trunk; set to trunk Line
Switch (config-if) # switchport trunk allowed vlan 1, 2; set to allow
Vlanswitch (config-if) # switchport trunk encap dot1q; Set vlan Relay
Switch (config) # vtp domain; set the vtp domain name to be sent
Switch (config) # vtp password; set the vtp password
Switch (config) # vtp mode server; Set vtp mode
Switch (config) # vtp mode client; Set vtp mode
 
The vswitch setting IP address of the Cisco router configuration command:

Switch (config) # interface vlan 1; enter
Vlan 1 switch (config-if) # ip address; set the ip address
Switch (config) # ip default-gateway; set the default gateway
Switch # dir flash:; view flash
 
Vswitch display command for Cisco router configuration 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
Router # copy running-config startup-config; Save the Configuration
Router # copy running-config tftp; Save the configuration
Tftprouter # copy startup-config tftp; the boot configuration is saved
Tftprouter # copy tftp flash:; upload files
Flashrouter # copy tftp startup-config; download the ROM status of the configuration file:
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:; transfers 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 route configuration for Cisco router configuration commands:

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 Route configuration for Cisco router configuration commands:

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; used for 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.