跳到主內容
版本:3.0

CubeCOS 安裝前檢測工具

請使用以下安裝前檢測工具,確保您的網路環境已正確配置,可支援 CubeCOS 的部署。 這些工具協助管理員透過預設的網路命令列介面驗證網路拓撲、連線狀態及存取控制,藉此降低部署風險並加速叢集部署進程。

CubeCOS 網路預設/診斷工具概述

此網路預設值原名為「診斷模式」,可讓管理員在部署 CubeCOS 叢集前測試並驗證網路拓撲結構與配置。

在預設的命令列介面中,提供四項主要功能供使用者運用:

  1. 檢查網路介面狀態

    顯示主機上所有網路介面的狀態與詳細屬性,包含鏈路狀態、最大傳輸單位、傳輸速率及驅動程式資訊。

  2. 平面網絡預設

    測試並驗證平面網路類型的介面配置。

  3. 虛擬區域網路預設

    驗證介面是否具備進行基於VLAN的區段分割之準備狀態,包括VLAN標記支援與實體介面對應功能。

  4. 鍵合介面預設值

    檢查網路綁定配置,以確認介面聚合功能正常運作且已準備就緒,可投入生產環境使用。

資訊

有關不同網路類型及支援拓撲結構的詳細資訊,請參閱網路章節

透過預設命令列(CLI)介面驗證網路設定

登入管理員命令列介面並選擇進階選項

unconfigured login: admin
Password:
Last login: Tue Jul 12 02:14:07 on tty1
Welcome to the Cube Appliance
First Time Setup Options:
1: Wizard
2: Advanced
Enter index: 2
Welcome to the Cube Appliance
Enter "help" for a list of available commands
License files are not installed
unconfigured>

檢查網路介面狀態

命令列介面:preset show_interface all

unconfigured> preset show_interface all
Press enter for local or input IP ranges (IP,IP-IP,...):
--------------------------------------------------------------------------------------------------------
Dev Label DevID/Cfg BusID/Slaves HWAddr Driver Link State Speed
--------------------------------------------------------------------------------------------------------
eth0 IF.1 14e4.165f 0000:01:00.0 18:66:da:eb:b6:78 tg3 yes UP 1000F
eth1 IF.2 14e4.165f 0000:01:00.1 18:66:da:eb:b6:79 tg3 yes DOWN 1000F
eth2 IF.3 14e4.165f 0000:02:00.0 18:66:da:eb:b6:7a tg3 no DOWN N/A
eth3 IF.4 14e4.165f 0000:02:00.1 18:66:da:eb:b6:7b tg3 no DOWN N/A
--------------------------------------------------------------------------------------------------------
unconfigured>

設定介面 : flat

命令列介面:預設值 set_interface

unconfigured>preset set_interface
--------------------------------------------------------------------------------------------------------
Dev Label DevID/Cfg BusID/Slaves HWAddr Driver Link State Speed
--------------------------------------------------------------------------------------------------------
eth0 IF.1 14e4.165f 0000:01:00.0 18:66:da:eb:b6:78 tg3 yes UP 1000F
eth1 IF.2 14e4.165f 0000:01:00.1 18:66:da:eb:b6:79 tg3 yes DOWN 1000F
eth2 IF.3 14e4.165f 0000:02:00.0 18:66:da:eb:b6:7a tg3 no DOWN N/A
eth3 IF.4 14e4.165f 0000:02:00.1 18:66:da:eb:b6:7b tg3 no DOWN N/A
--------------------------------------------------------------------------------------------------------
Select an interface:
1: eth0
2: eth1
3: eth2
4: eth3
Enter index: 1
Specify CIDR: 192.168.10.30/24
unconfigured> preset ping 192.168.10.1
Ping 192.168.10.1 ... OK
unconfigured>

設定介面 : bond

命令列介面:預設值 set_bond_interface

unconfigured>preset set_bond_interface
--------------------------------------------------------------------------------------------------------
Dev Label DevID/Cfg BusID/Slaves HWAddr Driver Link State Speed
--------------------------------------------------------------------------------------------------------
eth0 IF.1 14e4.165f 0000:01:00.0 18:66:da:eb:b6:78 tg3 yes UP 1000F
eth1 IF.2 14e4.165f 0000:01:00.1 18:66:da:eb:b6:79 tg3 yes DOWN 1000F
eth2 IF.3 14e4.165f 0000:02:00.0 18:66:da:eb:b6:7a tg3 no DOWN N/A
eth3 IF.4 14e4.165f 0000:02:00.1 18:66:da:eb:b6:7b tg3 no DOWN N/A
--------------------------------------------------------------------------------------------------------
Specify bond name: mgmt
Specify bond slaves (e.g. ethX,ethY): eth0,eth1
Specify CIDR: 192.168.10.30/24
unconfigured> preset ping 192.168.10.1
Ping 192.168.10.1 ... OK
unconfigured>

設定介面 : vlan

命令列介面:預設值 set_vlan_interface

unconfigured>preset set_vlan_interface
--------------------------------------------------------------------------------------------------------
Dev Label DevID/Cfg BusID/Slaves HWAddr Driver Link State Speed
--------------------------------------------------------------------------------------------------------
eth0 IF.1 14e4.165f 0000:01:00.0 18:66:da:eb:b6:78 tg3 yes UP 1000F
eth1 IF.2 14e4.165f 0000:01:00.1 18:66:da:eb:b6:79 tg3 yes UP 1000F
eth2 IF.3 14e4.165f 0000:02:00.0 18:66:da:eb:b6:7a tg3 no DOWN N/A
eth3 IF.4 14e4.165f 0000:02:00.1 18:66:da:eb:b6:7b tg3 no DOWN N/A
mgmt mgmt fast,layer3+4 eth0,eth1 18:66:da:eb:b6:78 802.3ad yes UP 2000F
--------------------------------------------------------------------------------------------------------
Specify interface name: mgmt
Input VLAN ID (1-4095): 100
Specify CIDR: 192.168.10.60/24
unconfigured> preset ping 192.168.10.1
Ping 192.168.10.1 ... OK
unconfigured>

清除介面設定

命令列介面:preset clear_interface

unconfigured>preset clear_interface
--------------------------------------------------------------------------------------------------------
Dev Label DevID/Cfg BusID/Slaves HWAddr Driver Link State Speed
--------------------------------------------------------------------------------------------------------
eth0 IF.1 14e4.165f 0000:01:00.0 18:66:da:eb:b6:78 tg3 yes UP 1000F
eth1 IF.2 14e4.165f 0000:01:00.1 18:66:da:eb:b6:79 tg3 yes UP 1000F
eth2 IF.3 14e4.165f 0000:02:00.0 18:66:da:eb:b6:7a tg3 no DOWN N/A
eth3 IF.4 14e4.165f 0000:02:00.1 18:66:da:eb:b6:7b tg3 no DOWN N/A
mgmt mgmt fast,layer3+4 eth0,eth1 18:66:da:eb:b6:78 802.3ad yes UP 2000F
--------------------------------------------------------------------------------------------------------
Select interface type:
1: eth
2: bond
3: vlan
4: all
Enter index: 4
unconfigured>