Testing a HIP connection with an IPv4-only application

Initial configuration. 

We have different mechanism for mapping the HIT-LSI information. We can choose whatever of the next possibilities. The user can introduce manually the LSI or this can be created automatically by the hip daemon. It should be noticed that the address interval between 1.0.0.1 - 1.0.0.4 is already in use by the hipd, so the user must choose a free LSI. These four LSIs are the local LSIs assigned with the four local HITs.

crash:

If the command hipconf add map is not executed, we must add the peer IP in the file /etc/hosts

Apart from starting the hipd process, the hipfw process must be also started in both machines, oops and crash. Notice that hipfw must be started always after hipd!

Beforehand the following rules must be added in the file /etc/hip/firewall.conf

crash:

oops:

Running the application. 

Once we have finished the step before and started running hipd and hipfw, we can run the application. If the LSI has been generated automatically, we can check its value with tools/hipconf get ha OOPS_HIT or tools/hipconf get ha all. Afterwards, we start running the application, e.g.: