VirtualBox Configure a Static IP on CentOS 7
Our OS, Software and Version
Download Windows hosts: htps //w w.ゃぃr 짠 l보 x. 오 rg / uuki / Dow wu a ds
Download: ぢ tp : /// 음 ct. 전혀 s. rg/전과 s/7/이소 s/x86_64/전과 S-7-x86_64-미니마l-1810. 이소
Let's see how to setup Static IP on CentOS with Oracle VM VirtualBox.
Step 1: Before Creating a New Virtual Machine
Before we start, we need to check the 'DHCP Server' is enabled or not for 'VirtualBox Host-Only Ethernet Adapter'. If it is not available, you can create it. Select Network via Tools (Three Line Menu). Now you can see 'VirtualBox Host-Only Ethernet Adapter' Properties. (If it is not available, you can create it.) See (or check) the Adapter and DHCP Server settings as given in the following picture. Make a note of Lower Address Bound and Upper Address Bound values.
Step 2: Create Virtual Machine
Please follow the steps as per the images.
Important: Before first-start, please enable the Network Adapter 2 - Attached to 'Host-only Adapter and Select the Name 'VirualBox Host-Only Ethernet Adapter' (see Image 7)
Step 3: Start Virtual Machine
Please follow the steps as per the images.
Important: Before first-start, please enable the Network Adapter 2 - Attached to 'Host-only Adapter and Select the Name 'VirualBox Host-Only Ethernet Adapter' (see Image 7)
Step 3: Start Virtual Machine
Choose default and click on Continue.
Step 4: Configure a Static IP on CentOS
vi/etc/sysconfig/network-scripts/ifcfg-enp0s3
ONBOOT=yes
USERCTL=no
vi/etc/sysconfig/network-scripts/ifcfg-enp0s8
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.56.141
PREFIX=24
systemctl restart network
Microsoft Windows [Version 10.0.17763.253]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\Users\tutorial>ping 192.168.56.141
Pinging 192.168.56.141 with 32 bytes of data:
Reply from 192.168.56.141: bytes=32 time=1ms TTL=64
Reply from 192.168.56.141: bytes=32 time<1ms TTL=64
Reply from 192.168.56.141: bytes=32 time=1ms TTL=64
Reply from 192.168.56.141: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.56.141:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Bonus Tip
systemctl stop firewalld.service && systemctl disable firewalld.service
vi/etc/sysconfig/selinux
# SELINUX=permissive
SELINUX=disabled
Happy Coding!
My Facebook Page - Python Machine Learning
Reference
이 문제에 관하여(VirtualBox Configure a Static IP on CentOS 7), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/tutorial/items/5ab1ec4ba55396b089f8텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)