`
lee79
  • 浏览: 106202 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Configuring Virtual IP

阅读更多

Configuring IP addresses



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.

 

Creating and Deleting Virtual IPs from a batch/shell script

 

To create virtual IPs from a batch/shell script:

  • Run CreateVIP.bat/sh file from <SimulatorHome>/bin/cmdline directory.

  • Specify the starting IP address and the number of devices for which the virtual IPs must be created and click OK . The specified number of virtual ips will be created.

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:

  • Run DeleteVIP.bat/sh file from <SimulatorHome>/bin/cmdline directory.

  • Specify the starting IP address and the number of virtual IPs to be deleted and click OK . The specified number of virtual ips will be deleted from the system.

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

 

The links given below will guide you to  configure the virtual ip address, manually. Select the appropriate links based on the OS used.

 

Configuring Virtual IP Address in Windows NT

 

The procedure to configure multiple virtual IP addresses in Windows NT is given below. This procedure can be performed only by an user with admin privilege.   

  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.

  4. Click on Properties button when TCP / IP Protocol is selected.

  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 .

  8. Re-start the system for the changes to take effect.

 

Configuring Virtual IP Address in Windows XP/2000/ ME/2003

 

The procedure to configure virtual IP addresses in bulk under Windows XP/2000/ME is given below. This procedure can be performed only by an user with admin privilege.   

  1. Click on the Start Menu and choose Settings .

  2. Among the listed items select Network and Dial-up connections .

  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.

  5. Choose Internet Protocol ( TCP / IP ) and click on the Properties button.

  6. The Internet Protocol TCP / IP Properties dialog is invoked. Click on the Advanced button at the bottom of the dialog.  The Advanced TCP / IP settings dialog displays all the configured IP addresses in your system.

  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.

 

Configuring Virtual IP Address in bulk under Windows 2000

 

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.

  3. Choose the HKEY_LOCAL_MACHINE on the tree displayed on the left hand side.

  4. Choose the path : HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Services > NetBT -> Parameters -> Interfaces . Here, you will find a series of Tcpip_{labels} under Interfaces, an example is shown below:    Tcpip_{2B34C0C3_FCA8_486C_8559_989429901786}

  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 } .

  6. Search for this label under  HKEY_LOCAL_MACHINE ->System -> CurrentControlSet -> Services -> Tcpip -> Parameters -> Interfaces . Here, you will find the same Tcpip_{label } (that you had noted down in point 5). When you select this, the right side data content will display IP address and properties.

  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).

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

  1. Invoke the linuxconf tool. ( type linuxconf in the shell prompt and press Enter ). For starting this tool you have to be logged in as Super user.

  2. In the displayed menu, select the menu item : IP Aliases for virtual hosts and press Enter . This will display the two interfaces eth0 and lo. ( Ethernet interfaces in Linux are called by such names as eth0 and eth1)

  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

    IP alias or range : 177.177.177.1-25
    Netmask : 255.255.255.0

    <!-- (Table)=====================================================-->

    Note :

    1. These commands have to be executed with the super user privilege.

    2. You will have to re-start the system for the changes to take effect.

    3. When you are configuring a large number of IP address, it might take a long time to boot up.

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.

 

ifconfig eth0:1 172.19.1.2 netmask 255.255.255.0 up

ifconfig eth0:3 172.19.1.3 netmask 255.255.255.0 up

 

The interface number must be unique for each interface (for example eth0:1, eth0:2 etc). The same interfaces can be made down by using the following command.

 

ifconfig eth0:1 172.19.1.2 netmask 255.255.255.0 down

ifconfig eth0:3 172.19.1.3 netmask 255.255.255.0 down

 

    <!-- (Table)=====================================================-->

    Note :

    1. These commands have to be executed with the super user privilege.

    2. It can be used in versions up to 7.2

    3. The configurations will not be available when you re-start your system.

Configuring Virtual IP Address in Solaris

 

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

 

The system needs to be configured for the newly added IP addresses.

  1. 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:

  •  
      <!-- (Table)=================================================-->

      File Name

      Contents

      hostname.hme0:1

      hostname.hme0:2

      web1

      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 .

  1. To activate this virtual IP address, you have to provide the following commands :

# ifconfig hme0:1 plumb

# ifconfig hme0:2 plumb

 

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.

 

Please re-boot your system for the virtual IP address to be configured in your system.

 

(OR)

 

To configure the interface without re-starting the system , use the "ifconfig" command. To add the two IP addresses, type:

 

# ifconfig hme0:1 192.168.0.1 up

# ifconfig hme0:2 192.168.0.2 up

 

After having issued these two commands, the system would recognize the new IP addresses immediately, without re-booting the system.

 

分享到:
评论

相关推荐

    configuring-vlans

    4. **基于IP子网的VLAN**:基于设备的IP地址或子网划分VLAN。 **四、VLAN的优势** 1. **提高安全性**:VLAN间的通信必须通过路由器,可以有效阻止非法访问和广播风暴。 2. **网络性能**:通过限制广播域,减少无效...

    configuring and managing cifs on emc celerra

    虚拟数据移动器(Virtual Data Movers)作为Celerra平台的组件,也需要进行管理和配置以确保数据流的高效。 组策略对象(GPOs)和GPO在Celerra上的支持也是文档提及的内容,这涉及到使用组策略来管理用户和计算机的...

    windows下VMware Fusion创建Centos6.7方法.docx

    Windows 下 VMware Fusion 创建 CentOS 6.7 ... IConfiguration of CentOS 6.7 virtual machine on VMware Fusion for Windows, and configuring fixed IP address and connecting to internal and external networks.

    Cisco Press - OSPF Network Design Solutions, 2nd Edition

    Configuring a Neighbor’s Cost on Point-to-Multipoint Broadcast Networks 231 Configuring an Interface as Point-to-Multipoint Nonbroadcast 231 Configuring Route Calculation Timers 232 Suppressing OSPF ...

    LTM Config 配置手册打包

    Configuring virtual server and virtual address settings ....................................................... 2-10 Configuring virtual server properties, settings, and resources .......................

    test files

    #### Configuring 2X Virtual Desktop Server to Use ESXi Guests - **核心要点**:这部分涉及了如何在 2X Virtual Desktop Server 中添加和配置 ESXi 客户端。 - **添加 Virtual Desktop Host**:首先,需要在 2X...

    NSX-T hol-2026-01-net_pdf_en.pdf

    - **Configuring Network Address Translation (NAT)**: NAT is essential for translating private IP addresses to public IP addresses when communicating with external networks. Participants will learn how...

    CISCO 技术大集合

    Enter virtual terminal password: cisco 5.询问是否要设置路由器支持的各种网络协议: Configure SNMP Network Management? [yes]: Configure DECnet? [no]: Configure AppleTalk? [no]: Configure IPX? [no]...

    Mastering Ubuntu Server(PACKT,2016)

    Later, you will also learn how to configure network interfaces, manage IP addresses, deploy Network Manager in order to connect to networks, and manage network interfaces. Furthermore, you will ...

    3550配置命令[收集].pdf

    5. **Switch Virtual Interfaces (SVIs)**:作为VLAN的虚拟接口,用于三层路由。 6. **Routed Ports**:支持三层路由的接口,可以处理不同VLAN间的通信。 **Port-Based VLANs** VLAN(虚拟局域网)有助于网络分段,...

    RedHat Certificate Engineer

    ### Red Hat Certificate Engineer – Chapter 2: Virtual Machines and Automated Installations #### CERTIFICATION OBJECTIVE 2.01: Configure KVM for Red Hat KVM (Kernel-based Virtual Machine) is an ...

    多层交换-介绍ccnp多层交换各种实验,学习ccnp交换知识

    7. **IP Telephony Support**:"Lab 7-1 Configuring Switches for IP Telephony Support.doc"涉及到IP电话的配置,这要求网络支持QoS(Quality of Service),以保证语音通话的清晰度和稳定性。 通过以上分析,...

    高级路由--介绍ccnp/ccie高级路由实验,掌握cisco高级路由知识

    6. **OSPF虚拟链路和区域汇总**: "OSPF Virtual Links and Area Summarization.doc"解释了如何在OSPF中设置虚拟链路跨越非直连区域,以及如何执行区域内的路由汇总,这有助于减少LSA(Link State Advertisements)的...

    Ubuntu The Complete Reference

    - **Installation Options**: Explanation of the different methods for installing Ubuntu, such as live CD/DVD, USB drive, or virtual machines. Instructions for creating bootable media are provided. - **...

    Microsoft SQL 2007年认证试题(英文PDF版)

    This is typically done by adding an exception rule for SQL Server or by configuring the firewall to allow incoming traffic on port 1433. --- #### Question 4: Writing Distributed Queries Between Two...

    VMware Certified Professional on vSphere 5 (VCP5) 培训资料05/14

    2. **Lesson 2: Configuring Standard Virtual Switch Policies** 这一课深入探讨了如何配置标准虚拟交换机的策略,包括端口安全、QoS(服务质量)、负载均衡等。这些策略对于保证网络性能、安全性和可靠性至关...

    NIST SP800-41.pdf

    Firewall technology has matured to the extent ...This document contains numerous recommendations for choosing, configuring, and main-taining firewalls. These recommendations are summarized in Appendix C.

    Infineon-XMC1000-C_Start_and_Device_Initialization-AN-v01_00-EN启动文件说明.pdf

    - **LMA与VMA的概念(Concept of LMA and VMA)**:LMA(Load Memory Address)和VMA(Virtual Memory Address)分别代表了程序的加载地址和运行地址。 - **典型的程序段分配(Typical program section assignment...

    Cisco 命令 全集

    虽然提供的文件信息中关于VTP的部分不完整,但VTP (Virtual Trunking Protocol) 是Cisco专有的协议,用于在网络中的多台交换机间同步VLAN配置信息。它有助于简化大型网络中的VLAN管理。 以上就是从提供的文件信息中...

Global site tag (gtag.js) - Google Analytics