Step 1: Public IP Setup
We can use neat command as root user to set an IP address.
Check the section - 'Using neat command to change the IP address' in Clone a Virtual Box Node
I have set the following IP's
Node1 Public IP: 192.168.10.100
Node2 Public IP: 192.168.10.101
Host Operating System IP: 192.168.10.78
To be able to ping to these IP Addresses from you host Operating System, then both the host IP address and Virtual box Nodes IP addresses should be on the same subnet
If you cannot ping to VB Nodes from your Host OS then it is probably due to the Host IP address using different Subnet, in such cases you can change the Host OS IP address as below
1. Right Click on the network icon on Windows Explorer and select 'Open Network and Sharing Center'
2. Click on 'Change adapter settings'
3. Right Click on the Network Connecting in Use and click on properties
4. Click on Internet Protocol Version 4 ( TCP/IPv4) and click on properties
5. Click on the radio button use the following IP addresses
6. Enter the IP address ( 192.168.10.78 ) and press tab, Subnet mask will be populated automatically
7. Click on OK
If you are connected to internet through this adpater then internet will be disconnected
Secondly, Bridge the Virtual Box Nodes adapter to your Host OS Network adapter. Follow the below Steps to do this.
1. Stop both the nodes
2. Select node1 and click on settings
3. Click on Network
4. In the attached to drop down list, select "Bridged Adapter"
5. In the Name drop down list, select the name of your host computers network adapter
6. Leave the remaining fields with their default values and click on OK.
7. Do the same steps for Node2
Step 2: Private IP Setup
We need to configure another network adapter in both the nodes, which is a dedicated network for internode communication
1. Stop both the nodes
2. Right click on node 1 and click on settings
3. Click on network section
4. Click on Adapter two tab and select the check box 'Enable network adapter'
5. In the attached to drop down list select 'internal network'
6. In the Name filed intnet should be automatically be filled
7. Leave the remaining fields with their default values and click on ok
8. Do the same steps for Node 2.
Now start both the nodes, a new network interface usually eth1 will be added.
Use the command ifconfig eth1 to check the status of new network interface
To change the IP address of eth1, as root user type neat command and select the eth1 interface and click on edit
Select the "Statically set IP address" radio button and set the desired address and subnet mask.
Ensure that the "Activate Device When Computer Starts" Check Box is selected.
Click on ok and restarted the network services using the command service network restart
Now Check the status of the eth1, ifconfig eth1, it should show the new ip address and subnet mask
Do the same steps for node2 too.
Ensure that the subnet mask is same for private interfaces on both the nodes, also it is preferable to have private interface subnet different from that of public interface subnet. So I have set My public interface (eth1) subnet as 255.255.255.0 and private interface (eth1) subnet as 255.255.0.0
Just Check if you are able to ping to public and private IP's of all nodes from all the nodes
Step 3: Virtual IP Setup
1. Login as root user and type neat command to crate a virtual IP running on Public interface
2. Click on public interface eth0 and click on copy.
3. Click on eth0-copy and click on edit
4. Set the device nick name as eth0:0
5. Make sure that "Activate device when the Parent device starts" checkbox is checked
6. Select the radio button "Statically set IP Address"
7. Enter an IP address (EX: 192.168.10.200)
Ensure that the Virutal IP address and Public IP address are on same subnet.
8. Enter the subnet mask, same as that of public network interface
9. Click on Hardware device tab,
- Uncheck Bind to MAC address check box
- Select the check box Device alias number and enter 0
10. Click on ok and restart the network services using the command, service network restart
Select the network interface eth0:0 and click on activate
Follow the same steps on Node 2
We will configure SCAN IP's in a DNS Server. Click here for DNS setup setups
..........................................................................................Page under construction.