Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Beowulf005 (TechnicalUser) (OP)
1 Jul 06 20:02
Vista Beta 2 Build 5384

For some reason the netwok connections are storing the settings from a different connection and are not allowing me to clear them. At home I use a staic address but at work I use an auto address, but looking at ipconfig it is showing the the gateway has three address but will not connect to the internet. Will conect to the local network just fine. Tried to use ipconfig /release but it fails. Any ideas?

When frustrated remember, in the computer world there is almost always a backdoor.

Scott24x7 (Programmer)
4 Jul 06 4:31
What IP is it reporting?  Is it a Private or Public IP?

Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."

Beowulf005 (TechnicalUser) (OP)
4 Jul 06 7:02
At my home private network where I input the setting
IP 192.168.0.25
subnet 255.255.255.0
gateway 192.168.0.1
Dns Primary 192.168.0.100
Dns Secondary 4.2.2.2

but when connected it reports
IP 192.168.0.25
subnet 255.255.255.0
gateway 192.168.235.2
        192.168.0.100
        192.168.0.1
Dns Primary 192.168.0.100
Dns Secondary 4.2.2.2
Local network works but internet doesn't.

At work using a hotspot it on auto detect and when connected
IP 192.168.235.156
subnet 255.255.255.0
gateway 192.168.235.2
        192.168.0.100
        192.168.0.1
Dns Primary 10.99.XX.XX
Dns Secondary

For some reason I cannot flush the gateways so only one it being used. I am blowing out the machine to see it that makes any changes

When frustrated remember, in the computer world there is almost always a backdoor.

Scott24x7 (Programmer)
4 Jul 06 7:10
If you have an IP forced into your network settings, a ipconfig /release will have no affect.  If this is the same machine on a wireless network (?) you could be getting different settings for differnt wireless connections...  You should check your the tcp/ip settings under network settings.  If they are entered as hard values, set your PC to Auto Detect, and then issue ipconfig /release ipconfig /renew, see if that fixes your issue.

Best Regards,
Scott

"Everything should be made as simple as possible, and no simpler."

linney (TechnicalUser)
4 Jul 06 16:49
For an Internet connection, my ISP supplies the DNS address, primary and secondary, which I then enter manually.  

With connectivity problems, you can try the "Netsh Winsock Reset" command from the DOS prompt, and you also have Vista's built-in Diagnose and Repair capabilities.
markdmac (MIS)
5 Jul 06 10:59
A handy little script I wrote for your kind of situation.  This lets you save IP configurations and switch between the saved profiles.

CODE

'==========================================================================
'
' NAME: IPSwitcher.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: http://www.thespidersparlor.com
' DATE  : 3/23/2004
'
' COMMENT: This script and more are available in the Admin Script Pack
'          http://www.thespidersparlor.com/vbscript
'
'
'    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
'    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED To
'    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
'    PARTICULAR PURPOSE.
'
'    IN NO EVENT SHALL THE SPIDER'S PARLOR AND/OR ITS RESPECTIVE SUPPLIERS
'    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
'    DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
'    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
'    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
'    OF THIS CODE OR INFORMATION.
'
'==========================================================================


Dim fso,WSHShell
Dim fso,WSHShell
 
 
 
Set fso = CreateObject("Scripting.FileSystemObject")
Set WSHSHell = CreateObject("Wscript.Shell")
Path = "C:\IPCONFIGS"
 
'Create Storage location if not already there
If Not fso.FolderExists(Path) Then
 fso.CreateFolder(Path)
End If
 
'Prompt to activate, create or delete a config
Action = InputBox("Do you want to ACTIVATE, SAVE or DELETE an IP Configuration","What should I do?")
Action = UCase(Action)
 
Call ConfigList
 
Select Case Action
 
Case "ACTIVATE"
     If Len(ConfigList) >0 Then
  What = InputBox("Existing configurations are:" & vbCrLf & vbCrLf & ConfigList & vbCrLf & "Enter config name to activate.","Activate Which Configuration")
 FileName = Path & "\" & What & ".txt"
 WSHShell.Run ("cmd /c netsh -f " & FileName)
 Else
  MsgBox "Sorry there are no configurations to activate"
 End If
 
Case "SAVE"
 If Len(ConfigList) >0 Then
  What = InputBox("Existing configurations are:" & vbCrLf & vbCrLf & ConfigList & vbCrLf & "Enter new config name to save, enter existing name to overwrite.","Save Configuration")
 Else
  What = InputBox("Enter new config name to save.","Save Configuration")
 End If
 FileName = Path & "\" & What & ".txt"
 'MsgBox Filename
 WSHShell.Run ("cmd /c netsh -c interface dump >" & FileName)
 
Case "DELETE"
 If Len(ConfigList) >0 Then
  What = InputBox("Existing configurations are:" & vbCrLf & vbCrLf & ConfigList & vbCrLf & "Enter config name to delete.","Delete Configuration")
  FileName = Path & "\" & What & ".txt"
  fso.DeleteFile(FileName)
 Else
  MsgBox "No configurations saved to delete."
 End If
 
End Select
MsgBox "Done"
 
Function ConfigList
'Read the existing configs
Set oFolder = fso.GetFolder(Path)
 
ThisList = ""  
For Each oFile In oFolder.files
 ThisConfigLength = (Len(oFile.Name)-4)
 ThisConfig = Left(oFile.Name,ThisConfigLength)
 ThisList = ThisList & ThisConfig & vbCrLf
Next
ConfigList = UCase(ThisList)
 
End Function

I hope you find this post helpful.  

Regards,

Mark

Check out my scripting solutions at http://www.thespidersparlor.com/vbscript

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close