H3C Switch Common command rollup

Source: Internet
Author: User
Tags switches

h3c Switch Common commands

1. View the port status under Linux

root@root:~# netstat-an|grep-e "6002|6003"

2.h3c Switch Displays current configuration

[H3c]display current-configuration

3.h3c switch displays ARP information

[H3c]dis ARP

4.h3c switch Displays MAC list information

[H3c]dis mac-address

5.H3C Switch Display port information

[H3c]display Interface

6. Enter System View

7. Turn on the Telnet function of the router

[H3c]telnet Server Enable

8. Set the number of users who are allowed to configure routers simultaneously

[H3c]configure-user Count 5

9. Add Local User (this is the user name to use when logging in to Telnet user)

[H3c]local-user telnet

10. Set the password to use when Telnet user logs on

[H3c-luser-telnet]password Simple H3C

11. Set the service type of the local user (Telnet here)

[H3c-luser-telnet]service-type telnet

12. Set service levels for local users

[H3c-luser-telnet]level 3

13. Exit Local User View

[H3c-luser-telnet]quit

14. Enter User View

[H3c]user-interface vty 0 4

15. Select "Scheme" authentication method

[H3c-ui-vty0-4]authentication-mode Scheme

16. Enter a port

[H3C] Interface serial 3/0

17. Set IP for this port

[H3c-serial3/0]ip address 200.1.1.1 255.255.255.0

18. Reset the Port

[H3c-serial3/0]undo shutdown

19. Add a static route

[H3c]ip route-static 192.168.1.0 255.255.255.0 192.168.0.1

20. Add a default route

[H3c]ip route-static 0.0.0.0 0.0.0.0 192.168.0.1

21. Save the configuration file

[H3c]save

22. View the status of a port

[H3c]display Interface Gigabitethernet 0/0

23. Create VLAN

[H3c]vlan 10

24. Add a port to the VLAN

[H3c-vlan100]port Ethernet 0/1

25. Create VLAN Virtual Port

[H3c]interface Vlan-interface 1

26. Configure IP Address

[H3c-vlan-interface100]ip address 192.168.1.4 255.255.255.0

27. Set the port type to trunk

[H3c]port Link-type Trunk

28. Set trunk port to allow all VLANs to pass (save saved required)

[H3c]port trunk Permit VLAN All

Note: Trunk can send and receive multiple VLAN packets for interconnection between switches and switches

29. Close the port

[H3c-gigabitethernet1/1/1]shutdown

30. Set Port notes

[H3c-ethernet1/0/15]description test data

6. Switch Port VLAN

Operation

Command

Description

Go to System view

System-view

Enter the network port

Interface Ethernet Interface_num

The network attention thousand trillion mouth, hundred trillion mouth and so on;

To add an access port to a specified VLAN

Port Access VLAN Vlan-id

The VLAN ID defined in Vlan-id:ieee 802.1q, with a value range of 2~4094

Remove the access port from the specified VLAN

Undo Port Access VLAN


You are welcome to pay attention to my blog. If you have questions, please add QQ Group: 135430763 study together.

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.