Difference between revisions of "H3C Switch"
From AlphaBook
Line 70: | Line 70: | ||
* ntp-service | * ntp-service | ||
* ntp-service unicast-server 192.168.1.10 | * ntp-service unicast-server 192.168.1.10 | ||
+ | |||
+ | == Port Security == | ||
+ | * port-security enable | ||
+ | * interface ten-gigabitethernet 1/0/1 | ||
+ | * port-security max-mac-count 10 | ||
+ | * port-security intrusion-mode disableport-temporarily | ||
+ | * show port-security interface ten-gigabitethernet 1/0/1 | ||
== LLDP == | == LLDP == |
Revision as of 13:50, 13 December 2018
Contents
Display
- display current-configuration
- display current-configuration interface
- display current-configuration interface Gigabitethernet 1/0/1
- display interface brief
- display this
- display saved-configuration
- display version
- diaply vlan
Interface
- interface Gigabitethernet 1/0/1
- shutdown
- undo shutdown
- speed 1000
- duplex full
- port access vlan 10
- show this
VLAN
- vlan 10
- description Sales
- port Gigabitethernet 1/0/1
- interface vlan-interface 10
- ip address 192.168.10.1 255.255.255.0
Trunk
- interface Gigabitethernet 1/0/48
- port link-type trunk
- port trunk permit vlan all
Etherchanel
- interface bridge-aggregation 1
- port link-type trunk
- port trunk permit vlan all
- quit
- interface range ten-gigabitethernet 1/0/47 to 1/0/48
- port link-aggregation group 1
- quit
- show link-aggregation summary
- show link-aggregation verbose
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
AUX Login
- line aux 0
- authentication-mode scheme
- quit
- local-user admin class manage
- password simple 123.com
- service-type terminal
- authorization-attribute user-role network-admin
- undo authorization-attribute user-role network-operator
- quit
NTP
- ntp-service
- enablent-service refclock-master 2
- ntp-service
- ntp-service unicast-server 192.168.1.10
Port Security
- port-security enable
- interface ten-gigabitethernet 1/0/1
- port-security max-mac-count 10
- port-security intrusion-mode disableport-temporarily
- show port-security interface ten-gigabitethernet 1/0/1
LLDP
- sytem-view
- lldp enable
General
- system-view
- sysname switch01
- undo info-center enable
- save
- <BJ-1F-SW01>reset saved-configuration
- reboot