Affichage des articles dont le libellé est CentOS. Afficher tous les articles
Affichage des articles dont le libellé est CentOS. Afficher tous les articles

How to set static IP address in CentOS using graphical user interface (GUI)


   In this post, I'm going to share on how to set static IP address in CentOS using graphical user interface (GUI)


Steps

1) Open the networking panel by clicking network setting.



2) Click "add profile" to add a new static IP address profile


3) Click "identity"  and give the connection a name .



4) Click "IPV4" and change the Addresses to "manual"


5) Key in your new network and static IP address setting then click "Add"


6) Make sure the new connection is connected.


7) Check the new static connection from the terminal





~ lundi 29 juin 2015 0 commentaires

How to set and run Bridge Virtual Network on CentOS,Kali Linux, Windows in VirtualBox. Practical example .


Bridged Virtual Network in Virtualbox

    This post will cover practical example of how to run Bridged  Network on CentOS,Kali Linux and Windows in Virtualbox . It shows on how to set Virtualbox and check the Guest OS communication between each other.

  In a nutshell, Bridged Network Virtualbox settings  will allow  Guest Operating System (OS) run as a real computer in your home network. Once enabled, Guest OS can be accessed from Internet as a real computer machine. contrary to Network Address Translation (NAT) network setting, Bridged Network will get an IP address in a similar subnet with the host .These IP addresses is assigned  from the Wireless/Ethernet router.

   In Bridged Network,Virtualbox software intercepts data from the host physical network adapter and inject data into it. Virtualbox utilize the host network driver or also known as "net filter" to send and receive data from the adapter. The router sees Guest OS that connected in this way as a real computer connected via Ethernet cable or wireless connection.

Below is the environment that I use for this tutorial
  1. Ethernet/Wireless router
  2. Ubuntu ( Virtualbox Host )
  3. Kali Linux (Guest OS 1)
  4. CentOS (Guest OS 2)
  5. Windows(Guest OS 3)

 Virtualbox Bridged Network Diagram

  Below is the network topology in Virtualbox.Kali Linux, CentOS and Windows connection only happens virtually where there is no physical wiring between them.IP address will be assigned by Ethernet/Wireless Router. Make sure you enable DHCP function on your Ethernet/Wireless router.



 Since the IP address is assigned by the router, the IP address will be assigned differently for each user.


Bridged Virtualbox setting

1) Enable Bridged network setting in Virtualbox for Windows,Kali Linux and CentOS . Go to "Settings>Network"




Wlan1 is how the host connect to Internet


 2) Run all three Guest OS . Once all three Guest OS is up and running, check each Guest OS IP address and ping other Guest OS to make sure they can communicate .



 3) Check IP address for Windows,Kali Linux and CentOS .All the Guest OS will get it's IP address assign from  Ethernet/Wireless Router .

3.1) Windows  IP address is "192.168.0.9" . Ping Kali Linux and CentOS  respectively




3.2) Kali Linux IP address is "192.168.0.10" . Ping Windows and CentOS respectively.



3.2) CentOS IP address is "192.168.0.11" .Ping Kali Linux and CentOS respectively.


4) Try to browse internet from your Guest OS .


Conclusion

  1. Bridged network allow Guest OS connect to internet as a normal computer
  2. Bridged network IP address is assigned by Ethernet/Wireless router
  3. Guest OS able to communicate with each other .
For more information on this topic,please visit here


~ vendredi 26 juin 2015 0 commentaires

How to set and run NAT Virtual Network on CentOS,Kali Linux, Windows in VirtualBox. Practical example .


Network Address Translation (NAT) Virtual Network in Virtualbox

  This post will cover practical example of Network Address Translation (NAT) network settings in Virtualbox . NAT is the default network configuration for any guest operating system (OS) in Virtualbox, . This setting will allow virtual machine connect to internet and user can browse and use the machine as a normal computer.

 Virtualbox networking engine, will assign every guest OS with an IP address . Virtualbox networking engine treat each guest operating as a separate private network and they can't communicate with each other .In addition to that the  IP address assigned from Virtualbox Networking Engine is unreachable from outside (internet).

   A guest OS with NAT enabled will redirect it's data through a Virtualbox Networking Engine.Virtualbox will then maps the data using the host Wireless/Ethernet card and then will redirect to guest operating  system. In other words, virtual box networking engine will extract TCP/IP frames and will redirect  to each guest operating system.


