Skip to main content
Cluster and storage switches
본 한국어 번역은 사용자 편의를 위해 제공되는 기계 번역입니다. 영어 버전과 한국어 버전이 서로 어긋나는 경우에는 언제나 영어 버전이 우선합니다.

ONIE 모드에서 Cumulus Linux를 설치합니다

기여자

스위치가 ONIE 모드에서 실행 중일 때 Cumulus Linux(CL) OS를 설치하려면 다음 절차를 따르십시오.

참고 스위치가 ONIE 또는 Cumulus Linux를 실행 중일 때 Cumulus Linux(CL) OS를 설치할 수 있습니다(참조) "Cumulus 모드로 설치합니다")를 클릭합니다.
이 작업에 대해

네트워크 설치 프로그램 이미지를 자동으로 검색할 수 있도록 ONIE(Open Network Install Environment)를 사용하여 Cumulus Linux를 설치할 수 있습니다. 이를 통해 Cumulus Linux와 같은 운영 체제 선택을 하는 스위치 보안 모델의 시스템 모델을 용이하게 할 수 있습니다. ONIE를 사용하여 Cumulus Linux를 설치하는 가장 쉬운 방법은 로컬 HTTP 검색을 사용하는 것입니다.

참고 호스트가 IPv6를 사용하는 경우 웹 서버가 실행되고 있는지 확인합니다. 호스트가 IPv4를 사용하는 경우 웹 서버 외에 DHCP를 실행 중인지 확인합니다.

이 절차에서는 ONIE에서 관리자가 부팅된 후 Cumulus Linux를 업그레이드하는 방법을 보여 줍니다.

예 1. 단계
Cumulus Linux 4.4.3
  1. 웹 서버의 루트 디렉터리에 Cumulus Linux 설치 파일을 다운로드합니다. 이 파일 이름 바꾸기: onie-installer.

  2. 이더넷 케이블을 사용하여 호스트를 스위치의 관리 이더넷 포트에 연결합니다.

  3. 스위치의 전원을 켭니다.

    스위치가 ONIE 이미지 설치 프로그램을 다운로드하고 부팅합니다. 설치가 완료되면 터미널 창에 Cumulus Linux 로그인 프롬프트가 나타납니다.

    참고 Cumulus Linux를 설치할 때마다 전체 파일 시스템 구조가 지워지고 다시 구축됩니다.
  4. SN2100 스위치를 재부팅합니다.

    cumulus@cumulus:mgmt:~$ sudo reboot
  5. GNU GRUB 화면에서 * Esc * 키를 눌러 일반 부팅 프로세스를 중단하고 * ONIE * 를 선택한 다음 * Enter * 를 누릅니다.

  6. 다음 화면에서 * ONIE:OS 설치 * 를 선택합니다.

  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-nos-install http://<web-server>/<path>/cumulus-linux-4.4.3-mlx-amd64.bin
    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”
