Current location - Quotes Website - Collection of slogans - Who can tell me what the commands are in switch privileged mode and global mode? active demand ...
Who can tell me what the commands are in switch privileged mode and global mode? active demand ...
Switch & gt user status

1: enter privileged mode to enable.

Switch & gt enables//enters privileged mode.

Switch #//is currently in privileged mode.

2: Enter the global configuration mode to configure the terminal.

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Switch(conf)# // Current global mode

3. The switch is named as the host name aptech2950 // Take aptech2950 as an example.

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Switch (conf)# hostname apt ch-2950// Red is the host name.

Aptech2950(conf)# // Current global mode

4. Configure the enabling password cisco Take cisco as an example.

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Aptech 2950 (conf) # enablepassword Cisco//The red part is the password.

5. Take cicso0 1 as an example, configure the enabling password Cisco Lab Password.

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Aptech 2950 (conf) # EnableSecret Cisco 01/The red part is the encryption password.

6: Set the IP address of the switch.

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Aptech 2950 (conf) # interface VLAN 1/input VLAN1.

Aptech 2950 (conf-if) # ipaddress192.168.1255.255.0//Configure the switch port IP and subnet mask.

Aptech2950(conf-if)#no shut // Open vlan 1.

Aptech 2950(conf-if)# exit

Aptech 2950 (conf) # ipdefault-gateway192.168.254//Set the gateway address.

7: Enter a port of the switch, taking port 7 as an example;

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Aptech 2950 (conf) # Interface Fasternet 0/7//Enter the seventh port.

aptech2950(conf-if)#

8: View command display

Switch & gt enables//enters privileged mode.

Switch # show version // to view system version information.

Show interface vlan 1/View the configuration information of the switch about VLAN1.

Show running-configure // View the current configuration information of the switch.

Show interface FastEthernet 0/1/View the specific configuration and statistics of the switch1interface.

Show mac address table//View mac address table.

Show MAC-address-tableage-time//View the automatic aging time of MAC address table.

9: Switch the factory default recovery command.

Switch & gt enables//enters privileged mode.

Switch # erase startup-configure// factory default recovery command

Switch # Overload//Restart.

10: duplex mode setting

Switch & gt enables//enters privileged mode.

Switch # Configure Terminal//Enter Global Mode.

Switch (conf) # interface FastEthernet 0/7//Take port 7 as an example.

Switch (conf) # Duplex Full/Half-duplex/Automatic//There are half-duplex: half-duplex, full-duplex: full-duplex and automatic: automatic.

1 1: CDP related commands

Switch & gt enable

Switch# displays cdp global configuration information of cdp devices.

Display the cdp interface FastEthernet 0/ 17 and view the CDP configuration information of port 17.

Display cdp traffic to view statistics about cdp packets.

Show cdp nerghbors lists the cisco devices connected to the device.

12: password recovery of csico 2950

Unplug the switch power cord.

Press the mode key of the switch by hand and plug in the power cord.

Execute the flash_ini command after switch: switch: flash_ini.

View files in flash memory: switch: directory flash memory:

Rename the "config.text" file to "config.old": switch: rename flash: config.textflash: config.old.

Perform boot:

Switch:boot switch enters the dialog box of whether to enter the configuration, and executes no:

Enter privileged mode to view files in flash: Show flash:

Rename the "config.old" file to "config.text": switch: rename flash: config.oldflash: config.text.

Copy "config.text" to "Run-Configure" of the system: copyflash: config.text System: Run-Configure.

Reset the configuration mode and save the password. The password was successfully restored.

13: telnet remote login settings for the switch:

The switch & gt (constituent verb) means "put in a state of ..."

Switch # Configuration Terminal

Switch (Configuration) # Hostname aptech-2950

Aptech 2950 (conf) # EnablePassword Cisco uses Cisco as the privileged mode password.

The Aptech 2950 (conf) # interface FastEthernet 0/ 1 uses the port 17 as the telnet remote login port.

Aptech2950(conf-if)#ip address192.168.1.1255.255.0.

