Get the App
SLTechnology News&Howtos  ›  Mobile Phone  › 

Cisco switch configuration commands Lab report (Cisco switch configuration commands)

Shulou Source: shulou.com Published: 2022-05-31 11:10:15 10月04日 Update

Hello everyone, Lin Fei to answer the above questions, Cisco switch configuration commands experimental report, Cisco switch configuration commands many people do not know, now let's take a look!

Basic Cisco layer 3 switch configuration command

1. Commands supported by the switch:

The basic state of the switch:

Switch:ROM status, router is rommon

Hostname; user status

Hostname #; privileged mode

Hostname (configuration) #; global configuration mode

Hostname (configuration-if) #; interface status

Toggle password settings:

Switchenable enters privileged mode.

Switch # configure terminal; enter global configuration mode.

Switch (configuration) # hostname sets the hostname of the switch.

Switch (configuration) # enable password xxx set privileged encryption password

Switch (configuration) # enable password xxa set privileged non-secret password

Switch (configuration) # Line console 0; enter the console port.

Switch (configuration line) # line vty 0 4; enter the virtual terminal

Switch (configuration line) # login; allow login

Switch (configuration line) # password xx; set login password xx

Switch # exit; release instruction

Toggle VLAN settings:

Switch # vlan database; enter VLAN settings.

Switch (VLAN) # VLAN 2; build VLAN 2

Switch (VLAN) # does not have VLAN 2; delete vlan 2

Switch (config) # int F0ram 1; enter port 1

Switch (configuration-if) # switch port accesses VLAN 2; current port joins vlan 2

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

Switch (configuration-if) # vlan 1, 2 allowed for switch port trunking; set allowed vlan

Switch (configuration-if) # switch Port Relay Encapsulation dot1q Settings vlan Trunk

Switch (configuration) # vtp domain; set VTP domain name

Switch (configure) # vtp password; set vtp password

Switch (configuration) # vtp mode server; set vtp mode

Switch (configuration) # vtp mode client; set vtp mode

Set the IP address of the switch:

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

Switch (configuration-if) # ip address; set IP address

Switch (configuration) # ip default gateway; set default gateway

Switch # dir flash: view flash memory

Toggle display commands:

Switch # write to save configuration information

Switch # show vtp View vtp configuration Information

Switch # show run to view current configuration information

Switch # displays vlan to view vlan configuration information

Switch # display interface; view port information

Switch # show int F0amp 0; view the specified port information.

Add:

The routing ability of layer 3 switch is stronger, which is reflected in the interworking function of vlan and the routing ability of port. The following is an introduction:

Enable routing function: ip routing

The gateway entering the vlan configuration network segment is the same as the routing configuration interface

Interface vlan 1

Ip 192.168.1.1

The routing configuration is the same as the router configuration, except that the interface is changed to a VLAN VLAN number, and the interface routing function is enabled to enter the interface configuration: no switched port.

At the end of this article, I hope it will be helpful to you.

Tags: Configuration switches ports modes routes interfaces messages passwords commands hosts privileges status trunks functions passwords addresses gateways switching login Cisco Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Information vpn Shulou Tech Info MariaDB