Common Switch configuration commands for network planners: Catalyst 3548

Source: Internet
Author: User

1. Enter the global configuration mode.

Select Switch-3548> enable
Password :********
Change-3548 # config t
Change-3548 (config )#

2. Enable the HTTP Server of the vswitch

Switch-3548 (config) # ip http server

3. Configure the Host Name

Switch-3548 (config) # hostname Switch-PHY-3548

4. Configure the superuser password

Switch-GYX-3548 (config) # enable secret 5 zzz
Switch-GYX-3548 (config) # enable password zzz.
Switch-GYX-3548 (config )#
Switch-GYX-3548 (config) # enable password 7 zzz
Switch-GYX-3548 (config )#

5. Configure the remote logon Password

Switch-GYX-3548 (config) # line vty 0 4
Switch-GYX-3548 (config-line) # password 7 zzz
Switch-GYX-3548 (config-line) # password 0 zzz
Switch-GYX-3548 (config-line )#

6. Configure the system time

Switch-GYX-3548 # clock set 23:00:00 29 March 2009

7. Configure the device management address (IP address and default route)

Switch-GYX-3548 (config) # interface VLAN1
Switch-GYX-3548 (config-if) # ip address 203.105.1.62 255.255.255.0
Switch-GYX-3548 (config) # ip default-gateway 203.105.1.1

8. Enter the port configuration mode.

Switch-GYX-3548 (config) # interface f0/24

9. Configure the port description

Switch-GYX-3548 (config-if) # description To-lib

10. Disable and enable vswitch ports

Switch-GYX-3548 (config-if) # (no) shutdown

11. Configure the communication mode of the switch port

Switch-GYX-3548 (config-if) # duplex auto/full/half

12. Configure the transmission rate of the switch port

Switch-GYX-3548 (config-if) # speed 10/100/auto

13. configure a VTP Domain Name

Switch-GYX-3548 (config) # vtp domain pku

14. Configure The VTP Working Mode

Switch-GYX-3548 (config) # vtp mode server/client/transparent

15. Enter the VLAN configuration mode

Switch-GYX-3548 # vlan data

16. Create a VLAN

Switch-GYX-3548 (vlan) # vlan 1000 name vlan1000

17. delete a VLAN

Switch-GYX-3548 (vlan) # no vlan 1000

18. modify a VLAN

Switch-GYX-3548 (vlan) # vlan 1000 name v1000

19. Assign VLAN to the port

Switch-GYX-3548 (config-if) # switchport access vlan 248

20. Configure VLAN Trunk Mode

Switch-GYX-3548 (config-if) # switchport mode trunk

21. encapsulation VLAN Protocol

Switch-GYX-3548 (config-if) # switchport trunk encapsulation dot1 q/isl/negotiate P

22. Set VLAN for relay

Switch-GYX-3548 (config-if) # switchport trunk allowed vlan 10, 14/10-14/listen t 100-1000

23. enable or disable STP

Switch-GYX-3548 (config) # (no) spanning-tree vlan 3

24. Configure the root bridge and back up the root bridge

Switch-GYX-3548 (config) # spanning-tree vlan 3 root primary/secondary

25. Configure the Spanning Tree priority

Switch-GYX-3548 (config) # spanning-tree vlan 3 priority 8192

26. Configure the optional BackboneFast Spanning Tree Function

Switch-GYX-3548 (config) # spanning-tree backbonefast

27. Configure the optional UplinkFast Spanning Tree Function

Switch-GYX-3548 (config) # spanning-tree uplinkfast max-update-rate 32000
Switch-GYX-3548 (config) # spanning-tree uplinkfast

28. Configure the optional function of the PortFast Spanning Tree

Switch-GYX-3548 (config) # spanning-tree portfast default

29. Configure the optional BPDU Filter Spanning Tree Function

Switch-GYX-3548 (config) # spanning-tree portfast bpdufilter default

(Source: http://blog.yourtion.com /? P = 2599)

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.