當前位置:學問君>人在職場>IT認證>

2016年H3C常用查詢配置命令

學問君 人氣:6.53K

目前,H3C已擁有覆蓋網絡層安全、應用層安全以及安全管理三個層面近百餘款產品,具備2~7層全業務安全防護能力。下面本站爲大家推薦的是H3C常用查詢配置命令,希望能幫助到大家!

2016年H3C常用查詢配置命令

進入系統視圖

system-view

配置設備名

sysname RouterA

檢視FLASH目錄下內容

dir

指定下次啓動配置檔案

startup saved-configuration

儲存配置

save

重啓

reboot

#置CONSOLE用戶登陸的口令認證

system-view

[H3C]user-interface aux 0

[H3C-ui-aux0]authentication-mode password

[H3C-ui-aux0]set authenticaton password simple 123456

[H3C-ui-aux0]user privilege level 3

用戶的命令控制級別設定

[H3C-ui-aux0]user privilege level 0

[H3C]super password level 1 simple 123456

[H3C]super password level 2 simple 123456

[H3C]super password level 3 simple 123456

# 設定super(明文)密碼 當低權限向高權限切換時使用!

[RouterA]super password simple quidway

# 設定super(密文)密碼

[RouterA]super password cipher quidway

# 啓用telnet 管理功能

[RouterA]user-interface vty 0 4

[RouterA-ui-vty0-4]authentication-mode password

[RouterA-ui-vty0-4]set authentication password simple quidway

[RouterA-ui-vty0-4]user privilege level 3

[RouterA-ui-vty0-4]quit

[RouterA]telnet server enable

# 配置端口IP 位址

[RouterA]int e 0

[RouterA-Ethernet0]ip add 24

# 啓動端口

[RouterA-Ethernet0]undo shutdown

[RouterA-Ethernet0]quit

# 儲存,在任何視圖下

save

# 檢視當前設備配置資訊

[RouterA]display current-configuration

# 檢視Flash 中的配置(相當於CISCO start-config)

[RouterA]display saved-configuration

# 刪除FLASH 中的配置資訊(重置設備配置)

[RouterA]reset saved-configuration

# 重新啓動設備

reboot

# 顯示系統軟件版本

[RouterA]display version

# 訪問TFTP 服務器

tftp 服務器IP {put|get} 源檔案名目的檔案名

tftp put //上傳

tftp get //下載

# 交換機IP 位址

[H3C]int vlan 1

[H3C-Vlan-interface1]ip add 24

[H3C-Vlan-interface1]undo ip add 24

# 創建VLAN

[H3C]vlan 10

[H3C]undo vlan 10

# 向VLAN 添加一個、多個端口

[H3C-vlan10]port e 1/0/1

[H3C-vlan10]port e 1/0/5 to e 1/0/7

[H3C-vlan10]port e 1/0/8 to e 1/0/9 e 1/0/11 to e 1/0/12

# 顯示VLAN 資訊

[H3C]dis vlan

# 設定以太網端口的鏈路類型爲TRUNK

[H3C-Ethernet1/0/1]port link-type trunk

[H3C-Ethernet1/0/1]port trunk permit vlan all

[H3C-Ethernet1/0/1]port trunk pvid vlan 1

# 設定以太網端口的鏈路類型爲ACCESS

[H3C-Ethernet1/0/1]port link-type access

[H3C-Ethernet1/0/1]port access vlan 10

[H3C-Ethernet1/0/1]undo port access vlan

# 配置Loopback 環回接口

[H3C]int loopback 0

[H3C-Lookback0]ip add 24

# 靜態路由

[H3C]ip route s 1/0

[H3C]undo ip route s 1/0

# 默認路由

[H3C]ip route

顯示當前配置

dis cu

dis命令集(漢化)

acl ACL狀態和配置資訊

arp 顯示ARP資訊

aspf ASPF狀態和配置資訊

atm ATM狀態和配置資訊

bgp BGP 協議資訊

boot-loader 顯示啓動檔案

bootp 自舉協議

bridge 橋的資訊

brief 接口狀態和配置簡要資訊

channel 資訊通道狀態和配置資訊

