Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.10.1.102.4       source-int source dbv01
10.10.1.112.5       target-int target dbv02

 

4. Set the network address for eth1eth0

No Format
cd /etc/sysconfig/network-scripts
No Format
vi ifcfg-eth1eth0

Change the settings to the following (do NOT change the HWADDR)

No Format
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:00:27:1918:c2:f8b5:af
BOOTPROTO=none
IPADDR=10.10.12.104
NETMASK=255.255.255.0
GATEWAY=10.0.2.1
NETWORK=10.0.2.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

No Format
[root@source network-scripts]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:00:27:BF18:36B5:00AF  
          inet addr:10.0.02.204  Bcast:10.0.02.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febffe18:3600b5af/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:118125241 errors:0 dropped:0 overruns:0 frame:0
          TX packets:682330 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3190862621781 (3021.42 MiBKiB)  TX bytes:7661147325 (7446.82 KiB)
          Interrupt:10 Base address:0xd020 
eth1      Link encap:Ethernet  HWaddr 08:00:27:19:C2:F8  
          inet addr:10.1.1.10  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:355213670 errors:0 dropped:0 overruns:0 frame:0
          TX packets:355213670 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:74216284306552 (74.01 MiB)  TX bytes:74216284306552 (74.01 MiB)

There are 2 is only one network interfaces:

...

  • eth1 which is a fixed IP address. This is used to connect between the source and target servers and also to the Internet. This IP is 10.0.

...

  • 2.

...

  • 4.

...

7. scp (secure copy) does not work because there is display output in ~oracle/.bashrc and ~oracle/.bash_profile. To fix this:

...