Vro basic commands:
Router> enable: Enter privileged Mode
Router # disable returns from privileged mode to user mode
Router # configure terminal enters global configuration mode
Router (config) # interface ethernet 1 enters the ethernet port number 1 of the Router
Exit: returns the upper-layer mode.
The end is directly returned to the privileged mode.
========================================================== ========================
Note:
1. For cisco catalyst (switch), if no "user configuration" file is found during initialization, the Default Settings file is automatically loaded for switch initialization, to ensure that the switch works normally.
2. When a CISCO Router is initialized, if no "user configuration" file is found, the system automatically enters the "Initialization Configuration Mode" (system configuration dialog mode, SETUP mode, step by step config mode), cannot work!
========================================================== ========================
1. console port (Management CONSOLE interface): exclusive distance restriction. This is generally used at the beginning of configuration.
2. AUX port (Auxiliary Management Interface): it can be mounted to MODEM for remote management and exclusive mode.
3. Telnet: remote management of multiple users (determined by the performance and number of VTY lines) is not secure. Post-maintenance and remote management and login.
========================================================== ========================
Note:
The vswitch and vro configuration commands take effect immediately after you press Enter. Pay special attention to the modification of commands on running machines.
========================================================== ========================
Router (config) # hostname?
WORD This system's network name
Modify the local ID of the current host in configuration mode, for example:
------------------
Router (config) # hostname r11
R11 (config )#
------------------
R11 (config-if) # ip address?
A. B .C.D IP address
Set an IP address for the current port. Enter the port to be configured before use, for example:
------------------
R11 (config) # interface ethernet 1
R11 (config-if) # ip address 172.16.1.1 255.255.255.0
------------------
R11> show version
R11 # show version: IOS version, device working time, and related interface list
R11 # show running-config
R11 # show interfaces ethernet 1 view the ethernet interface status, working status, and so on...
========================================================== ========================
R11 # reload the Router (restart)
R11 # manual setup in setup Configuration Mode
R11 # show history view history commands (recently used commands)
R11 # terminal history size <0-256> set the command buffer size. Value 0 indicates that the buffer is not cached.
R11 # copy running-config startup-config Save the current configuration
Note:
Nvram: non-volatile memory, power-off information will not be lost <-- User Configuration <-- save startup-config
Ram: random memory, all power-off information is lost <-- current active configuration <-- stores running-config
Startup-config: it is automatically loaded every time the vro or vswitch is started (default)
========================================================== ========================
Commands for setting instructions and passwords:
R11 (config) # banner motd [char c] should end with a [char c] line at the same time, describe the description of machine Login
R11 (config-if) # description interface comment, which must be in port configuration mode
Configure the console port password:
------------------
R11 (config) # line console 0 enters consolo 0
R11 (config-line) # Set password eliuzd to "eliuzd"
R11 (config-line) # Use the password to set login
------------------
Configure the enable password:
------------------
R11 (config) # enable password cisco sets the enable password in plaintext
R11 (config) # enable secret eliuzd set the enable password for the dark text (prior to plaintext)
R11 (config) # service password-encryption all plaintext passwords in the encryption system (weak function)
------------------
Configure the Telnet password:
------------------
R11 (config) # line vty 0
R11 (config-line) # password cisco
R11 (config-line) # login
------------------
========================================================== ========================
Configure the virtual loopback interface: (the loopback interface is in the UP status by default)
(Config) # virtual Port
------------------
R11 (config) # interface loopback 0 create a loopback interface loopback 0
R11 (config-if) # ip address 192.168.1.1 255.255.255.0 configure its ip address
No * reverse configuration operation (delete configuration)
------------------
========================================================== ========================
Router DCE/DTE only exists in the Wide Area Network
R11 # show controllers serial 0 is used to view the attributes of DCE and DTE, and serial 0 is the WAN port of the router.
The clock frequency must be configured for the DCE Router.
R11 (config-if) # clock rate? Configure the clock frequency of the DCE interface (the system specifies the frequency)
Generally, you do not need to configure the DCE device because the DCE device is located at the carrier.
========================================================== ========================
R11 # show interfaces serial 1
View the port status. The first line indicates the port status.
Serial1 is administratively down, Line protocol is down
No shutdown command is used to activate the port
Serial1 is down, Line protocol is down
1. the other party does not have no shutdown activation Port
2. The line is damaged and there is no connection cable to the interface.
Serial1 is up, line protocol is down
1. the other party has not configured the same L2 protocol. The Serial interface default encapsulation: HDLC
2. The clock frequency may not be configured.
3. The layer-3 address may not be correctly configured (possibly)
Serial1 is up, line protocol is up
Interface works properly
========================================================== ========================
Several commands for viewing CDP information:
R11 # show cdp neighbors view CDP neighbors (excluding IP addresses)
R11 # show cdp neighbors detail View CDP neighbors (including layer-3 IP addresses)
R11 # show cdp entry * view the old command of CDP's neighbor (including three-layer IP addresses)
R1 (config) # no cdp run disables CDP protocol in global configuration mode (affects all interfaces)
R1 (config-if) # no cdp enable closes the CDP protocol under the interface (only affects the specified Interface)
R11 # clear cdp table clear CDP neighbor table
R11 # show cdp interface serial 1 view CDP information of the interface
Note two tips:
Sending CDP packets every 60 seconds (cdp packets are sent every 60 seconds)
HoldTime 180 seconds (each cdp data packet remains 180 seconds)
========================================================== ========================
R11 (config) # ip host <name> <ip> set static host name ing
R11 # show sessions
========================================================== ========================
For Telnet *. *, set the line vty password for the telnet device. To enter the privileged mode, configure the enable password.
Example:
------------------
Router # telnet 192.168.1.1
------------------
Router # show users
Router # show sessions
Router # clear line * force the "telnet to local" session to be interrupted
Router # disconnect * force the "telnet out" session to be interrupted
========================================================== ========================
The following command is used to switch to the vro during the experiment. You can skip this command.
> Show hosts: displays the current host name Configuration
> Show sessions: displays the current outbound TELNET session
> Clear line XXX clear line
<Ctrl> + <z> return directly to privileged Mode
<Ctrl> + <shift> + <6> + x