...
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 |
---|
[root@localhost ~]# vi /etc/sysconfig/network |
...
No Format |
---|
NETWORKING=yes HOSTNAME=target |
...
3. Right click on the Network Manager icon on the top right hand corner, and click on "Edit Connections..."
...
8. View the network interface
No Format |
---|
# ifconfig
eth2 Link encap:Ethernet HWaddr 08:00:27:C8:DC:F6
inet addr:10.0.2.5 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec8:dcf6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:169357 errors:0 dropped:0 overruns:0 frame:0
TX packets:120225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:252571529 (240.8 MiB) TX bytes:7239616 (6.9 MiB)
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:65536 Metric:1
RX packets:340 errors:0 dropped:0 overruns:0 frame:0
TX packets:340 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22444 (21.9 KiB) TX bytes:22444 (21.9 KiB) |
There is only one network interface:
- eth1 eth2 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 -rh now |
11. Start the first VM (dbv01) again by clicking on "Start".
...
12. Start the second VM (dbv02) by clicking on "Start".
13. Both VMs should now be running with the correct hostnames (source and target).