How to set to test on loopback.

How to set to test on loopback.
This page details how to set to test on loopback.

when you want to test of application of SECS(HSMS) in 1-PC with a simulator etc, you willl not be able to use the loopback address (127.0.0.1 etc.) with this application.
But, if you set following setting, you willl be able to test of HSMS communication in 1-PC.

  1. Install Microsoft(R) Loopback Adapter.
  2. Set route of LoopBack Adaptor.
  3. Start logging.
  4. Clear route of LoopBack Adaptor.
  5. Remove Microsoft(R) Loopback Adapter.

  1. Install Microsoft(R) Loopback Adapter.

    IP address as “127.0.0.1” and host names as “localhost” does not use. Microsoft(R) Loopback adapter is used.
    To manually install the Microsoft Loopback adapter in Windows 2000/XP, follow these steps:

    1. Click ‘Start’, point to ‘Settings’, click ‘Control Panel’, and then double-click ‘Add/Remove Hardware’.

      If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
    2. Click ‘Add/Troubleshoot a device’, and then click ‘Next’.


    3. Click ‘Add a new device’, and then click ‘Next’.


    4. Click ‘No, I want to select the hardware from a list’, and then click ‘Next’.


    5. Click ‘Network adapters’, and then click ‘Next’.


    6. In the Manufacturers box, click ‘Microsoft’.
      In the Network Adapter box, click ‘Microsoft Loopback Adapter’, and then click ‘Next’.



    7. Click ‘Next’ if information is correct.


    8. Install completed if you see following image.
      Click Finish.



    9. Click ‘Start’, point to ‘Settings’, click ‘Control Panel’, and then double-click ‘Network Connections’.
      You will find new network coonnection like ‘Local Area Connection2’ etc..



  2. Set route of LoopBack Adaptor.

    Set ARP(Address Resolution Protocol) and route(Manipulates network routing tables) for LoopBack Adaptor , follow these steps:
    * : “Enter” key.

    1. Click ‘Start’, point to ‘Programs’, click ‘Accessories’, and then double-click ‘Command prompt’.
      ([Start]-[Programs]-[Accessories]-[Command prompt])
      – If style is XP, [Start]-[All Programs]-[Command prompt].

    2. Input following command to command prompt,then check MAC-address and IP-address.

      C:\>ipconfig /all

      Windows IP Configuration


      Ethernet adapter LoopBack:
              Connection-specific DNS Suffix  . :
              Description . . . . . . . . . . . : Microsoft Loopback Adapter
              Physical Address. . . . . . . . . : 01-02-03-04-05-06
              Dhcp Enabled. . . . . . . . . . . : Yes
              Autoconfiguration Enabled . . . . : Yes
              Autoconfiguration IP Address. . . : 169.254.25.129
              Subnet Mask . . . . . . . . . . . : 255.255.0.0
              Default Gateway . . . . . . . . . :
      
      – ‘Physical Address’ : means MAC-address
      – ‘Autoconfiguration IP Address’ : means IP-address

    3. Input arp command to command prompt like a following example.
      C:\>arp -s 169.254.25.129 01-02-03-04-05-06

      arp command :
      – arp -s IP-address MAC-address

      You should input IP-address and MAC-address of your PC.

    4. Input route command to command prompt like a following example.

      C:\>route add 169.254.25.129 mask 255.255.255.255 169.254.25.129

      route command :
      – route add IP-address mask Netmask gateway-IP-address
      You should input IP-address of your PC.And you must input gateway-IP-address equal IP-address of your PC.

  3. Start logging.

    Let’s start logging if you have set ARP and ROUTE.
    See How to log(monitor) SECS Message easy..


    [Note]
    In packet information on LoopBack Adaptor, the judgment of Send or Receive doesn’t attach.
    Because IP-address is same Send IP-address and Receive IP-address.
    This application judges all packets ‘Send’.

  4. Clear route of LoopBack Adaptor.

    Let’s clear route of LoopBack Adaptor If you does not use it.
    Clear-steps is reversed of Set-steps.

    * : “Enter” key.

    1. Click ‘Start’, point to ‘Programs’, click ‘Accessories’, and then double-click ‘Command prompt’.
      ([Start]-[Programs]-[Accessories]-[Command prompt])
      – If style is XP, [Start]-[All Programs]-[Command prompt].

    2. Input route command to command prompt like a following example.

      C:\>route delete 169.254.25.129

      route command :
      – route delete IP-address
      You should input IP-address of your PC.

    3. arp(address resolution protocol)コマンドを実施し、仮想アダプタの削除を行います。
      C:\>arp -d 169.254.25.129

      arp command :
      – arp -d IP-address

      You should input IP-address of your PC.

  5. Remove Microsoft(R) Loopback Adapter.

    Let’s remove LoopBack Adaptor If you does not use it.
    To manually uninstall the Microsoft Loopback adapter in Windows 2000/XP, follow these steps:

    1. Click ‘Start’, point to ‘Settings’, click ‘Control Panel’, and then double-click ‘System’.
      If you are in Classic view, click Switch to Category View under Control Panel in the left pane.
      Click ‘Hardware’ tab, then click ‘Device Manager’.


    2. Expand ‘Network Adaptor’ of tree in left window,then select LoopBack Adaptor.
      Click on Menu ([Action]-[Uninstall])


    3. Click ‘OK’ if window shows like a following image.