Log onto the VM through the VirtualBox console which will be shown when the VM has started.
The username is root and the password is oracle
1. When logged onto the desktop, right click and click on "Open Terminal" to bring up the terminal.
2. In the terminal edit /etc/sysconfig/network
...
No Format |
---|
NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=source |
3. Edit /etc/hosts and add the following two hosts entries
No Format |
---|
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 10.1.1.10 source-int source dbv01 10.1.1.11 target-int target dbv02 |
4. Set the network address for eth1
...
No Format |
---|
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] DEVICE=eth1 BOOTPROTO=none ONBOOT=yes HWADDR=08:00:27:19:c2:f8 IPADDR=10.1.1.10 NETMASK=255.255.255.0 |
5. Restart the network interface
No Format |
---|
[root@source network-scripts]# /etc/init.d/network restart Shutting down interface eth0: [ OK ] Shutting down interface eth1: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Determining IP information for eth0... done. [ OK ] Bringing up interface eth1: |
6. View the network interface
...
- eth0 which is a DHCP address so that a connection can be made from the host computer (your laptop). In this case the IP is 10.0.0.20. Example, to connect to the local VM use: ssh root@10.0.0.20
- eth1 which is a fixed IP address. This is used to connect between the source and target servers. This IP is 10.1.1.10
7. scp (secure copy) does not work because there is display output in ~oracle/.bashrc and ~oracle/.bash_profile.To To fix this:
a. Edit .bashrc in the home directory of oracle
...