clipboard 剪貼板的`狀態和配置資訊

clock 時鐘狀態和配置資訊

configure-user 具有配置權限的用戶

connection 顯示連接資訊

connection-limit 連接統計模組的狀態和配置資訊

controller 指定controller接口

cpu-usage CPU佔用率統計資訊

current-configuration 系統當前配置

dar DAR狀態和配置資訊

debugging 顯示當前調試開關設定情況

device 顯示設備資訊

dhcp DHCP命令

diagnostic-information 顯示系統診斷資訊

dialer DCC狀態和配置資訊

dns DNS 狀態和配置資訊

domain 顯示域配置方案

dot1x 802.1X配置資訊

dsl DSL狀態和配置資訊

environment 顯示環境資訊

fan 顯示風扇狀態

fe1 接口FE1狀態和配置資訊

fib FIB狀態和配置資訊

firewall 防火牆的配置資訊

firewall-statistics 防火牆的狀態和配置資訊

fr 幀中繼狀態和配置資訊

ft1 接口FT1狀態和配置資訊

ftp FTP客戶端狀態和配置資訊

ftp-server FTP服務器狀態和配置資訊

ftp-user FTP用戶狀態和配置資訊

history-command 歷史命令配置資訊

hotkey 快速鍵的狀態和配置資訊

hwtacacs HWTACACS服務器的相關資訊

icmp ICMP資訊

igmp 狀態和配置資訊

info-center 顯示資訊中心配置及內容

interface 接口狀態和配置資訊

ip IP 協議

ipv6 IPv6狀態和配置資訊

isdn ISDN 狀態和配置資訊

l2tp L2TP狀態和配置資訊

local-proxy-arp 顯示本地ARP代理資訊

local-server 本地服務器資訊

local-user 顯示本地用戶資訊

logbuffer 日誌緩衝區狀態和配置資訊

logfile 顯示日誌檔案資訊

loopback-detection 檢測端口是否存在自環

mac-address MAC地址資訊

memory 顯示內存資訊

mfr 顯示MFR狀態和配置資訊

mirroring-group 設定鏡像組

mld MLD狀態和配置資訊

msdp MSDP狀態和配置資訊

multicast 多播配置

nat 地址轉換狀態和配置資訊

nqa 顯示NQA資訊

ntp-service NTP網絡時間服務

oap 開放應用平臺的操作

ospf OSPF路由協議

pim PIM狀態和配置資訊

pki PKI資訊

policy-based-route 策略路由的狀態和配置資訊

port 顯示端口資訊

port-isolate 隔離組資訊

portal Portal 協議

power 顯示電源狀態

ppp PPP狀態和配置資訊

pppoe-client PPPoE Client狀態和配置資訊

pppoe-server PPPoE服務器端狀態和配置資訊

proxy-arp 顯示ARP代理資訊

qos 服務質量狀態和配置資訊

radius 顯示RADIUS配置資訊

reboot-type 顯示啓動類型

rip RIP狀態和配置資訊

rmon RMON資訊

route-policy 顯示路由策略配置

router 配置路由器資訊

routing 顯示路由資訊

rps 顯示冗餘電源狀態

rsa 顯示RSA模組的狀態和配置資訊

saved-configuration 顯示儲存的系統配置資訊

schedule 設定系統任務

sftp 顯示設定的源

snmp-agent 顯示SNMP狀態和配置資訊

ssh SSH 狀態和配置資訊

standby 備份接口狀態和配置資訊

startup 顯示系統啓動配置

stop-accounting-buffer 查詢備份在本地的無響應的停止計費報文

stp 生成樹協議

tcp TCP狀態和配置資訊

telnet TELNET狀態和配置資訊

tftp TFTP客戶端狀態和配置資訊

this 當前視圖的執行配置

time-range 時間段狀態和配置資訊

traffic 數據流的狀態和配置資訊

transceiver

trapbuffer 告警緩衝區狀態和配置資訊

udp UDP狀態和配置資訊

udp-helper UDP HELPER模組

user-interface 用戶接口的狀態和配置資訊

userlog 用戶日誌特性

users 用戶接口狀態及配置資訊

version 系統的硬件和軟件版本資訊

virtual-access Virtual-access 接口狀態和配置資訊

vlan VLAN配置資訊

voice Voice VLAN

==========================================================================================

reset save ;清除所有配置

[Quidway]super password ;修改特權用戶密碼

[Quidway]sysname ;交換機命名

[Quidway]interface ethernet 0/1 ;進入接口視圖

[Quidway]interface vlan x ;進入接口視圖

[Quidway-Vlan-interfacex]ip address ;配置VLAN的IP位址

[Quidway]ip route-static ;靜態路由=網關

[Quidway]user-interface vty 0 4 ;進入虛擬終端

[S3026-ui-vty0-4]authentication-mode password ;設定口令模式

[S3026-ui-vty0-4]set authentication password simple 222 ;設定口令

[S3026-ui-vty0-4]user privilege level 3 ;用戶級別

[Quidway-Ethernet0/1]duplex {half|full|auto} ;配置端口工作狀態

[Quidway-Ethernet0/1]speed {10|100|auto} ;配置端口工作速率

[Quidway-Ethernet0/1]flow-control ;配置端口流控

[Quidway-Ethernet0/1]mdi {across|auto|normal} ;配置端口平接扭接

[Quidway-Ethernet0/1]port link-type {trunk|access|hybrid} ;設定端口工作模式

[Quidway-Ethernet0/1]undo shutdown ;激活端口

[Quidway-Ethernet0/2]quit ;退出系統視圖

[Quidway]vlan 3       ;創建VLAN

[Quidway-vlan3]port ethernet 0/1 to ethernet 0/4      ;在VLAN中增加端口

[Quidway-Ethernet0/2]port access vlan 3      ;當前端口加入到VLAN

TAGS:配置 命令 H3C