Jump to content

Dell 755 not aquiring IP address


mbouchard
 Share

Recommended Posts

I have a strange issue, I have a newly built PE 2.0 built with Vista Sp1 and when PE finishes loading I do not have an IP address, I only get the AutoConfig Ip (169.254.etc) I do an Ipconfig /renew and it will get an IP.

Any ideas?

Nic = Intel 825xx Gigabit Platform LAN Network Device

Link to comment
Share on other sites


WinPE 2.x has NIC/TCP timing issues. I set a sleep and ping command after wpeinit is called in the startnet.cmd file

wpeinit
@ECHO OFF
sleep 8
ping -n 5 SOMESERVER

You'll need to add the sleep.exe file to your build.

Link to comment
Share on other sites

I know that nonSP1 did not have the Intel NIC driver for these devices (PCI\VEN_8086&DEV_10BD) and SP1 added support since the first sp1 beta of the waik. I have had 0 issues with these models gettting IP on the first try.

Link to comment
Share on other sites

WinPE 2.x has NIC/TCP timing issues. I set a sleep and ping command after wpeinit is called in the startnet.cmd file

wpeinit
@ECHO OFF
sleep 8
ping -n 5 SOMESERVER

You'll need to add the sleep.exe file to your build.

I take it the 8 is seconds, if so will up what I had already tried, a 2 second sleep in a script that is called from startnet.cmd.

I know that nonSP1 did not have the Intel NIC driver for these devices (PCI\VEN_8086&DEV_10BD) and SP1 added support since the first sp1 beta of the waik. I have had 0 issues with these models gettting IP on the first try.

I had issues with getting the NIC added to Vista gold, but that was probably a user issue on my part. Rebuilt PE with Sp1 and was able to get connected with a delay though.

Have no issues with one of my other test PC's, just the 755.

Thanks again, will try the longer sleep.

Link to comment
Share on other sites

I have had the same issue with HP dc7700 and dc7800 workstations. In my case, it is not a problem with the boot cd (WinPE 2.0) or with the driver. The problem is on our Cisco switches and their configuration. We do not enable Port Fast on our switches to ensure stability of the network in case someone gets cable happy.

What I did to overcome this problem, (although I despise doing it) is to add the follow in the startnet.cmd

start /wait wpeinit

CLS

ipconfig /renew *Local*

ipconfig /renew *Local*

When I only added "ipconfig /renew once, about 9 times out of 10 it would succeed in obtaining the IP address. When I added it twice, I have never had it fail on either of the two models which were having the issue.

By the way, both the 7700 and 7800 have the Intel 825xx Gigabit Platform LAN Network Device

I hope this helps....this drove me crazy for over a week...literally, you have no idea how many drivers I downloaded along with rebuilds of my boot cd.

Good luck.

Edited by geemail.email
Link to comment
Share on other sites

That last post reminded me of something... In my code I do this.

Check for cable being present.

If it is then

Check for IP

if no IP then

Restart network adapters

check for IP


Public Function CheckForIP() As Boolean
'have IP and have gateway means you have IP.
' 169. triggers as ipenabled so have to check gateway

Dim oNetworkAdapterConfigurationSet As WbemScripting.SWbemObjectSet
Dim oNetworkAdapterConfiguration As WbemScripting.SWbemObject

On Error Resume Next

Set oNetworkAdapterConfigurationSet = GetObject("winmgmts:root\CIMV2").ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each oNetworkAdapterConfiguration In oNetworkAdapterConfigurationSet

If Not IsNull(oNetworkAdapterConfiguration.DefaultIPGateway) Then
CheckForIP = True
End If
Next

Set oNetworkAdapterConfiguration = Nothing
Set oNetworkAdapterConfigurationSet = Nothing

Exit Function

End Function

A a snip on checking if the cable is plugged in. There is a WMI call for checking cable plugged in, but it doesn't work in PE (Or at least didn't last time I checked) FYI, TokenRing doesn't return .Speed, so I have different checks for that... but who else is still using that?

After checking for a cable, I restart the card (because I change it's mac address to a specific range, identfying it) then ipconfig /setclassid for a specific dhcp class we use for winpe devices (which, btw does a renew on it's own). Then I check for gateway, no gateway then we use WMI to renew one more time.


Set oNetworkAdapterSet = GetObject("winmgmts:root\CIMV2").ExecQuery("SELECT Description, Index, MACAddress, Speed FROM Win32_NetworkAdapter WHERE AdapterTypeID = 0", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each oNetworkAdapter In oNetworkAdapterSet
If IsNull(oNetworkAdapter.Description) Or IsNull(oNetworkAdapter.MACAddress) Or IsNull(oNetworkAdapter.Speed) Then
'bad card
Else
If Int(Right$(oNetworkAdapter.Speed, 2)) Mod 10 = 0 Then
bNetworkCableConnected = True
End If
End If
Next
End If

Set oNetworkAdapter = Nothing
Set oNetworkAdapterSet = Nothing

If bNetworkCableConnected Then
ShellAndWait "DEVCON RESTART =NET", vbHide
ShellAndWait "IPCONFIG /SETCLASSID * WINPE", vbHide

Set oNetworkAdapterConfigurationSet = GetObject("winmgmts:root\CIMV2").ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each oNetworkAdapterConfiguration In oNetworkAdapterConfigurationSet
If IsNull(oNetworkAdapterConfiguration.DefaultIPGateway) Then
oNetworkAdapterConfiguration.RenewDHCPLease
End If
Next

Set oNetworkAdapterConfiguration = Nothing
Set oNetworkAdapterConfigurationSet = Nothing

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...