Below is the environment that I use for this tutorial
  1. Ethernet/Wireless router
  2. Ubuntu ( Virtualbox Host )
  3. Kali Linux (Guest OS 1)
  4. CentOS (Guest OS 2)
  5. Windows(Guest OS 3)
Virtualbox NAT Network Diagram

  Below diagram shows NAT network topology in Virtualbox.Kali Linux, CentOS and Windows connection only happens virtually where there is no physical wiring between them . Each connected guest OS will get it's IP address assigned from Virtualbox networking engine .


 
NAT Virtualbox setting 
1) By default NAT setting is pre configured in Virtualbox ,You can view this setting under "Settings>Network"




  Because each guest OS will be on their own private network,you can use similar adapter settings for all three guest OS. These guest OS will get similar IP address because of this.




 2) Run Kali Linux, CentOS and Windows guest operating system


 3) All three guest operating system will get a similar IP address of  "10.0.2.15" .


Windows IP




CentOS IP


Kali Linux IP address
 As you can see in above example, virtualbox networking engine  treat all three guest OS as different entity all together running on their own private network. None of these guest OS are connected and they can't communicate with each other.


 Guest Operating System IP address with different adapter setting in Virtualbox.

  In this example ,I set different adapter setting to each guest OS and different IP address is assigned to each guest OS.

1) Adapter 2 to Kali Linux guest OS . Kali Linux gets  "10.0.3.15" IP address






2) Adapter 3 to CentOS guest OS .CentOS gets "10.0.4.15" IP address .






CentOS IP address


3) Adapter 4 to Windows guest OS.Windows gets "10.0.5.15" IP address .




Conclusion

  1. NAT configuration will allow guest OS connect to the internet and work as a normal computer
  2. Guest OS with NAT enable configuration are not connected with each other.
  3. Different adapter setting will give different IP address to connected guest OS respectively.
  4.  Guest OS is unreachable from Wide Area Network (WAN)


For more information on this topic,please visit here






~ samedi 20 juin 2015 0 commentaires

How to install CentOS in Ubuntu Virtualbox (step by step for dummies)


  
   In this tutorial I'm going to share on how to install CentOS in Ubuntu Virtualbox. Currently CentOS 7 is the latest version in the market. This tutorial can also be used for future reference  

Tutorial rundown 
1)Download latest CentOS
2)Setting CentOS desired parameter in Virtualbox
3)Install CentOS
4)Restart and run CentOS from hard drive.

let's  begin .

1) Download latest CentOS .

1.1) Download latest CentOS from the website.




 1.2) Move the file to the location where you want virtualbox to look for.
(I prefer to keep all my image file in one folder)




2) Setting CentOS desired parameter in Virtualbox

  2.1) Name the new  OS and  choose  "Redhat" as OS version.


  2.2) Set the memory size value for this Operating System.



   2.3) Create a virtual hard drive.



 2.4) Choose "VDI" as the hard drive file type.


2.5) Choose the file size .
 

 2.6) Set virtualbox to use the downloaded image file. Go to "Setting>system"  and look for the CentOS image file.
 





3) Install CentOS

  3.1) Run CentOS in the Virtualbox


  3.2) Since CentOS Live CD doesn't support guest os version in virtualbox, you will be prompted with warning message once you  are in CentOS environment . Basically, once you use mouse to click in the CentOS space, you wouldn't be able to use the mouse on your host system .To use mouse in the host, you need to press  "CTRL"  button on your right hand side. Please read the message for more info.


 3.3) Begin CentOS installation by clicking "Install to hard drive"



 3.3) Choose the language that you will use during the installation and click  "continue"


 3.4) Before you start with the installation, you can customize  Date,Keyboard, installation destination and network host name details .

  
3.4.1) Date and time setting


3.4.2) Keyboard setting



3.4.3) Installation destination and location


3.4.4) Hostname

Once you done playing around customizing installation details, click
 "Begin Installation"



3.5) During the installation process, you need to create  root password and you can also create a user.


3.5.1) Create root password for CentOS . 



3.5.2) Create a user and it's details



3.6) Once installation finish quit the panel .




4) Restart and run CentOS from hard drive.

4.1) Power off Live Cd Centos .
 


4.2) Make hard disk as the first boot device for CentOS in the virtualbox.
 Go to  "setting>system "  and drag hard disk as a first or second on the list.


4.3) Run CentOS from virtualbox. You will be using the newly installed CentOS .



Login with your newly created  user


Finally :)



~ mercredi 3 juin 2015 0 commentaires