I create a virtual interface on interface eth0.

eg. mechine 1 and mechine 2 have ubuntu as OS

at mechine 1:

# ifconfig eth0:1 172.16.105.1 netmask 255.255.255.0

and then check - # ping...