Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Mobile Phone >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Mobile Phone

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report