Difference between revisions of "H3C Switch"
From AlphaBook
(→Display) |
(→Display) |
||
Line 2: | Line 2: | ||
* display current-configuration | * display current-configuration | ||
* display current-configuration interface | * display current-configuration interface | ||
− | * | + | * display current-configuration interface Gigabitethernet 1/0/1 |
* display saved-configuration | * display saved-configuration | ||
* display version | * display version |
Revision as of 14:35, 10 December 2018
Display
- display current-configuration
- display current-configuration interface
- display current-configuration interface Gigabitethernet 1/0/1
- display saved-configuration
- display version
- diaply vlan
Interface
- interface Gigabitethernet 1/0/1
- shutdown
- undo shutdown
- speed 1000
- duplex full
- port access vlan 10
VLAN
- system-view
- vlan 10
- description Sales
- port Gigabitethernet 1/0/1
- interface vlan-interface 10
- ip address 192.168.10.1 255.255.255.0
- quit
Trunk
- system-view
- interface Gigabitethernet 1/0/48
- port link-type trunk
- port trunk permit vlan all
Etherchanel
- system-view
- interface bridge-aggregation 1
- port link-type trunk
- port trunk permit vlan all
- quit
- interface range ten-gigabitethernet 1/0/1 to 1/0/2
- port link-aggregation group 1
- quit
SSH Login
- system-view
- public-key local create rsa
- ssh server enable
- line vty 0 10
- authentication-mode scheme
- quit
- local-user admin class manage
- password simple 123.com
- service-type ssh
- authorization-attribute user-role network-admin
- quit
LLDP
- sytem-view
- lldp enable
General
- system-view
- sysname switch01
- undo info-center enable
- save
- restore default
- reboot