本文主要是介绍Switch 之 H3C S5500,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
System
# system view
<H3C> system‐view
[H3C] quit
<H3C># display version
[H3C]display version
H3C Comware Software, Version 7.1.045, Release 3116# configuration save
<H3C> save
<H3C> display current‐configuration
# factory reset
<H3C> reset saved‐configuration# reboot
<H3C> reboot# command help
[H3C] ?
[H3C] vlan ?
ACL
[H3C]acl number 2023 match‐order config
[H3C‐acl‐basic‐2023] rule 1 permit source 10.14.115.0 0.0.0.255
[H3C‐acl‐basic‐2023] rule 10 deny source any
AAA
https://blog.51cto.com/u_14009115/2404593
# display local users
[H3C] display local-user# create new user (e.g. admin)
[H3C] local-user admin
New local user added.
[H3C-luser-manage-admin] quit
[H3C]# set user config
[H3C] local-user admin
[H3C-luser-manage-admin] password simple admin123
[H3C-luser-manage-admin] service-type telnet
[H3C-luser-manage-admin] authorization-attribute user-role level-15
[H3C-luser-manage-admin] quit
[H3C] display local-user
Total 1 local users matched.
Device management user admin:State: ActiveService type: TelnetUser group: systemBind attributes:Authorization attributes:Work directory: flash:User role list: level-15, network-operator# del local user
[H3C]undo local-user admin class manage
Service
# telnet service
[H3C] telnet server enable
[H3C] telnet server acl 2023
[H3C] user-interface vty 0 4
[H3C-line-vty0-4] authentication-mode scheme
[H3C-line-vty0-4] user-role level-15# stp
[H3C]display stp
[H3C]undo stp global enable
[H3C]stp global enable
VLAN
# display vlan
[H3C]display vlan
[H3C]display vlan 1# create vlan
[H3C] vlan 10
[H3C] vlan 10 to 4000# remove vlan
[H3C] undo vlan 100
[H3C] undo vlan 1000 to 4000# add port to vlan
[H3C] vlan 10
[H3C-vlan10]port GigabitEthernet 1/0/47
[H3C-vlan10]port GigabitEthernet 1/0/47 to GigabitEthernet 1/0/48# remove port from vlan
[H3C-vlan10]undo port GigabitEthernet 1/0/47 to GigabitEthernet 1/0/48
Interface
# display interface
[H3C]display interface brief
[H3C]display interface GigabitEthernet 1/0/1
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]display this
#interface GigabitEthernet1/0/1port link-type trunkport trunk permit vlan 1
#
return# set interface link-type
[H3C]interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]port link-type access
[H3C-GigabitEthernet1/0/1]port link-type trunk
[H3C-GigabitEthernet1/0/1]port trunk permit vlan 1000 to 4000
[H3C-GigabitEthernet1/0/1]port trunk permit vlan all# batch operation
[H3C]interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/22
[H3C-if-range]
IP
# display ip interface
[H3C]display ip interface brief# create ip interface
[H3C]interface Vlan-interface 10
[H3C-Vlan-interface10]# set ip address
[H3C-Vlan-interface10] ip address 10.10.115.10 24
[H3C-Vlan-interface10] shutdown
[H3C-Vlan-interface10] undo shutdown
[H3C-Vlan-interface10] undo ip address# del ip interface
[H3C]undo interface Vlan-interface 10
Routing
# set static route
[H3C]ip route-static 0.0.0.0 0 10.14.115.1# display routing table
[H3C]display ip routing-table
来自: Switch 之 H3C S5500https://mp.weixin.qq.com/s?__biz=Mzk0NTQ3OTk3MQ==&mid=2247487499&idx=1&sn=5d2d4537b58c682fbfc061fbeb372935&chksm=c3159847f4621151d283425e488c8a4c6083cd9a732f268d8460a9ce30800caf466aab784eae&token=113329682&lang=zh_CN#rd
这篇关于Switch 之 H3C S5500的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!