H3Cを触ると毎回コマンドを忘れるのでメモしておきます。

H3C コンフィグレーション
特権モード
<H3C>system-view
System View: return to User View with Ctrl+Z.
インタフェース設定
[H3C]interfaceGigabitEthernet1/0/48
[H3C-GigabitEthernet1/0/48]
interface GigabitEthernet1/0/48
port link-type trunk
port trunk permit vlan 1 2 3 10
マネージメントIP設定
[[H3C]management-vlan 10
[H3C]interface Vlan-interface 10
[H3C-Vlan-interface10]ip address 192.168.1.0 255.255.255.0
[H3C]vlan 2
[H3C-vlan2]port g1/0/10 gi1/0/20
設定保存
[H3C-luser-admin]save
The configuration will be written to the device.
Are you sure?[Y/N]
Before pressing ENTER you must choose 'YES' or 'NO'[Y/N]:Y
Please input the file name(*.cfg)(To leave the existing filename
unchanged press the enter key):
Now saving current configuration to the device.
Saving configuration. Please wait...
.........
Unit1 save configuration flash:/config.cfg successfully
[H3C-luser-admin]
%Apr 2 00:32:38:328 2000 H3C CFM/3/CFM_LOG:- 1 -Unit1 save configuration successfully.
H3C 確認(show)コマンド
H3Cではshowコマンドの代わりにdisplayコマンド使って設定やステータスを確認します。
設定確認
<H3C>display current-configuration
インタフェース確認(brief)
[H3C]display brief interface
Interface:
Eth - Ethernet GE - GigabitEthernet TENGE - tenGigabitEthernet
Loop - LoopBack Vlan - Vlan-interface Cas - Cascade
Speed/Duplex:
A - auto-negotiation
Interface Link Speed Duplex Type PVID Description
--------------------------------------------------------------------------------
Aux1/0/0 UP -- -- -- --
GE1/0/1 UP A1000M Afull access 1
GE1/0/2 UP A1000M Afull access 2
GE1/0/3 UP A1000M Afull access 3
インタフェース確認
<H3C>display interface
Aux1/0/0
Description : Aux Interface
GigabitEthernet1/0/1 current state : UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 1111-1111-1111
Media type is twisted pair, loopback not set
Port hardware type is 1000_BASE_T
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 9216
Broadcast MAX-ratio: 100%
Unknown Multicast Packet drop: Disable
Unknown Unicast Packet drop: Disable
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 59 bytes/sec
Input(total): 255798 packets, - bytes
- broadcasts, - multicasts, - pauses
Input(normal): 255798 packets, 16547765 bytes
8 broadcasts, 14 multicasts, - pauses
Input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC
0 frame, 0 overruns, 0 aborts, - ignored, - parity errors
Output(total): 260051 packets, - bytes
- broadcasts, - multicasts, - pauses
Output(normal): 260051 packets, 372735064 bytes
1589 broadcasts, 2760 multicasts, 0 pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
- lost carrier, - no carrier
VLAN Interface確認
<H3C>display interface vlan 10
Vlan-interface10 current state :UP
Line protocol current state :UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 000f-1111-1111
Internet Address is 192.168.1.1/24 Primary
Description : Vlan-interface10 Interface
The Maximum Transmit Unit is 1500
Trunkポート確認
<H3C>display port trunk
The following trunk ports exist:
GigabitEthernet1/0/48
その他
設定の削除はnoではなくundoを使用します。
WEBサーバ起動
[H3C]undo ip http shutdown
HttpTask is alive.