Cumulus Linux 5.x를 의미합니다
  1. 웹 서버의 루트 디렉터리에 Cumulus Linux 설치 파일을 다운로드합니다. 이 파일 이름 바꾸기: onie-installer.

  2. 이더넷 케이블을 사용하여 호스트를 스위치의 관리 이더넷 포트에 연결합니다.

  3. 스위치의 전원을 켭니다.

    스위치가 ONIE 이미지 설치 프로그램을 다운로드하고 부팅합니다. 설치가 완료되면 터미널 창에 Cumulus Linux 로그인 프롬프트가 나타납니다.

    참고 Cumulus Linux를 설치할 때마다 전체 파일 시스템 구조가 지워지고 다시 구축됩니다.
  4. SN2100 스위치를 재부팅합니다.

    cumulus@cumulus:mgmt:~$ sudo reboot
    .
    .
    GNU GRUB version 2.06-3
    +-------------------------------------------------------------------------+
    | Cumulus-Linux GNU/Linux                                                 |
    | Advanced options for Cumulus-Linux GNU/Linux                            |
    | ONIE                                                                    |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    +-------------------------------------------------------------------------+
  5. GNU GRUB 화면에서 Esc 키를 눌러 일반 부팅 프로세스를 중단하고 ONIE를 선택한 다음 Enter 키를 누릅니다.

    .
    .
    Loading ONIE ...
    
    GNU GRUB version 2.02
    +-------------------------------------------------------------------------+
    | ONIE: Install OS                                                        |
    | ONIE: Rescue                                                            |
    | ONIE: Uninstall OS                                                      |
    | ONIE: Update ONIE                                                       |
    | ONIE: Embed ONIE                                                        |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    |                                                                         |
    +-------------------------------------------------------------------------+

    ONIE: * OS 설치 * 를 선택합니다

  6. ONIE 설치 관리자 검색 프로세스가 자동 설치 검색을 실행합니다. Enter * 를 눌러 프로세스를 일시적으로 중지합니다.

  7. 검색 프로세스가 중지된 경우:

    ONIE:/ # onie-stop
    discover: installer mode detected.
    Stopping: discover...start-stop-daemon: warning: killing process 427:
    No such process done.
  8. 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:/ #
    ONIE:/ # ifconfig eth0 10.228.140.27 netmask 255.255.248.0
    ONIE:/ # ifconfig eth0
    eth0   Link encap:Ethernet HWaddr B8:CE:F6:5E:05:E6
           inet addr:10.228.140.27 Bcast:10.228.143.255 Mask:255.255.248.0
           inet6 addr: fd20:8b1e:b255:822b:bace:f6ff:fe5e:5e6/64 Scope:Global
           inet6 addr: fe80::bace:f6ff:fe5e:5e6/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
           RX packets:18813 errors:0 dropped:1418 overruns:0 frame:0
           TX packets:491 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:1339596 (1.2 MiB) TX bytes:49379 (48.2 KiB)
           Memory:dfc00000-dfc1ffff
    ONIE:/ # route add default gw 10.228.136.1
    ONIE:/ # route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    
    default         10.228.136.1    0.0.0.0         UG    0      0      0   eth0
    10.228.136.1    *               255.255.248.0   U     0      0      0   eth0
  9. Cumulus Linux 5.4 설치:

    ONIE:/ # route
    
      Kernel IP routing table
    
      ONIE:/ # onie-nos-install http://<web-server>/<path>/cumulus-linux-5.4-mlx-amd64.bin
    
      Stopping: discover... done.
      Info: Attempting http://10.60.132.97/x/eng/testbedN,svl/nic/files/cumulus-linux-5.4-mlx-amd64.bin ...
      Connecting to 10.60.132.97 (10.60.132.97:80)
      installer            100% |*|   552M  0:00:00 ETA
      ...
      ...
  10. 설치가 완료되면 스위치에 로그인합니다.

    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>
  11. Cumulus Linux 버전 확인: nv show system

    cumulus@cumulus:mgmt:~$ nv show system
    operational         applied              description
    ------------------- -------------------- ---------------------
    hostname            cumulus              cumulus
    build               Cumulus Linux 5.4.0  system build version
    uptime              6 days, 13:37:36     system uptime
    timezone            Etc/UTC              system time zone
  12. 새 사용자를 만들고 이 사용자를 에 추가합니다 sudo 그룹. 이 사용자는 콘솔/SSH 세션을 다시 시작한 후에만 유효합니다.

    sudo adduser --ingroup netedit admin

    cumulus@sw1:mgmt:~$ sudo adduser --ingroup netedit admin
    [sudo] password for cumulus:
    Adding user 'admin' ...
    Adding new user 'admin' (1001) with group `netedit' ...
    Creating home directory '/home/admin' ...
    Copying files from '/etc/skel' ...
    New password:
    Retype new password:
    passwd: password updated successfully
    Changing the user information for admin
    Enter the new value, or press ENTER for the default
    Full Name []:
    Room Number []:
    Work Phone []:
    Home Phone []:
    Other []:
    Is the information correct? [Y/n] y
    
    cumulus@sw1:mgmt:~$ sudo adduser admin sudo
    [sudo] password for cumulus:
    Adding user `admin' to group `sudo' ...
    Adding user admin to group sudo
    Done.
    cumulus@sw1:mgmt:~$ exit
    logout
    Connection to 10.233.204.71 closed.
    
    [admin@cycrh6svl01 ~]$ ssh admin@10.233.204.71
    admin@10.233.204.71's password:
    Linux sw1 4.19.0-cl-1-amd64 #1 SMP Cumulus 4.19.206-1+cl4.4.1u1 (2021-09-09) x86_64
    Welcome to NVIDIA Cumulus (R) Linux (R)
    
    For support and online technical documentation, visit
    http://www.cumulusnetworks.com/support
    
    The registered trademark Linux (R) is used pursuant to a sublicense from LMI, the exclusive licensee of Linus Torvalds, owner of the mark on a world-wide basis.
    admin@sw1:mgmt:~$
  13. 관리자 사용자가 액세스할 수 있도록 사용자 그룹을 추가합니다 nv 명령:

    cumulus@cumulus:mgmt:~$ sudo adduser admin nvshow
         [sudo] password for cumulus:
         Adding user `admin' to group `nvshow' ...
         Adding user admin to group nvshow
         Done.

    을 참조하십시오 "NVIDIA 사용자 계정" 를 참조하십시오.