H3C S3100 Switch configuration VLAN
- I. Basic settings
- 1. the console line is successfully connected.
- 2. Enter System Mode
- <H3C> system-view // The prompt is changed from <H3C> to [H3C]
- 3. Change the device name
- [H3C] sysname TEST
- 4. view all configuration information
- [H3C] display current-configuration // display this is to view the device information in the current path
- 5. Create and enter VLAN 10
- [H3C] vlan 10
- 6. Route Ports 1-4 to VLAN 10
- [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.
- // Or perform separate operations on each port
- [TEST] int e1/0/7
- [TEST-Ethernet1/0/7] port access vlan 10
- // Delete a port from the VLAN
- [TEST] vlan 10
- [TEST-vlan10] undo port e1/0/7
- 7. Create and enter vlan 20
- [TEST-vlan20] vlan 20
- 8. add Port 5-7 to VLAN 20
- [TEST-vlan20] port e1/0/5 to e1/0/7
- [TEST-vlan20] quit
- 9. Enter the 8th ports
- [TEST] interface e1/0/8
- 10. Set the port to trunk mode.
- [TEST-Ethernet1/0/8] port link-type trunk // vlan port is in access mode by default
- 11. set to allow tags of vlan 10 and 20 to pass through this port.
- [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
- 12. Allow 1st port poe Power Supply
- [TEST] interface e1/0/1
- [TEST-Ethernet1/0/1] poe enable
- 2. configure remote management
- 1. Configuration Management address
- [TEST] interface Vlan-interface 1
- [TEST-Vlan-interface1] ip address 10.0.0.1 255.255.255.0
- // 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.
- 2. Create a Remote Account
- [TEST] local-user zooyo
- [TEST-luser-zooyo] password simple 123456 // you can change the parameter to cipher in encryption mode.
- [TEST-luser-zooyo] service-type telnet // sets the connection protocol
- [TEST-luser-zooyo] level 3 // upgrade to the maximum value.
- 3. Configure telnet
- [TEST] user-interface vty 0 4
- [TEST-ui-vty0-4] authentication-mode scheme
- 4. Save the Configuration
- Save // you will be prompted to configure the file name and so on. Press Y to press Enter.
- Other commands:
- Undo // cancel the effective rule
- Undo vlan 10 // Delete vlan 10
- Undo info-center enable // disable log information
- Display mac-address // display the MAC address of the device received by each port
- Display saved-configuration // display the configuration file in flash, that is, the configuration file used for the next power-on.
- Reset saved-configuration // remove the old configuration file
- Super password // modify the privileged user password
- Ip route-static 0.0.0.0 0.0.0.0 192.168.0.1 // default route
- 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