Index: drbl-virt/sbin/functions_drbl_virt
===================================================================
--- drbl-virt/sbin/functions_drbl_virt	(revision 172)
+++ drbl-virt/sbin/functions_drbl_virt	(revision 178)
@@ -142,6 +142,40 @@
 done
 
+#echo "debug: Xen_Kernel=$Xen_Kernel"
+}
 
-#echo "debug: Xen_Kernel=$Xen_Kernel"
+
+function get_Host_IP_range(){
+cat /etc/drbl/IP_HOST_TABLE | sed "${Host_first_Line}p" 
+cat /etc/drbl/IP_HOST_TABLE | sed "${Host_final_Line}p"                    
+declare -i Host_first_Line=$(cat -n /etc/drbl/IP_HOST_TABLE  | grep "# Created by DRBL (drblpush), begin" | awk '{print $1}')
+Host_first_Line=$((${Host_first_Line}+1))
+                        
+declare -i Host_final_Line=$(cat -n /etc/drbl/IP_HOST_TABLE  | grep "# Created by DRBL (drblpush), end" | awk '{print $1}')
+Host_final_Line=$((${Host_final_Line}-1))
+#echo "$Host_first_Line"
+#echo "$Host_final_Line"
+                                                                           
+Host_first_IP=$(cat /etc/drbl/IP_HOST_TABLE | sed -n "${Host_first_Line}p"| awk '{print $1}')
+Host_final_IP=$(cat /etc/drbl/IP_HOST_TABLE | sed -n "${Host_final_Line}p"| awk '{print $1}')
+#echo $Host_first_IP                                                                                                                                                 
+#echo $Host_final_IP
+}
+
+function get_VM_IP_range(){
+echo ""        
+echo "Your drbl client IP range $Host_first_IP ~ $Host_final_IP"
+declare -i Host_final_IP_4=$(echo $Host_final_IP | cut -d "." -f4)
+Host_final_IP_4=$(($Host_final_IP_4+1))                       
+VM_first_IP=$(echo $Host_final_IP | cut -d "." -f 1-3)
+VM_first_IP="${VM_first_IP}.${Host_final_IP_4}"       
+echo "The VM IP Range will start from $VM_first_IP"   
+while [ $jude != "yes" -a $jude != "y" ];             
+do             
+    read "Input your IP range for VM: " VM_IP_range   
+done           
+echo "VM_first_IP=$VM_first_IP" > $Work_Home/.tmp/IP_VM_TABLE
+echo "VM_IP_range=$VM_IP_range" >> $Work_Home/.tmp/IP_VM_TABLE
+
 }
 
