HP H3C 系スイッチ覚え書き
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
RIGHT:[[覚え書き]]
使用機種: 6125G/XG Blade Switch
*基本設定 [#efcfe226]
システムモードへ
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
Web インタフェイス,ssh 有効
[6125G/XG Blade Switch]ip http enable
[6125G/XG Blade Switch]ssh server enable
Info: Enable SSH server.
管理者ユーザ設定
[6125G/XG Blade Switch]local-user admin
New local user added.
[6125G/XG Blade Switch-luser-admin]password cipher hogeh...
[6125G/XG Blade Switch-luser-admin]service-type ssh
[6125G/XG Blade Switch-luser-admin]service-type web
[6125G/XG Blade Switch-luser-admin]authorization-attribu...
[6125G/XG Blade Switch-luser-admin]quit
[6125G/XG Blade Switch]user-interface vty 0 4
[6125G/XG Blade Switch-ui-vty0-4]authentication-mode sch...
[6125G/XG Blade Switch-ui-vty0-4]protocol inbound ssh
[6125G/XG Blade Switch-ui-vty0-4]quit
設定保存
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
Validating file. Please wait....
The current configuration is saved to the active main bo...
Configuration is saved to device successfully.
*その他設定 [#jbf1fe37]
スイッチ名設定
[6125G/XG Blade Switch]sysname HOGEHOGE
時刻設定
[6125G/XG Blade Switch]clock timezone Osaka add 09:00:00
NTP サーバ設定
[6125G/XG Blade Switch]ntp-service unicast-server 192.16...
------------------------------------
*IRF 設定 [#o05a6540]
+1号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]irf member 1 priority 32
[6125G/XG Blade Switch]save
The current configuration will be written to the device...
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the en...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
[6125G/XG Blade Switch]quit
<6125G/XG Blade Switch>reboot
Start to check configuration with next startup configur...
please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
(2) 2号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]irf member 1 renumber 2
Warning: Renumbering the switch number may result in co...
change or loss. Continue?[Y/N]y
[6125G/XG Blade Switch]quit
<6125G/XG Blade Switch>reboot
Start to check configuration with next startup configur...
please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
(3) 1号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 1/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]shutdown
Interface Ten-GigabitEthernet1/0/17 has already been sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]quit
(4) 2号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 2/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]shutdown
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]quit
(5) 1号機
[6125G/XG Blade Switch]irf-port 1/1
[6125G/XG Blade Switch-irf-port1/1]port group interface ...
Info: You are recommended to save the configuration aft...
your IRF configuration; otherwise, it may be lost after...
[6125G/XG Blade Switch-irf-port1/1]
(6) 2号機
[6125G/XG Blade Switch]irf-port 2/2
[6125G/XG Blade Switch-irf-port2/2]port group interface ...
Info: You are recommended to save the configuration aft...
your IRF configuration; otherwise, it may be lost after...
[6125G/XG Blade Switch-irf-port2/2]quit
[6125G/XG Blade Switch-irf-port2/2]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
(7) 1号機
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 1/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]undo sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]quit
[6125G/XG Blade Switch]irf-port-configuration active
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
(8)2号機
[6125G/XG Blade Switch]interface Ten-GigabitEthernet2/0/17
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]undo sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]quit
[6125G/XG Blade Switch]irf-port-configuration active
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
自動的に再起動がかかる?
(9)1号機(IRF が成功していたら 2号にはつながんない)
<6125G/XG Blade Switch>display irf
Switch Role Priority CPU-Mac Description
*+1 Master 32 5c8a-382d-XXXX -----
2 Slave 1 5c8a-384f-YYYY -----
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 5c8a-382d-XXXX
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
----------------------------------
*リンクアグリゲーション [#k135bd93]
<6125G/XG>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG]interface Bridge-Aggregation 1
[6125G/XG-Bridge-Aggregation1]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation1]quit
[6125G/XG]interface GigabitEthernet 1/1/5
[6125G/XG-GigabitEthernet1/1/5]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/5]interface GigabitEthernet...
[6125G/XG-GigabitEthernet1/1/6]port link-aggregation gro...
[6125G/XG]interface GigabitEthernet 2/1/5
[6125G/XG-GigabitEthernet2/1/5]port link-aggregation gro...
[6125G/XG-GigabitEthernet2/1/5]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/6]port link-aggregation gro...
[6125G/XG]interface Bridge-Aggregation 3
[6125G/XG-Bridge-Aggregation3]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation3]quit
[6125G/XG]interface GigabitEthernet 1/1/7
[6125G/XG-GigabitEthernet1/1/7]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/7]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/7]port link-aggregation gro...
[6125G/XG]interface Bridge-Aggregation 4
[6125G/XG-Bridge-Aggregation4]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation4]quit
[6125G/XG]interface GigabitEthernet 1/1/8
[6125G/XG-GigabitEthernet1/1/8]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/8]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/8]port link-aggregation gro...
---------------------------
*VLAN 作成 [#z17b2b1b]
[6125G/XG]vlan 1010
[6125G/XG-vlan1010]quit
[6125G/XG]interface GigabitEthernet 1/0/9
[6125G/XG-GigabitEthernet1/0/9]port access vlan 1010
[6125G/XG-GigabitEthernet1/0/9]interface GigabitEthernet...
[6125G/XG-GigabitEthernet1/0/10]port access vlan 1010
[6125G/XG-GigabitEthernet1/0/10]interface GigabitEtherne...
[6125G/XG-GigabitEthernet1/0/11]port access vlan 1010
[6125G/XG-GigabitEthernet2/0/11]interface GigabitEtherne...
[6125G/XG-GigabitEthernet2/0/10] port access vlan 1010
[6125G/XG-GigabitEthernet2/0/10]interface GigabitEtherne...
[6125G/XG-GigabitEthernet2/0/9] port access vlan 1010
[6125G/XG]interface Bridge-Aggregation 3
[6125G/XG-Bridge-Aggregation3]port access vlan 1010
[6125G/XG-Bridge-Aggregation3]interface Bridge-Aggregati...
[6125G/XG-Bridge-Aggregation4]port access vlan 1010
確認
[6125G/XG]dis vlan all
VLAN ID: 1
VLAN Type: static
Route Interface: not configured
Description: VLAN 0001
Name: VLAN 0001
Tagged Ports: none
Untagged Ports:
Bridge-Aggregation1 Bridge-Aggregation2
GigabitEthernet1/0/1 GigabitEthernet1/0/2 Gi...
GigabitEthernet1/0/4 GigabitEthernet1/0/5 Gi...
GigabitEthernet1/0/7 GigabitEthernet1/0/8 Gi...
GigabitEthernet1/0/13 GigabitEthernet1/0/14 Gi...
GigabitEthernet1/0/16 GigabitEthernet1/1/5 Gi...
GigabitEthernet2/0/1 GigabitEthernet2/0/2 Gi...
GigabitEthernet2/0/4 GigabitEthernet2/0/5 Gi...
GigabitEthernet2/0/7 GigabitEthernet2/0/8 Gi...
GigabitEthernet2/0/12 GigabitEthernet2/0/13 Gi...
GigabitEthernet2/0/15 GigabitEthernet2/0/16 Gi...
GigabitEthernet2/1/6
Ten-GigabitEthernet1/1/1
Ten-GigabitEthernet1/1/2
Ten-GigabitEthernet1/1/3
Ten-GigabitEthernet1/1/4
Ten-GigabitEthernet2/1/1
Ten-GigabitEthernet2/1/2
Ten-GigabitEthernet2/1/3
Ten-GigabitEthernet2/1/4
VLAN ID: 1010
VLAN Type: static
Route Interface: not configured
Description: VLAN 1010
Name: VLAN 1010
Tagged Ports: none
Untagged Ports:
Bridge-Aggregation3 Bridge-Aggregation4
GigabitEthernet1/0/9 GigabitEthernet1/0/10 Gi...
GigabitEthernet1/1/7 GigabitEthernet1/1/8 Gi...
GigabitEthernet2/0/10 GigabitEthernet2/1/7 Gi...
**VLAN Trunk ポートの作成 [#i7ec0d6b]
[6125G/XG]interface GigabitEthernet 1/0/24
[6125G/XG-GigabitEthernet1/0/24]port linktype trunk
[6125G/XG-GigabitEthernet1/0/24]port trunk permit all
---------------------------
*設定初期化(未確認) [#x6e2529d]
方法 1
restore factory-default
方法2
reset saved-configuration [ backup | main ]
方法3
スイッチを再起動.
起動中に Ctrl + B を 5秒間(?)押す.
パスワードを入れる
「5 restore factory configuration」を選択
終了行:
RIGHT:[[覚え書き]]
使用機種: 6125G/XG Blade Switch
*基本設定 [#efcfe226]
システムモードへ
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
Web インタフェイス,ssh 有効
[6125G/XG Blade Switch]ip http enable
[6125G/XG Blade Switch]ssh server enable
Info: Enable SSH server.
管理者ユーザ設定
[6125G/XG Blade Switch]local-user admin
New local user added.
[6125G/XG Blade Switch-luser-admin]password cipher hogeh...
[6125G/XG Blade Switch-luser-admin]service-type ssh
[6125G/XG Blade Switch-luser-admin]service-type web
[6125G/XG Blade Switch-luser-admin]authorization-attribu...
[6125G/XG Blade Switch-luser-admin]quit
[6125G/XG Blade Switch]user-interface vty 0 4
[6125G/XG Blade Switch-ui-vty0-4]authentication-mode sch...
[6125G/XG Blade Switch-ui-vty0-4]protocol inbound ssh
[6125G/XG Blade Switch-ui-vty0-4]quit
設定保存
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
Validating file. Please wait....
The current configuration is saved to the active main bo...
Configuration is saved to device successfully.
*その他設定 [#jbf1fe37]
スイッチ名設定
[6125G/XG Blade Switch]sysname HOGEHOGE
時刻設定
[6125G/XG Blade Switch]clock timezone Osaka add 09:00:00
NTP サーバ設定
[6125G/XG Blade Switch]ntp-service unicast-server 192.16...
------------------------------------
*IRF 設定 [#o05a6540]
+1号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]irf member 1 priority 32
[6125G/XG Blade Switch]save
The current configuration will be written to the device...
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the en...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
[6125G/XG Blade Switch]quit
<6125G/XG Blade Switch>reboot
Start to check configuration with next startup configur...
please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
(2) 2号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]irf member 1 renumber 2
Warning: Renumbering the switch number may result in co...
change or loss. Continue?[Y/N]y
[6125G/XG Blade Switch]quit
<6125G/XG Blade Switch>reboot
Start to check configuration with next startup configur...
please wait.........DONE!
This command will reboot the device. Continue? [Y/N]:y
(3) 1号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 1/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]shutdown
Interface Ten-GigabitEthernet1/0/17 has already been sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]quit
(4) 2号機
<6125G/XG Blade Switch>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 2/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]shutdown
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]quit
(5) 1号機
[6125G/XG Blade Switch]irf-port 1/1
[6125G/XG Blade Switch-irf-port1/1]port group interface ...
Info: You are recommended to save the configuration aft...
your IRF configuration; otherwise, it may be lost after...
[6125G/XG Blade Switch-irf-port1/1]
(6) 2号機
[6125G/XG Blade Switch]irf-port 2/2
[6125G/XG Blade Switch-irf-port2/2]port group interface ...
Info: You are recommended to save the configuration aft...
your IRF configuration; otherwise, it may be lost after...
[6125G/XG Blade Switch-irf-port2/2]quit
[6125G/XG Blade Switch-irf-port2/2]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
(7) 1号機
[6125G/XG Blade Switch]interface Ten-GigabitEthernet 1/0...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]undo sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet1/0/17]quit
[6125G/XG Blade Switch]irf-port-configuration active
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
(8)2号機
[6125G/XG Blade Switch]interface Ten-GigabitEthernet2/0/17
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]undo sh...
[6125G/XG Blade Switch-Ten-GigabitEthernet2/0/17]quit
[6125G/XG Blade Switch]irf-port-configuration active
[6125G/XG Blade Switch]save
The current configuration will be written to the device....
Please input the file name(*.cfg)[flash:/config.cfg]
(To leave the existing filename unchanged, press the ent...
flash:/config.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait....
The current configuration is saved to the active main b...
Configuration is saved to device successfully.
自動的に再起動がかかる?
(9)1号機(IRF が成功していたら 2号にはつながんない)
<6125G/XG Blade Switch>display irf
Switch Role Priority CPU-Mac Description
*+1 Master 32 5c8a-382d-XXXX -----
2 Slave 1 5c8a-384f-YYYY -----
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The Bridge MAC of the IRF is: 5c8a-382d-XXXX
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
----------------------------------
*リンクアグリゲーション [#k135bd93]
<6125G/XG>system-view
System View: return to User View with Ctrl+Z.
[6125G/XG]interface Bridge-Aggregation 1
[6125G/XG-Bridge-Aggregation1]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation1]quit
[6125G/XG]interface GigabitEthernet 1/1/5
[6125G/XG-GigabitEthernet1/1/5]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/5]interface GigabitEthernet...
[6125G/XG-GigabitEthernet1/1/6]port link-aggregation gro...
[6125G/XG]interface GigabitEthernet 2/1/5
[6125G/XG-GigabitEthernet2/1/5]port link-aggregation gro...
[6125G/XG-GigabitEthernet2/1/5]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/6]port link-aggregation gro...
[6125G/XG]interface Bridge-Aggregation 3
[6125G/XG-Bridge-Aggregation3]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation3]quit
[6125G/XG]interface GigabitEthernet 1/1/7
[6125G/XG-GigabitEthernet1/1/7]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/7]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/7]port link-aggregation gro...
[6125G/XG]interface Bridge-Aggregation 4
[6125G/XG-Bridge-Aggregation4]link-aggregation mode dyna...
[6125G/XG-Bridge-Aggregation4]quit
[6125G/XG]interface GigabitEthernet 1/1/8
[6125G/XG-GigabitEthernet1/1/8]port link-aggregation gro...
[6125G/XG-GigabitEthernet1/1/8]interface GigabitEthernet...
[6125G/XG-GigabitEthernet2/1/8]port link-aggregation gro...
---------------------------
*VLAN 作成 [#z17b2b1b]
[6125G/XG]vlan 1010
[6125G/XG-vlan1010]quit
[6125G/XG]interface GigabitEthernet 1/0/9
[6125G/XG-GigabitEthernet1/0/9]port access vlan 1010
[6125G/XG-GigabitEthernet1/0/9]interface GigabitEthernet...
[6125G/XG-GigabitEthernet1/0/10]port access vlan 1010
[6125G/XG-GigabitEthernet1/0/10]interface GigabitEtherne...
[6125G/XG-GigabitEthernet1/0/11]port access vlan 1010
[6125G/XG-GigabitEthernet2/0/11]interface GigabitEtherne...
[6125G/XG-GigabitEthernet2/0/10] port access vlan 1010
[6125G/XG-GigabitEthernet2/0/10]interface GigabitEtherne...
[6125G/XG-GigabitEthernet2/0/9] port access vlan 1010
[6125G/XG]interface Bridge-Aggregation 3
[6125G/XG-Bridge-Aggregation3]port access vlan 1010
[6125G/XG-Bridge-Aggregation3]interface Bridge-Aggregati...
[6125G/XG-Bridge-Aggregation4]port access vlan 1010
確認
[6125G/XG]dis vlan all
VLAN ID: 1
VLAN Type: static
Route Interface: not configured
Description: VLAN 0001
Name: VLAN 0001
Tagged Ports: none
Untagged Ports:
Bridge-Aggregation1 Bridge-Aggregation2
GigabitEthernet1/0/1 GigabitEthernet1/0/2 Gi...
GigabitEthernet1/0/4 GigabitEthernet1/0/5 Gi...
GigabitEthernet1/0/7 GigabitEthernet1/0/8 Gi...
GigabitEthernet1/0/13 GigabitEthernet1/0/14 Gi...
GigabitEthernet1/0/16 GigabitEthernet1/1/5 Gi...
GigabitEthernet2/0/1 GigabitEthernet2/0/2 Gi...
GigabitEthernet2/0/4 GigabitEthernet2/0/5 Gi...
GigabitEthernet2/0/7 GigabitEthernet2/0/8 Gi...
GigabitEthernet2/0/12 GigabitEthernet2/0/13 Gi...
GigabitEthernet2/0/15 GigabitEthernet2/0/16 Gi...
GigabitEthernet2/1/6
Ten-GigabitEthernet1/1/1
Ten-GigabitEthernet1/1/2
Ten-GigabitEthernet1/1/3
Ten-GigabitEthernet1/1/4
Ten-GigabitEthernet2/1/1
Ten-GigabitEthernet2/1/2
Ten-GigabitEthernet2/1/3
Ten-GigabitEthernet2/1/4
VLAN ID: 1010
VLAN Type: static
Route Interface: not configured
Description: VLAN 1010
Name: VLAN 1010
Tagged Ports: none
Untagged Ports:
Bridge-Aggregation3 Bridge-Aggregation4
GigabitEthernet1/0/9 GigabitEthernet1/0/10 Gi...
GigabitEthernet1/1/7 GigabitEthernet1/1/8 Gi...
GigabitEthernet2/0/10 GigabitEthernet2/1/7 Gi...
**VLAN Trunk ポートの作成 [#i7ec0d6b]
[6125G/XG]interface GigabitEthernet 1/0/24
[6125G/XG-GigabitEthernet1/0/24]port linktype trunk
[6125G/XG-GigabitEthernet1/0/24]port trunk permit all
---------------------------
*設定初期化(未確認) [#x6e2529d]
方法 1
restore factory-default
方法2
reset saved-configuration [ backup | main ]
方法3
スイッチを再起動.
起動中に Ctrl + B を 5秒間(?)押す.
パスワードを入れる
「5 restore factory configuration」を選択
ページ名: