...
3. Right click on the Network Manager icon on the top right hand corner, and click on "Edit Connections..."
No Format |
---|
vi ifcfg-eth1 |
Change the settings to the following (do NOT change the HWADDR)
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.11
NETMASK=255.255.255.0 |
4. 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: |
54. This brings up the Network connections.
5. Select "Auto eth1" and select "Delete...". This interface is no longer required.
6. Select "Auto eth2" and click on "Edit...".
7. Select the "IPv4 Settings" tab. Set the Method to "Manual" and add following details (click on "Add" to add the details):
Address: 10.0.2.5
Netmask: 24
Gateway: 10.0.2.1
DNS Servers: 8.8.8.8
Then click on Apply
8. View the network interface
No Format |
---|
[root@source network-scripts]# ifconfig eth0eth2 Link encap:Ethernet HWaddr 08:00:27:BFC8:36DC:00F6 inet addr:10.0.02.215 Bcast:10.0.02.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:febffec8:3600dcf6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:118125169357 errors:0 dropped:0 overruns:0 frame:0 TX packets:682120225 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31908626252571529 (30240.48 MiB) TX bytes:766117239616 (746.89 KiBMiB) Interrupt:10 Base address:0xd020lo eth1 Link encap:Ethernet HWaddr 08:00:27:19:C2:F8Local Loopback inet addr:10127.1.1.11 Bcast:10.1.1.2550.0.1 Mask:255.2550.2550.0 inet6 addr: fe80::a00:27ff:fe19:c2f8/641/128 Scope:LinkHost UP BROADCASTLOOPBACK RUNNING MULTICAST MTU:150065536 Metric:1 RX packets:0340 errors:0 dropped:0 overruns:0 frame:0 TX packets:120340 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10000 RX bytes:022444 (021.09 bKiB) TX bytes:2311322444 (2221.59 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. Restart the VM (dbv02)
No Format |
---|
shutdown -r now |
...
There is only one network interface:
- 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.5.
9. Test if the network connection is working. Use Control-C to stop the ping.
No Format |
---|
# ping www.dbvisit.com
PING dbvisit.com (67.222.54.241) 56(84) bytes of data.
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=1 ttl=47 time=190 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=2 ttl=47 time=189 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=3 ttl=47 time=192 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=4 ttl=47 time=193 ms
^C |
10. Shutdown the VM (dbv02).
No Format |
---|
# shutdown -r now |
11. Start the first VM (dbv01) again by clicking on "Start
".
12. Start the second VM (dbv02) by clicking on "Start".