728x90
반응형
도커, 쿠버네티스, doker, kubernetes, ubuntu, 우분투, 버추얼박스, virualbox, 가상머신, 환경 설정, 네트워크
728x90
🟥 가상머신 네트워크 환경 설정
도구를 선택 하면 옆에 메뉴 칸이 뜹니다.
메뉴 → 네트워크 선택
속성에서 NAT 네트워크 태그에 들어가 우 클릭 시 만들기(C)... 가 나옵니다. 클릭합니다.
생성된 화면에서 DHCP 활성화가 선택된 것을 확인합니다.
왼쪽에서 서버를 선택 후 설정을 클릭합니다.
설정 → 네트워크 → 어댑터1 → NAT 네트워크 → NatNetwork 선택 → 확인
서버를 클릭 후 시작을 눌러줍니다.
실행 후 'ifconfig'를 통해 IP주소를 확인합니다.
※ 이때 나오는 IP는 환경에 따라 다르게 나올 수 있습니다.
서버를 종료하지 않은 채 그대로 두어 다시 VM 관리자 페이지로 돌아가겠습니다.
- 도구를 선택 후
- NAT 네트워크 태그 선택
- NewNetwork 포트 포워딩 선택
- 옆에 생성 아이콘 클릭
- 호스트 포트, 게스트 포트 22로 설정
- 게스트 IP는 확인한 IP로 설정합니다.
포트포워딩
127.0.0.1 주소의 22번 포트로 접근 요청이 오면, 127.0.0.1의 22번 포트는 이 요청을 10.0.2.4의 22번 포트로 연결합니다.
이와 같은 개념을 포트포워딩(Port Forwarding)이라고 합니다.
다음 포스트에서 Putty를 이용하여 가상 서버에 접속을 하도록하겠습니다.
728x90
반응형
'Doker & Kubernetes' 카테고리의 다른 글
[Doker & Kubernetes] 환경 구축하기, 다운로드 (0) | 2024.09.05 |
---|