Automatic assignment of IP address

  • Thread starter Thread starter Graham Chamberlain
  • Start date Start date
G

Graham Chamberlain

I have two computers (XP Home Edition) networked on an
ethernet hub/switch. When setting up the network the first
computer successfully assigned an automatic IP address.
However the second computer failed to do so and I was
forced to manually assign a compatible IP address to
enable communication over the network. Is this normal or
do I have something missing or faulty in my XP
installation?

The network works OK as it is for file and print sharing
but I want to install a DSL router to enable individual
access to the internet. I'm worried that that this may be
a problem if I don't have automatic assignment of IP
address working.

Any help and advice would be very welcome.
 
Graham Chamberlain said:
I have two computers (XP Home Edition) networked on an
ethernet hub/switch. When setting up the network the first
computer successfully assigned an automatic IP address.
However the second computer failed to do so and I was
forced to manually assign a compatible IP address to
enable communication over the network. Is this normal or
do I have something missing or faulty in my XP
installation?

The network works OK as it is for file and print sharing
but I want to install a DSL router to enable individual
access to the internet. I'm worried that that this may be
a problem if I don't have automatic assignment of IP
address working.

Any help and advice would be very welcome.

Your post begs the question, what is leasing addresses, DHCP?

Dave H.
 
-----Original Message-----

"Graham Chamberlain"

Your post begs the question, what is leasing addresses, DHCP?

Dave H.


.
I should have said that LAN Properties states that an IP
of 0.0.0.0 is assigned bt DHCP.
 
1)is the second PC's Lan connection set to obtain an
address automatically?
2)Does your DHCP scope have enough addresses to lease
out?
3)Where is your DHCP coming from - a server or a router?
(as far as i'm aware, XP doesn't have any DHCP built in,
other than APIPA),
4)are you getting any kind of error messages?

If you can give any more specific information, I don't
think it'll be too hard for someone to identify the
problem

A router should still work with static private addresses
on the lan and set to obtain an IP automatically on the
WAN from your ISP (is your first pc getting it's IP
address from the ISP? in which case the second one won't
if you only have one internet connection and no router)
Are you using ICS?

best wishes
 
1) Yes, 2nd PC's LAN set to obtain address automatically
2) I don't understand the question. However the 1st PC set
an auto Private Address of 169.254.226.247
3) It seems to be XP as the LAN details say IP Address
0.0.0.0 is set by DHCP.
4) There are no error messages but if I run Repair on the
connection this fails at the stage "Refreshing all DHCP
leases & registering DNS Names"
 
The problem you are seeing is that you do not have a DHCP enabled server to
hand out IP addresses. The 169.x.x.x address you are getting is the default
that XP gives you in the abscence of a DHCP enabled server.

To get the 2 machines to talk to each other, you can manually assign the
other machine an address in the same subnet (like 169.254.226.248)..

However, your fear of adding a router to give both machines Intenret access
should not be a problem, and in fact, it will help things.

When you install this router, 99.9% of them have the capability of being a
DHCP server as well. What you will do is configure the "Public" or "WAN"
interface on the router with your ISP issued IP address, subnet mask,
degault gateway and DNS information. Once you have done that, and networked
the machines to the router physically (i.e. via a hub) whenever your XP
machines boot up, they will receive 192.168.x.x addresses automatically.
These are called "Home Net" addresses and will allow your machines to surf
the web from behind your router. This is commonly called "Internet
Connection Sharing", and this functionality is also built into Windows XP as
well.

I hope this helps...
 
things are becoming a little clearer. If your first pc
has an address in the 169.254.x.x range, this is an apipa
address. It is generated by the pc itself when it is set
to receive an address automatically but cannot find a
DHCP server to issue one. If your second PC has an
address of 0.0.0.0 then it doesn't have an address. If
there is no DHCP server, it should also assign itself an
apipa address like the first one. However, as this isn't
happening, it sounds like APIPA has been turned off /
disabled. There is a setting in the registry (if you are
confident about changing this)that enables you to turn
apipa on or off,

http://support.microsoft.com/default.aspx?scid=kb;en-
us;310524&Product=winxp

http://support.microsoft.com/default.aspx?scid=kb;EN-
US;244268

If you can get an apipa address, the network should
communicate.

Alternatively, set both PC's to use static addresses
within the same private range (eg. 192.168.100.1 and
192.168.100.2 and make sure they both have the same
subnet mask (255.255.255.0 in the case above)

As i mentioned earlier, if you are using a router, this
shouldn't matter.The router will have a public address on
the WAN side (probably provided by your ISP) and you can
specify any private IP's on your LAN side.Just make sure
that the subnet masks are corrrect.One other point to
watch, is that if you are networking 2 or more PC's, make
sure that the built in firewall on XP is turned off and
also any 3rd party firewall(turn it off whilst you set up
the network, then turn it back on and configure it to
allow all LAN addresses through.

I hope this helps.
 
Thanks to ADRIAN916 and PAT for their help: I start to
understand the problem better now. Is it worth changing
registry for computer#2?
I'm not very familiar with registry data but have looked
at the registry entries on each computer for
TCPIP/parameters/interface and they seem quite different.
On both there are a number of interface keys but I think I
can see which is the 'active'(?) one. On one, DHCP seems
to be enabled and on the other not. The two keys are
pasted below:
***************
Computer#1:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters\Interfaces\{BFA3A07C-E6E4-4FAB-8FFA-
55CEA4C008DF}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"IPAddress"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00,00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000000
"LeaseObtainedTime"=dword:3fbb3040
"T1"=dword:3fbb3040
"T2"=dword:3fbb3040
"LeaseTerminatesTime"=dword:7fffffff
"IPAutoconfigurationAddress"="169.254.226.247"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000001
"DhcpIPAddress"="169.254.226.247"
"DhcpSubnetMask"="255.255.0.0"
*******
Computer#2:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip
\Parameters\Interfaces\{042B77C8-5505-4C43-A47D-
2CD870542F0B}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000000
"IPAddress"=hex
(7):31,00,36,00,39,00,2e,00,32,00,35,00,34,00,2e,00,32,00,3
2,00,\
36,00,2e,00,32,00,35,00,34,00,00,00,00,00
"SubnetMask"=hex
(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,30,00,2
e,\
00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,\
32,00,00,00,00,00
"DhcpIPAddress"="0.0.0.0"
"DhcpSubnetMask"="255.0.0.0"
************
 
probably best to leave the registry alone if you're not
familiar with it - a wrong move can have serious
implications. I should stick to giving both PC's static
private addresses and just remember about apipa in the
registry for future use, should it ever be essential.

so long as both pc's are set with static addresses for
now, and they are on the same subnet (as suggested
earlier by myself and pat) you shouldn't have any
problems connecting the two and sharing files. You can
always play with DHCP when you get your router.

best of luck
-----Original Message-----
Thanks to ADRIAN916 and PAT for their help: I start to
understand the problem better now. Is it worth changing
registry for computer#2?
I'm not very familiar with registry data but have looked
at the registry entries on each computer for
TCPIP/parameters/interface and they seem quite different.
On both there are a number of interface keys but I think I
can see which is the 'active'(?) one. On one, DHCP seems
to be enabled and on the other not. The two keys are
pasted below:
***************
Computer#1:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpi
p
\Parameters\Interfaces\{BFA3A07C-E6E4-4FAB-8FFA-
55CEA4C008DF}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"IPAddress"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00,00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,
\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000000
"LeaseObtainedTime"=dword:3fbb3040
"T1"=dword:3fbb3040
"T2"=dword:3fbb3040
"LeaseTerminatesTime"=dword:7fffffff
"IPAutoconfigurationAddress"="169.254.226.247"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000001
"DhcpIPAddress"="169.254.226.247"
"DhcpSubnetMask"="255.255.0.0"
*******
Computer#2:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpi
p
\Parameters\Interfaces\{042B77C8-5505-4C43-A47D-
2CD870542F0B}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000000
"IPAddress"=hex
(7):31,00,36,00,39,00,2e,00,32,00,35,00,34,00,2e,00,32,00,
3
2,00,\
36,00,2e,00,32,00,35,00,34,00,00,00,00,00
"SubnetMask"=hex
(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,30,00,
2
e,\
00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,
\
32,00,00,00,00,00
"DhcpIPAddress"="0.0.0.0"
"DhcpSubnetMask"="255.0.0.0"
************
-----Original Message-----
1) Yes, 2nd PC's LAN set to obtain address automatically
2) I don't understand the question. However the 1st PC set
an auto Private Address of 169.254.226.247
3) It seems to be XP as the LAN details say IP Address
0.0.0.0 is set by DHCP.
4) There are no error messages but if I run Repair on the
connection this fails at the stage "Refreshing all DHCP
leases & registering DNS Names"
on
.
 
Yep, I'm with Adrian on this one..

--

Pat Fetty (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights



adrian916 said:
probably best to leave the registry alone if you're not
familiar with it - a wrong move can have serious
implications. I should stick to giving both PC's static
private addresses and just remember about apipa in the
registry for future use, should it ever be essential.

so long as both pc's are set with static addresses for
now, and they are on the same subnet (as suggested
earlier by myself and pat) you shouldn't have any
problems connecting the two and sharing files. You can
always play with DHCP when you get your router.

best of luck
-----Original Message-----
Thanks to ADRIAN916 and PAT for their help: I start to
understand the problem better now. Is it worth changing
registry for computer#2?
I'm not very familiar with registry data but have looked
at the registry entries on each computer for
TCPIP/parameters/interface and they seem quite different.
On both there are a number of interface keys but I think I
can see which is the 'active'(?) one. On one, DHCP seems
to be enabled and on the other not. The two keys are
pasted below:
***************
Computer#1:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpi
p
\Parameters\Interfaces\{BFA3A07C-E6E4-4FAB-8FFA-
55CEA4C008DF}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000001
"IPAddress"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"SubnetMask"=hex
(7):30,00,2e,00,30,00,2e,00,30,00,2e,00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00,00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,
\
32,00,00,00,00,00
"DhcpClassIdBin"=hex:
"DhcpServer"="255.255.255.255"
"Lease"=dword:00000000
"LeaseObtainedTime"=dword:3fbb3040
"T1"=dword:3fbb3040
"T2"=dword:3fbb3040
"LeaseTerminatesTime"=dword:7fffffff
"IPAutoconfigurationAddress"="169.254.226.247"
"IPAutoconfigurationMask"="255.255.0.0"
"IPAutoconfigurationSeed"=dword:00000000
"AddressType"=dword:00000001
"DhcpIPAddress"="169.254.226.247"
"DhcpSubnetMask"="255.255.0.0"
*******
Computer#2:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpi
p
\Parameters\Interfaces\{042B77C8-5505-4C43-A47D-
2CD870542F0B}]
"UseZeroBroadcast"=dword:00000000
"EnableDeadGWDetect"=dword:00000001
"EnableDHCP"=dword:00000000
"IPAddress"=hex
(7):31,00,36,00,39,00,2e,00,32,00,35,00,34,00,2e,00,32,00,
3
2,00,\
36,00,2e,00,32,00,35,00,34,00,00,00,00,00
"SubnetMask"=hex
(7):32,00,35,00,35,00,2e,00,32,00,35,00,35,00,2e,00,30,00,
2
e,\
00,30,00,00,00,00,00
"DefaultGateway"=hex(7):00,00
"DefaultGatewayMetric"=hex(7):00,00
"NameServer"=""
"Domain"=""
"RegistrationEnabled"=dword:00000001
"RegisterAdapterName"=dword:00000000
"TCPAllowedPorts"=hex(7):30,00,00,00,00,00
"UDPAllowedPorts"=hex(7):30,00,00,00,00,00
"RawIPAllowedProtocols"=hex(7):30,00,00,00,00,00
"NTEContextList"=hex
(7):30,00,78,00,30,00,30,00,30,00,30,00,30,00,30,00,30,00,
\
32,00,00,00,00,00
"DhcpIPAddress"="0.0.0.0"
"DhcpSubnetMask"="255.0.0.0"
************
-----Original Message-----
1) Yes, 2nd PC's LAN set to obtain address automatically
2) I don't understand the question. However the 1st PC set
an auto Private Address of 169.254.226.247
3) It seems to be XP as the LAN details say IP Address
0.0.0.0 is set by DHCP.
4) There are no error messages but if I run Repair on the
connection this fails at the stage "Refreshing all DHCP
leases & registering DNS Names"