Aptech 2950(conf-if)# does not close.

Aptech 2950 (conf-if) # Exit APtech 2950 (conf) line VTY 04 and set 0-4 users to log in remotely.

Aptech 2950(conf-line)# login

Aptech 2950 (conf-line) # PasswordEdge uses edge as the user password for remote login.

Host settings:

IP192.168.1.2 The IP of the host must be in the same network segment as the address of the switch port.

The netmask 255.255.255.0 gateway address192.168.1.1is the switch port address.

Run:

Telnet192.168.1.1enters the telnet remote login interface.

Password: edge

Aptech2950 & gt (a constituent verb) means "to put in a state of ..."

Password: Cisco

aptech#

14: Reload and save the switch configuration

Settings after configuring the switch:

Aptech 2950 (conf) # reloadsave (y/n) y: Save the setting information n: Do not save the setting information.

Router command

Router & gt user status

1: Enter privileged mode.

Enable Router & gt Enable

Router #

2: Enter the global configuration mode to configure the terminal.

Router & gt enables

Router # Configure Terminal

Router (conference) #

3. Name the host name of the switch as routera. Take routerA as an example.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conference) #

4. Configure the enabling password cisco Take cisco as an example.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA (conf)# enable password cisco

5.Cisco Lab takes cicsolab as an example to configure the enabling password.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA (conf)# Enable Secret ciscolab

6. Enter a port of the router interface FastEthernet 0/ 17, taking port 17 as an example.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA (conf)# interface faster net 0/ 17

routerA (conf-if)#

Enter the sub-port of the router.

Interface FastEthernet 0/17. 1 Take the1sub-port of port17 as an example.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA (conf)# interface Fastnet0/17.1

7: Set the port ip address information

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conf) # interface FastEthernet 0/ 17 Take port 17 as an example.

Routera (conf-if) # ipaddress192.168.1.1255.255.0 configure the switch port IP and subnet mask.

RouterA (conf-if)#no shut is that the configuration is running.

RouterA(conf-if)# exit

8: View command display

Router & gt enables

Router # show version views all version information in the system.

Display interface vlan 1 View the configuration information of switch ip protocol.

Show running-configure to view the current active configuration information of the switch.

Show interface FastEthernet 0/1 View the specific configuration and statistics of the switch1interface.

Display the mac address table to view the mac address table.

Show MAC-address-table aging-time to view the automatic aging time of MAC address table.

Show controllers serial+number View serial port type show ip router View router routing table.

9: CDP related commands

Router & gt enables

Router # show cdp View global configuration information of cdp view device.

Display the cdp interface FastEthernet 0/ 17 and view the CDP configuration information of port 17.

Display cdp traffic to view statistics about cdp packets.

Show cdp nerghbors lists the cisco devices connected to the device.

10:CSICO 2600 password recovery

Restart the router,

Press win+break key at startup to make the router enter rom monitor.

Enter a command at the prompt to modify the value of the configuration register remn 1 >. Meeting group 0x2 142,

Then restart the router remmon2 & gt reset.

Restart the router and enter setup mode.

Select No to return to the execution mode, and the original configuration of the router is still saved in the startup configuration.

In order to keep the router configuration unchanged after password recovery

Save the configuration in the startup configuration to running-config: router >; Enable router # to copy the startup configuration and run the configuration.

Then reset the enable password: router # configure terminal router (conf) # enable password Cisco.

And change the configuration register back to 0x 2 102: router (conf) # config-register 0x2102.

Save the current configuration to startup-config: router # copyrunning-configstartup-configrouter.

Restart the router: #reload

1 1: telnet remote login settings of the router:

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conf) # enablepassword Cisco uses Cisco as the privileged mode password.

Routera (conf) # interface FastEthernet 0/1Use port 17 as the telnet remote login port.

RouterA (conf-if)#ip address192.168.1.1255.255.0.

routerA (conf-if)#no shut

RouterA(conf-if)# exit

RouterA (conf)line vty 0 4 Set 0-4 users to telnet for remote login.

RouterA(conf-line)# login

Routera (conf-line) # passwordedge uses edge as the user password for remote login.

Host settings:

IP192.168.1.2 The IP of the host must be in the same network segment as the address of the switch port.

The netmask 255.255.255.0 gateway address192.168.1.1is the switch port address.

Run:

Telnet192.168.1.1enters the telnet remote login interface.

Password: edge

Routera & gt (a constituent verb) means "to put in a state of ..."

Password: Cisco

routera#

65438+

In the global configuration mode, you can use the "banner" command to configure the prompt information of the router, and all terminals connected to the router will receive it.

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conf) # Bannermott $ This is the router of aptech Company! Please don't change the configuration without permission! $

13: Configure interface identification description ...

Interface Identifies the interface used to distinguish routers.

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conf) # interface FastEthernet 0/ 1 Take interface 0/ 1 as an example.

RouterA(conf-if)# Description This is a fast Ethernet port used to connect the company intranet!

14: Configuration timeout

Timeout is used to set how long the console has not been configured, and automatically returns to the execution session time. The default value is 10 minute.

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA(conf)# line console 0

Routera (conf-if) # exec-timeout 0 The first "0" stands for minutes and the second "0" stands for seconds.

15: Configure serial port parameters.

Two routers need one as DTE and one as DCE to connect through serial port.

DCE equipment shall provide clock frequency and bandwidth for DTE equipment.

DCE configuration:

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router A

RouterA(conf)# interface serial 0/0

Routera (conf _ if) # clockrate 64000 provides a clock frequency of 64000.

RouterA(conf_if)#bandwidth 64 provides 64 bandwidth.

DTE configuration:

Router serial port configuration ip address

Router & gt (constituent verb) means "put in a state of ..."

Router # Configure Terminal

Router (Configuration) # Hostname Router B

RouterB(conf)# interface serial 0/0

RouterB(conf_if)#ip address192.168.1.1255.255.016:

16: Static routing configuration

Configure the hostname and interface parameters of router A..

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router A

Routera (conf) # interface FastEthernet 0/1 port of router A is the connection port of two routers.

RouterA(conf-if)#ip address192.168.2.1255.255.0.

RouterA(conf-if)# No shutdown.

RouterA(conf-if)# exit

Routera (conf) # interface FastEthernet 0/0 Port 0 of router A is the connection port with the host.

RouterA(conf-if)#ip address192.168.1.2 255.255.0

RouterA(conf-if)# No shutdown.

The ip address of host A is192.1.1.255.255.0192.1.2.

Configure the host name and interface parameters of router B.

Router & gt enables

Router # Configure Terminal

Router (Configuration) # Hostname Router B

Router b (conf) # interface FastEthernet 0/0 port 0 is the connection port of two routers.

Router B(conf-if)#ip address192.168.2.2 255.255.0

RouterB(conf-if)# does not turn off.

RouterB(conf-if)# exit

Router b (conf) # interface FastEthernet 0/ 1 port is the connection port with the host.

Router B(conf-if)#ip address192.168.3.1255.255.0.

The ip address of host B is192.168.3.255.0192.168.3.6438+0.

Configure the static routing table of router A..

RouterA(conf)#ip router192.168.3.0 255.255.0192.168.2.2.

Configure the static routing table of router B.

RouterA(conf)#ip router192.168.1.0 255.255.0192.1

Configure default routes on routerA and routerB.

RouterA(conf)#ip route 0.0.0.0.0192.168.2.2.

RouterA(conf)#ip classless

Router B(conf)#ip routes 0.0.0.0.0192.168.2.1

Router b (conference) #ip classless

Configure dynamic routing (RIP) on routerA and routerB.

RouterA(conf)# router rip

RouterA (conference) # network192.168.1.0

RouterA(conf)# network 192. 168.2.0

Router B(conf)# router rip

Router b (conference) # network 192. 168.2.0

Router b (conference) # network 192. 168.3.0