LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2017, 12:06 AM   #1
edentonjr
LQ Newbie
 
Registered: Apr 2009
Posts: 17

Rep: Reputation: 0
Configuring VM static ipaddress


I created 2 virtual machines via Oracle VirtualBox using the same Centos7 .ISO DVD for both machines. The default ip address is 10.0.2.15, I want to assign different static ip addresses on both machines. Please advise; what changes do I need to make to my
/etc/sysconfig/network-scripts/ifcfg-enp0s3

see attachment
Attached Thumbnails
Click image for larger version

Name:	Network.JPG
Views:	18
Size:	42.6 KB
ID:	24057  
 
Old 01-27-2017, 09:16 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,225

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
You shouldn't have to change anything. They're set for DHCP and VB will assign a different MAC for each NIC.
 
Old 01-27-2017, 10:23 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,347

Rep: Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146Reputation: 6146
What are you trying to accomplish?

I assume both machines ethernet adapters were configured as NAT. So each VM adapter when using DHCP will be assigned a 10.0.x.15 address. If you want the VMs to communicate with each other you might want to use a host only, internal network or use bridge networking.

https://www.virtualbox.org/manual/ch06.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Configuring Static IP qcoder Debian 4 09-14-2010 07:16 AM
I set an static ipaddress on network-scripts but dinamic ip shows on ifconfig slgonzalezr Linux - Networking 7 01-27-2010 03:37 PM
Configuring static ip Niranjang Linux - Newbie 3 11-07-2008 05:50 AM
Configuring Linux for static ip saravanan1979 Linux - Networking 2 02-23-2006 08:00 PM
Configuring Static IP nasrudin Linux - Networking 16 01-12-2005 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration