Salim,
When Windows boots on the target machine, it will use DHCP to get a
dynamically assigned IP address from your DHCP server. Even if you've
assigned a static address in Windows on the target machine, you don't
need the same one when you boot the xPC Target kernel. These are
unrelated and not a function of the hardware.
When the xPC Target kernel boots, it uses the IP address configured into
it by xPC Explorer.
Since you're using a crossover cable between the two boxes, that means
you have a second Ethernet card in the host machine. You need to set
that one to an IP address in the same range as the one you assign to the
target.
I generally use a simple non-routable address on the second host adapter
and then assign an address in the same range to the target.
Sample config:
host machine:
Main Ethernet card: set for DHCP from your corporate network.
It picks
up IP address and subnet mask from DHCP.
Second Ethernet card:
IP address = 10.10.10.10
Subnet mask = 255.255.255.0
Note that 10.x.y.z for any x y or z is a non-routable address. Those
packets won't go through a router.
You can also use 192.168.y.z for any y or z. Your DHCP addresses could
be in one of these non-routable address groups where all the machines
are using NAT to hide behind a single externally visible address. If
so, use the other one for the target.
target machine:
IP address = 10.10.10.11
Subnet mask = 255.255.255.0
Gordon Weast
xPC Target Development
MathWorks