Академический Документы
Профессиональный Документы
Культура Документы
http://www.webnms.com/simulator/help/sim_network/netsim_conf_virtual_ip.html#solaris
Overview
When you create and start the network, the simulator will dynamically configure the
specified IP address of the devices in your system. For example, if you create a network
with IP address 200.201.202.1 to 200.201.202.10, the IP address will be dynamically
configured in the system when each agent instance is started. This facility is supported in
Windows NT, 2000, XP, Linux and Solaris OS, when the system is started with Admin
user access.
NOTE: Do not assign addresses that are already used by existing devices in your
network. The IP addresses you give to the simulated devices must be unique within the
network on which the simulation is running.
The links given below will guide you to configure the virtual ip address, manually.
Select the appropriate links based on the OS used.
1. Click on the Start Menu on the Taskbar and choose Control Panel.
2. Double-click Network among the components displayed in the Control Panel.
This opens up a Network dialog with 5 tabs.
3. Choose the Protocols tab and click on TCP / IP Protocol from listed protocols.
5. This brings up the Microsoft TCP / IP properties dialog ; choose IP Address tab.
6. Click the Advanced button ; this will bring the Advanced IP addressing with the
Adapter Name shown above the configured IP addresses in your system.
7. Click Add to display the TCP/ IP Address dialog. Specify IP Address and the
corresponding Subnet Mask.
3. Select Local area connection from the items under Network and Dial-up
connections ; this opens with the general information on Local area connection
status.
4. Click on the Properties button. The Local area connection properties dialog
opens listing all the protocols.
7. Click Add button next to the displayed IP addresses to add an IP address with a
corresponding sub-net mask.
8. You will have to re-start the system for the changes to take effect.
The procedure to configure virtual IP addresses in bulk under Windows 2000 is given
below. This procedure can be performed only by an user with admin privilege.
1. Select Start ->Run and type regedt32 in the run dialog ( or you can type it on the
DOS prompt) .
2. This will bring up the Registry Editor - HKEY_LOCAL_MACHINE on Local
Machine screen.
5. Select all the Tcpip_{labels} listed to check if the right hand side data content
which has Netbios Options:REG_DWORD :0x1 and make a note of this
Tcpip_{ label } .
7. Double click on the IP address field . This opens a Multi-String editor where the
virtual IP addresses you want have to be keyed in. You can cut and paste to
minimise the time for large number of IPs .
8. When you have finished entering the IP addresses, select the subnetmask field
( 255.255.255.0) in the right hand side. This opens a Multi-String editor where
the subnetmask you want have to be keyed in. Enter the same number of
subnetmasks(255.255.255.0) as the number of IPs.
9. You will have to re-start the system for the changes to take effect.
10. Now you should be able to ping these virtual IP addresses. Also, make sure that
there are no conflicts in the network ( i.e the virtual IP you have configured is not
already being used by some other user).
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.
3. Select eth0 and press Enter. This will show all the IP aliases configured for the
selected interface.
4. In the field IP alias or range, enter the desired IP address or the range with a
corresponding Netmask.
Example
Note:
Using the following command, we can configure Virtual IPs in the Linux box at run-
time without re-booting the machine or re-starting the network.
The same interfaces can be made down by using the following command.
Follow the three simple steps that will help you to configure virtual IP address :
1. Edit the /etc/hosts file and add additional IP addresses, along with the associated
hostname. For example : To add 192.168.0.1 (web1) and 192.168.0.2 (web2) to
the system, enter in the following manner.
192.168.0.1 web1
192.168.0.2 web2
2. Create the startup files so that the system will automatically add the new IP
addresses upon bootup.
a. Create new files in the /etc directory. The file names should follow the
following convention according to the new ip address added.
hostname.hme0:1
hostname.hme0:2
b. The contents of these files will be a single line with the respective hostname
entered. For example:
hostname.hme0:2 web2
The file "hostname.hme0:1" will contain "web1" and "hostname.hme0:2"
will contain "web2".
If you look in the "/etc" directory, you will find a file named
"hostname.hme0" (which is the real interface, the :n represents the virtual
interface). In this file, you will find the name of your system. If you look in
the "/etc/hosts" file, you will find your IP address.
Now you have configured virtual IP address for two new interfaces that
you have added ( .hme0:1 and .hme0:2 .
3. To activate this virtual IP address, you have to provide the following commands :
The system startup in Solaris searches the "/etc" directory for files named
"hostname.*". When it finds one or more of these files, it reads the
hostname from them, looks up the hostname in the "/etc/hosts" file for a
match, and if found, configures the interface with the IP address of the
match.
(OR)
After having issued these two commands, the system would recognize the
new IP addresses immediately, without re-booting the system.
Tags:
Solaris
example:
/etc/hostname.hme0:1
example:
example: