Network setup for Oracle Enterprise Linux 6.5 on Oracle VirtualBox
Oracle Corporation provides the ability for developers to create a complete development suite on their personal windows desktop or laptop without requiring the expensive equipment required for a true production system. This article outlines the process for configuration network for an Oracle Enterprise Linux 6.5 installation on Oracle VirtualBox in preparation for installation of Oracle 12c RDBMS.
NOTE: This process can be used for most Linux installations, regardless of original company or organization providing the base Linux OS.
1. Logon to your Windows desktop/laptop as an administrator, open a command prompt and execute the command IPCONFIG to gather current IP configuration for your host system.
C:\ >ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : C3CEN.Net
Link-local IPv6 Address . . . . . : fe80::b9b2:d070:d80f:82d1%11
IPv4 Address. . . . . . . . . . . : 10.30.15.90
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.30.15.1
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::bdca:1b67:c60c:7b1%19
IPv4 Address. . . . . . . . . . . : 10.30.15.127
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.30.15.1
C:\ >
NOTE: The following information:
HOST IP 10.30.15.90
Host Subnet 255.255.255.0
Gateway 10.30.15.1
Guest IP 10.30.15.127
Guest Subnet 255.s255.255.0
2. Open Oracle VirtualBox, from the main top menu of VirtualBox and Select File ? Preferences…
3. On the Left panel menu select Network and in the right hand panel Host-only Network.
4. Click the PLUS sign symbol to the right of the right hand panel to create a new Host-adaptor.
5. Once the new Adapter is created highlite it and select the screwdriver edit icon on the right hand side.
6. Select the enter a new IP address for your adapter and network mask under the Adapter tab, do not feel anything out under the DHCP Server tap and press OK and press OK at the original Network configuration screen.
7. On your host machine, open another command prompt and execute the “IPCONFIG” command to see your new adapter does exist.
C:\ >ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : C3CEN.Net
Link-local IPv6 Address . . . . . : fe80::b9b2:d070:d80f:82d1%11
IPv4 Address. . . . . . . . . . . : 10.30.15.93
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.30.15.1
Ethernet adapter VirtualBox Host-Only Network:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::bdca:1b67:c60c:7b1%19
IPv4 Address. . . . . . . . . . . : 10.30.15.127
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.30.15.1
Ethernet adapter VirtualBox Host-Only Network #2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::c82c:7a2f:242c:fcfb%35
IPv4 Address. . . . . . . . . . . : 192.168.130.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
C:\ >
8. High light guest OS you created in Part 3 of this serious and select Settings tag from tool bar ? Network from left panel ? check the Enable Network Adapter ? Select Host-only Adapter and ensure the Adapter you just selected is in the Name: field from drop down button then press the OK button.
?
9. High light guest OS you created in Part 3 of this serious and select Settings tag from tool bar ? Network from left panel ? select Adapter 2 Tab ?check the Enable Network Adapter ? Select Internal Network from drop down button and ensure Promiscuous Mode is set to Allow All then press the OK button.
?
10. High light guest OS you created in Part 3 of this serious and select Settings tag from tool bar ? Network from left panel ? select Adapter 3 Tab ?check the Enable Network Adapter ? Select Bridge Adapter from drop down button with the name of the physical device and ensure Promiscuous Mode is set to Allow All then press the OK button.
?
11. Double click on the guest OS you created in Part 3 of this serious in the left hand panel of VirtualBox. In this instruction set the name is OEL_65.
12. Once the Oracle Linux Server prompt appear below logon as the user root with the password used during installation in Part 4 of this serious. NOTE: In this series, we installed a base Linux Server without desktop support. If your installation has desktop support, just open a terminal screen to perform the rest of this procedure.
login as: root
root@10.30.15.127’s password:
Last login: Sat Jan 4 15:24:18 2015
[root@oel65 ~]#
13. Open the file /etc/hosts and add the host IP and hostname you wish to use.
[root@oel65 ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.130.1 oel65
14. As the root user navigate to the directory /etc/sysconfig/network-scripts and use VI editor to adjust the file ifcfg-eth0. Ensure that the ONBOOT is set to YES and
[root@oel65 ~]# cd /etc/sysconfig/network-scripts/
[root@oel65 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=08:00:27:A2:02:20
IPADDR=10.30.15.127
PREFIX=24
GATEWAY=10.30.15.1
DNS1=10.10.15.21
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=”System eth0″
NETMASK=255.255.255.0
USERCTL=no
[root@oel65 network-scripts]#
15. Restart the network services with command “service network restart”
[root@oel65 network-scripts]# service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Determining if ip address 10.30.15.127 is already in use for device eth0…
[ OK ]
[root@oel65 network-scripts]#
16. Test your network connection to and from an outside machine with ping command:
17. This completes the setup of the VM network.
Larry Catt, OCP