새소식

반응형
IT/네트워크

Rocky 9 IP 바꾸기 + Virtual Box 네트워크 설정실습[1]

  • -
반응형

바로바꾸는 방법 보려면 맨아래로

 


실습환경 :

 

1. Oracle virtual box

https://www.virtualbox.org/wiki/Downloads

 

Downloads – Oracle VM VirtualBox

Download VirtualBox Here you will find links to VirtualBox binaries and its source code. VirtualBox binaries By downloading, you agree to the terms and conditions of the respective license. VirtualBox 7.0.18 platform packages The binaries are released unde

www.virtualbox.org

windows hosts 파일 다운로드

 

2. rocky linux iso minimal version

https://rockylinux.org/download

 

Download - Rocky Linux

Download Download the latest Rocky Linux versions here. Get Involved As you download and use Rocky Linux, the Rocky Enterprise Software Foundation invites you to be a part of the community as a contributor. There are many ways to contribute to the project,

rockylinux.org

 

머신 > 새로운 만들기

 

 

iso이미지 =>다운받은 iso minimal 이미지 선택

무인설치 건너뛰기 선택

2048MB, 1core

10GB

 

Rocky linux 설치과정

(VM1을 Nat network 설정)

 

어댑터 1은 default설정이 NAT 

파일 > 도구 > 네트워크 관리자 > NAT 네트워크 > 만들기

네트워크 어댑터 1: NATnetwork

 

 

 

vm 시작

english -> installation destination 

2번 클릭 > done

 

Root Password 설정 (ssh를 잡기위해서 필수 체크)

 

사용자계정을 admin으로 설정하기 위해서 체크

네트워크설정

 

(오타 address: 10.0.2.4, Gateway: 10.0.2.1)

>begin installation >reboot system

 


IP가 잘못들어간 경우 ip설정파일에 들어가서 수정가능

Rocky 9 IP 바꾸기

cd /etc/sysconfig/network-scripts

vi ifcfg-enp0s8                                           (ifconfig를 통해 나오는 NIC중 바꿀 NIC를 ifcfg-[바꿀NIC]파일로 만든다)

                                                                  (ifconfig가 안된다면 yum install -y net-tools로 다운)

 

 

 

*DEVICE 정보를 꼭 써줘야함

 

BOOTPROTO =none (dhcp를 사용안하겠다) , static으로 해도됨

reboot

 

*reboot대신에 쓰는 방법

networkmanager restart로 IP 변경이 안되서 link를 죽였다가 살려도 된다

ip link set enp0s8 down

ip link set enp0s8 up

 

 

 

반응형

'IT > 네트워크' 카테고리의 다른 글

packet tracer 기본 Routing 실습 [1]  (0) 2024.05.15
Non Stop Forwarding [NSF]  (0) 2024.04.03
internet shortcut shell extension dll 안열림 문제  (4) 2024.02.01
PPP 예제2  (0) 2024.01.15
PPP 예제 1  (0) 2024.01.15
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.