-----Original Message-----
1)is the second PC's Lan connection set to obtain an
address automatically?
2)Does your DHCP scope have enough addresses to lease
out?
3)Where is your DHCP coming from - a server or a router?
(as far as i'm aware, XP doesn't have any DHCP built in,
other than APIPA),
4)are you getting any kind of error messages?

If you can give any more specific information, I don't
think it'll be too hard for someone to identify the
problem

A router should still work with static private addresses
on the lan and set to obtain an IP automatically on the
WAN from your ISP (is your first pc getting it's IP
address from the ISP? in which case the second one won't
if you only have one internet connection and no router)
Are you using ICS?

best wishes
-----Original Message-----

-----Original Message-----

"Graham Chamberlain"
I have two computers (XP Home Edition) networked
on
an
ethernet hub/switch. When setting up the network the
first
computer successfully assigned an automatic IP
address.
However the second computer failed to do so and I was
forced to manually assign a compatible IP address to
enable communication over the network. Is this normal
or
do I have something missing or faulty in my XP
installation?

The network works OK as it is for file and print
sharing
but I want to install a DSL router to enable
individual
access to the internet. I'm worried that that this
may
be
a problem if I don't have automatic assignment of IP
address working.

Any help and advice would be very welcome.

Your post begs the question, what is leasing addresses,
DHCP?

Dave H.


.
I should have said that LAN Properties states that an
IP
of 0.0.0.0 is assigned bt DHCP.
.

.

.
.
 
Well, I have installed my router and still have a problem
which seems to be related to assignment of IPA. It may
help to restate my network config and problem:

1. I have two computers, each with one network adapter,
connected via an ethernet hub/switch.
2. I have an (SMC Barricade 7404BRA) ADSL router (WITH
BUILT-IN MODEM) connected to the ethernet hub/switch.
3. I AM NOT USING A DIAL-UP CONNECTION on a 'host' that
can be shared with a 'client' using ICS
4. Computer#1 is set to obtain its IP address
automatically, which it does from the router DHCP (IPA-
169.168.x.x; SNM-255.255.255.0; DG-192.168.x.x)
5. Computer#2 seems unable to obtain its IPA
automatically; this was the case even before I connected
the router.
6. Before connecting the router Computer#1 generated its
own automatic private IPA and I had to manually assign a
compatible IPA on Computer#2 in order to enable file and
printer sharing on the LAN.
7. With the router connected and Computer#2 unable to get
an automatic IPA, I have assigned a compatible manual IPA,
SNM and DG.
8. File and printer sharing is OK; the router 'sees'
Computer#2 as being connected to it (IPA & 'mac' but
not 'name'!); HOWEVER, Computer#2 CANNOT GET 'OUT' TO THE
INTERNET DSL CONNECTION.
9. Why can Computer#2 not get its IPA automatically and IS
THIS THE REASON IT CANNOT CONNECT TO THE INTERNET?
10. I should be able to set TCP/IP properties to do this
and use the command line 'IPCONFIG /RENEW' to get the
correct connection with my router; however, when I attempt
to do this I get the following message - "An error
occurred while renewing interface Local Area Connection:
the system cannot find the file specified".
11. This seems to indicate that something is missing from
my WXPH setup.

can you or anyone else please help
regards
Graham
 
Back
Top