APIPA Not setting Gateway

hraj50

Distinguished
Mar 4, 2010
2
0
18,510
Hello,
I am connecting two computers through ethernet, it tries first dhcp and falls back to AUto IP configuration mode, where it sets IP address as 169.254.x.x.
When I see 'ipconfig', I can see IP address and mask set but gateway is empty.
I have one dell laptop with, it shows gateway is set to same as IP address.

Why my other two computers are not setting gateway and this dell laptop is setting laptop.

I want this gateway to set during APIPA mode, how can I do that?

Thanks in advance.
 

hraj50

Distinguished
Mar 4, 2010
2
0
18,510
Hi Manojgj,
Thanks for responding, I understand, they communicate each other. My question is my my computers are not setting gateway, but my laptop is setting that gateway.

I am using this for my custom project, i need this gateway to be set.

If you have any idea on this, taht will be great help.
I searched little bit registry, 'IPAutoConfigration', it only shows enabling and disabling APIPA and does not say anything about APIPA gateway.
 

manojgj

Distinguished
Dec 21, 2009
1,087
0
19,460
The APIPA feature configures the client with the following:

* IP address
* Subnet mask

The APIPA feature cannot configure the client with any other TCP/IP configuration:

* Default gateway
* DNS server IP address
* WINS server IP address
You have to use an alternate configuration to provide the above TCP/IP configuration information to a client when no DHCP server is available for the client.


check this link .. it will give the complete solution
http://www.topbits.com/apipa.html
 

TRENDING THREADS