![]() ![]() ![]() |
Creating and Deleting Virtual IPs from a batch/shell script
To create virtual IPs from a batch/shell script:
Syntax: CreateVIP.bat <Starting IP Address> <No. of IP Addresses to be created>
Example: CreateVIP.bat 192.168.1.1 100
To delete virtual IPs from a batch/shell script:
Syntax: DeleteVIP.bat <Starting IP Address> <No. of IP Addresses to be deleted>
Example:DeleteVIP.bat 192.168.1.1 100
Manual Configuration of Virtual IP address
Create the Virtual ip address for Windows 7:
Start ---> ControlPanel --->Network and Internet -->Network Connections --> Local Area Connection
Right click the "Local Area Connection" and select the Properties Menu.
Select "Internet Protocol Version 4 (TCP/IPv4)" and click the "Properties".
Select the "Use the following IP address" radio button.
Enter the IpAddress and Subnet mask and click "OK" button.
Re-start the system for the changes to take effect.
Configuring Virtual IP Address in Windows NT
Click on the Start Menu on the Taskbar and choose Control Panel.
Choose the Protocols tab and click on TCP / IP Protocol from listed protocols.
Click on Properties button when TCP / IP Protocol is selected.
This brings up the Microsoft TCP / IP properties dialog ; choose IP Address tab.
Re-start the system for the changes to take effect.
Configuring Virtual IP Address in Windows XP/2000/ ME/2003
Configuring Virtual IP Address in bulk under Windows 2000
Select Start ->Run and type regedt32 in the run dialog ( or you can type it on the DOS prompt) .
This will bring up the Registry Editor - HKEY_LOCAL_MACHINE on Local Machine screen.
Choose the HKEY_LOCAL_MACHINE on the tree displayed on the left hand side.
You will have to re-start the system for the changes to take effect.
Configuring Virtual IP Address in Windows in DHCP mode
The procedure to configure virtual IP addresses in windows with DHCP mode is the same as Configuring Virtual IP Address in bulk under Windows 2000.
Configuring Virtual IP Address in Linux
|
Note:
|
/sbin/ip addr add 172.19.1.2/32 dev eth0
/sbin/ip addr add 172.19.1.3/32 dev eth0
The same interfaces can be made down by using the following command.
/sbin/ip addr del 172.19.1.2/32 dev eth0
/sbin/ip addr del 172.19.1.3/32 dev eth0
|
Note:
|
![]() ![]() ![]() |