Skip to main content
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

以 ONIE 模式安裝 Cumulus Linux

貢獻者 netapp-yvonneo netapp-jolieg

當交換器運作在 ONIE 模式下時,請依照下列步驟安裝 Cumulus Linux (CL) 作業系統。

註 Cumulus Linux (CL) 作業系統可以在交換器運行 Cumulus Linux 或 ONIE 時安裝(參見"以 Cumulus 模式安裝")。
關於此任務

您可以使用開放網路安裝環境 (ONIE) 安裝 Cumulus Linux,該環境允許自動發現網路安裝程式映像。這有助於實現透過作業系統選擇(例如 Cumulus Linux)來保護交換器的系統模型。使用 ONIE 安裝 Cumulus Linux 最簡單的方法是透過本機 HTTP 發現。

註 如果您的主機支援 IPv6,請確保它正在執行 Web 伺服器。如果您的主機支援 IPv4,請確保除了 Web 伺服器之外,它還執行 DHCP 服務。

本過程示範了管理員在 ONIE 啟動後如何升級 Cumulus Linux。

步驟
  1. 將 Cumulus Linux 安裝檔下載到 Web 伺服器的根目錄。重新命名此文件 onie-installer

  2. 使用乙太網路線將主機連接到交換器的管理乙太網路連接埠。

  3. 打開開關電源。交換器下載 ONIE 鏡像安裝程式並啟動。安裝完成後,終端機視窗中會出現 Cumulus Linux 登入提示字元。

    註 每次安裝 Cumulus Linux 時,整個檔案系統結構都會被擦除並重建。
  4. 重啟SN2100交換器:

    cumulus@cumulus:mgmt:~$ sudo reboot
  5. 在 GNU GRUB 畫面上按 Esc 鍵中斷正常的啟動過程,選擇 ONIE 並按 Enter 鍵。

  6. 在顯示的下一個畫面上,選擇 ONIE:安裝作業系統

  7. ONIE 安裝程式發現程序會執行以搜尋自動安裝程式。按 Enter 鍵暫時停止該行程。

  8. 當發現過程停止時:

    ONIE:/ # onie-stop
    discover: installer mode detected.
    Stopping: discover...start-stop-daemon: warning: killing process 427:
    No such process done.
  9. 如果您的網路正在執行 DHCP 服務,請驗證 IP 位址、子網路遮罩和預設閘道是否已正確指派:

    ifconfig eth0

    顯示範例
    ONIE:/ # ifconfig eth0
    eth0   Link encap:Ethernet  HWaddr B8:CE:F6:19:1D:F6
           inet addr:10.233.204.71  Bcast:10.233.205.255  Mask:255.255.254.0
           inet6 addr: fe80::bace:f6ff:fe19:1df6/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:21344 errors:0 dropped:2135 overruns:0 frame:0
           TX packets:3500 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:6119398 (5.8 MiB)  TX bytes:472975 (461.8 KiB)
           Memory:dfc00000-dfc1ffff
    
    ONIE:/ # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    
    default         10.233.204.1    0.0.0.0         UG    0      0      0   eth0
    10.233.204.0    *               255.255.254.0   U     0      0      0   eth0
  10. 如果 IP 位址方案是手動定義的,請執行下列操作:

    ONIE:/ # ifconfig eth0 10.233.204.71 netmask 255.255.254.0
    ONIE:/ # route add default gw 10.233.204.1
  11. 重複步驟 9 以驗證靜態資訊是否已正確輸入。

  12. 安裝 Cumulus Linux:

    ONIE:/ # route
    
      Kernel IP routing table
    
      ONIE:/ # onie-nos-install http://<web-server>/<path>/cumulus-linux-4.4.3-mlx-amd64.bin
    
      Stopping: discover... done.
      Info: Attempting http://10.60.132.97/x/eng/testbedN,svl/nic/files/cumulus-linux-4.4.3-mlx-amd64.bin ...
      Connecting to 10.60.132.97 (10.60.132.97:80)
      installer            100% |*|   552M  0:00:00 ETA
      ...
      ...
  13. 安裝完成後,登入交換器:

    顯示範例
    cumulus login: cumulus
    Password: cumulus
    You are required to change your password immediately (administrator enforced)
    Changing password for cumulus.
    Current password: cumulus
    New password: <new_password>
    Retype new password: <new_password>
  14. 請驗證 Cumulus Linux 版本:

    net show version

    顯示範例
    cumulus@cumulus:mgmt:~$ net show version
    NCLU_VERSION=1.0-cl4.4.3u4
    DISTRIB_ID="Cumulus Linux"
    DISTRIB_RELEASE=4.4.3
    DISTRIB_DESCRIPTION="Cumulus Linux 4.4.3”
下一步是什麼?

在 ONIE 模式下安裝 Cumulus Linux 後,您可以…"安裝或升級 RCF 腳本"