H3C S3100 Switch configuration VLAN

Source: Internet
Author: User

H3C S3100 Switch configuration VLAN

  1. I. Basic settings
  2. 1. the console line is successfully connected.

  3. 2. Enter System Mode
  4. <H3C> system-view // The prompt is changed from <H3C> to [H3C]

  5. 3. Change the device name
  6. [H3C] sysname TEST

  7. 4. view all configuration information
  8. [H3C] display current-configuration // display this is to view the device information in the current path

  9. 5. Create and enter VLAN 10
  10. [H3C] vlan 10

  11. 6. Route Ports 1-4 to VLAN 10
  12. [TEST-vlan10] port e1/0/1 to e1/0/4 // The interface naming rules are known when you view configuration information, which can be abbreviated.
  13. // Or perform separate operations on each port
  14. [TEST] int e1/0/7
  15. [TEST-Ethernet1/0/7] port access vlan 10
  16. // Delete a port from the VLAN
  17. [TEST] vlan 10
  18. [TEST-vlan10] undo port e1/0/7

  19. 7. Create and enter vlan 20
  20. [TEST-vlan20] vlan 20

  21. 8. add Port 5-7 to VLAN 20
  22. [TEST-vlan20] port e1/0/5 to e1/0/7
  23. [TEST-vlan20] quit

  24. 9. Enter the 8th ports
  25. [TEST] interface e1/0/8

  26. 10. Set the port to trunk mode.
  27. [TEST-Ethernet1/0/8] port link-type trunk // vlan port is in access mode by default

  28. 11. set to allow tags of vlan 10 and 20 to pass through this port.
  29. [TEST-Ethernet1/0/8] port trunk permit vlan 1 10 20 // Replace the following number with all to allow all vlan tags to pass through this port

  30. 12. Allow 1st port poe Power Supply
  31. [TEST] interface e1/0/1
  32. [TEST-Ethernet1/0/1] poe enable

  33. 2. configure remote management
  34. 1. Configuration Management address
  35. [TEST] interface Vlan-interface 1
  36. [TEST-Vlan-interface1] ip address 10.0.0.1 255.255.255.0
  37. // Here, the default vlan 1 configuration is used to manage the IP address, and then the IP address of the same network segment can be configured on the interface connecting the upper-layer device to this interface to manage the switch.

  38. 2. Create a Remote Account
  39. [TEST] local-user zooyo
  40. [TEST-luser-zooyo] password simple 123456 // you can change the parameter to cipher in encryption mode.
  41. [TEST-luser-zooyo] service-type telnet // sets the connection protocol
  42. [TEST-luser-zooyo] level 3 // upgrade to the maximum value.

  43. 3. Configure telnet
  44. [TEST] user-interface vty 0 4
  45. [TEST-ui-vty0-4] authentication-mode scheme

  46. 4. Save the Configuration
  47. Save // you will be prompted to configure the file name and so on. Press Y to press Enter.

  48. Other commands:
  49. Undo // cancel the effective rule
  50. Undo vlan 10 // Delete vlan 10
  51. Undo info-center enable // disable log information
  52. Display mac-address // display the MAC address of the device received by each port
  53. Display saved-configuration // display the configuration file in flash, that is, the configuration file used for the next power-on.
  54. Reset saved-configuration // remove the old configuration file
  55. Super password // modify the privileged user password
  56. Ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 // default route
  57. Ip route-static 192.168.2.0 255.255.255.0 192.168.12.2 // static route







Refer:
Http://www.cnblogs.com/jhtchina/articles/2169775.html
Http://wenku.baidu.com/link? Url = Response



Related Article

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.