netbox란

NetBox는 서버 네트워크를 관리하고 문서화하도록 설계된 오픈 소스 웹 어플리케이션입니다.

설치

  1. docker-compose 설치 sudo apt install docker-compose 우분투 sudo dnf install docker-compose CentOS / Rocky Linux

  2. netbox-docker repo 클론 git clone -b release <https://github.com/netbox-community/netbox-docker.git>

  3. 포트 설정 cd netbox-docker

    tee docker-compose.override.yml <<EOF
    version: '3.4'
    services:
      netbox:
        ports:
          - [포트]:8080
    EOF
    
  4. Redis나 PostgresDB 등 필요 컨테이너 이미지 받아오기 docker-compose pull

  5. Container 생성 및 Deploy docker-compose up

  6. [아이피:포트] 로 Netbox 접속

    Untitled

  7. 로그인 (기본 id : admin, pw : admin)

    Untitled

    Quick Setting

    1. Organization → Sites → 생성

      Untitled

    2. Racks → 생성

      Untitled

    3. Device → Manufacturers 추가 (HPE Dell)

    4. Device Types 추가

      1. https://github.com/netbox-community/devicetype-library 에서 가져 올 DeviceType 복사 (없으면 자작)

        ---
        manufacturer: HPE
        model: ProLiant DL360 Gen10
        slug: hpe_dl360_gen10
        u_height: 1
        is_full_depth: true
        console-ports:
          - name: Serial
            type: de-9
          - name: VGA
            type: other
        module-bays:
          - name: PSU1
            position: PSU1
          - name: PSU2
            position: PSU1
          - name: FlexLOM
            position: FlexLOM
          - name: PCIe1
            position: PCIe1
          - name: PCIe2
            position: PCIe2
          - name: PCIe3
            position: PCIe3
        interfaces:
          - name: Gig-E 1
            type: 1000base-t
            mgmt_only: false
          - name: Gig-E 2
            type: 1000base-t
            mgmt_only: false
          - name: Gig-E 3
            type: 1000base-t
            mgmt_only: false
          - name: Gig-E 4
            type: 1000base-t
            mgmt_only: false
          - name: iLO
            type: 1000base-t
            mgmt_only: true
        
      2. Device Type Import → 복사 후 Submit

        Untitled

      3. 생성 된 Device Type 에서 edit → 하단의 images에 서버 앞 후면 이미지 추가 (보통 visio에서 가져와서 적용)

    5. Device Roles 추가

      Untitled

    6. Devices → 추가

      Untitled

      Untitled

    7. Organization → Racks → Elevations

      Untitled