NetBox는 서버 네트워크를 관리하고 문서화하도록 설계된 오픈 소스 웹 어플리케이션입니다.
docker-compose 설치
sudo apt install docker-compose
우분투
sudo dnf install docker-compose
CentOS / Rocky Linux
netbox-docker repo 클론
git clone -b release <https://github.com/netbox-community/netbox-docker.git
>
포트 설정
cd netbox-docker
tee docker-compose.override.yml <<EOF
version: '3.4'
services:
netbox:
ports:
- [포트]:8080
EOF
Redis나 PostgresDB 등 필요 컨테이너 이미지 받아오기
docker-compose pull
Container 생성 및 Deploy
docker-compose up
[아이피:포트]
로 Netbox 접속
로그인 (기본 id : admin, pw : admin)
Organization → Sites → 생성
Racks → 생성
Device → Manufacturers 추가 (HPE
Dell
)
Device Types 추가
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
Device Type Import → 복사 후 Submit
생성 된 Device Type 에서 edit → 하단의 images에 서버 앞 후면 이미지 추가 (보통 visio에서 가져와서 적용)
Device Roles 추가
Devices → 추가
Organization → Racks → Elevations