Link to home
Start Free TrialLog in
Avatar of alan2938
alan2938

asked on

Static IP prevents outgoing connections - only DHCP works

I have an Exchange 2007 Sp1 installation running on Windows Server 2008x 64. I was having trouble after setting up an SMTP connector to the internet from this box, as I could not connect to any remote SMTP server. Also, Windows Update would not work.

I switch the network interface from being a static IP to using DHCP and all problems are resolved regarding my SMTP issues... but why would using DHCP allow SMTP traffic through when static IP does not?
Avatar of Rick Fee
Rick Fee
Flag of United States of America image

My guess is you have the subnet mask or default gateway setup incorrectly with the static config.
SOLUTION
Avatar of Fayaz
Fayaz
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Make sure your static IP address is on the same subnet as your DHCP address and it is pointing to the same DNS servers.
Avatar of alan2938
alan2938

ASKER

All systems are on the same subnet and pointing to the correct servers.

I switched the Exchange server back to static IP using the exact settings that were given through DHCP... and upon reboot, the default gateway is blank. I add it in, the machine reboots again, and it doesn't make a difference. So for whatever reason, unless my server is configured for DHCP, it has no idea what my default gateway is.
Default gateway is blank...I have seen this happen on multihomed servers?   If not multihomed I would take a look in the registry for any NICs that didn't get uninstalled properly....
 HKEY_LOCAL_MACHINE\System\CurrentControlSet\Network.

Some of the GUID keys are the NICS
Expand the guid keys and look for the subkey connection.  These are the NICS, check to see if there are any that have a IP that you don't reconize that should not be there.
I don't have "Network" under CurrenControlSet. See image.
registry.png
Sorry.... HKLM\System\CurrentControlSet\Control\Network\
Ok, so I found there are lots of entries labelled for Local Area Connection 1 through 11. I attached a screens hot below of the descriptions... not sure if they correlate or not. I actually removed everything except Local Area Connection 2 (the only one connected right now... I'm in a Virtual Environment) but then LAN 2 completely disappeared! I had to restore from snapshot to get it back.
regedit.png
Ah this looks correct, but for future testing you can export the registy key then remove it...if someone blows up you can just import the registy key that you exported.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial