Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Log onto the second VM (dbv02) 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

and change to:

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=target

3. Set the network address for eth1

cd /etc/sysconfig/network-scripts
vi ifcfg-eth1

Change the settings to the following

# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:00:27:19:c2:f8
IPADDR=10.1.1.11
NETMASK=255.255.255.0

4. Restart the network interface

[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:

5. View the network interface

[root@source network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:BF:36:00  
          inet addr:10.0.0.21  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febf:3600/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:118125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:682 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:31908626 (30.4 MiB)  TX bytes:76611 (74.8 KiB)
          Interrupt:10 Base address:0xd020 
eth1      Link encap:Ethernet  HWaddr 08:00:27:19:C2:F8  
          inet addr:10.1.1.11  Bcast:10.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe19:c2f8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:23113 (22.5 KiB)
          Interrupt:9 Base address:0xd060 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:35521 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35521 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7421628 (7.0 MiB)  TX bytes:7421628 (7.0 MiB)

There are 2 network interfaces:

a) 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.21

b) eth1 which is a fixed IP address. This is used to connect between the source and target servers. This IP is 10.1.1.11

6. Start the first VM (dbv01) again by clicking on Start

 

 

  • No labels