someone49
November 3rd, 2007, 06:04 PM
Neighbor of mine is using windows XP prof sp2
he has two Internet connections one primary and one backup. He works from home so he needs redundancy.
The Primary is RoadRunner cable (Internal Intel NIC)
Secondary is SWBC DSL (external Linksys NIC)
The problem that we encounter is when switching between primary and secondary is obviously it wont work right away. I usually just go to the CMD and do Ipconfig/release then ipconfig/renew. That usually gets him back and running.
I thought that i could possibly create a batch file to automate this process so he could just run the file after switching over. My goal would be to have the script release then renew, then ping google for instance and check if you get 0% Loss and if not repeat the whole process until you get 0% loss.
This is what i have so far
Ipconfig/release
Ipconfig/renew
Ipconfig/flushdns
ping www.google.com
( Here i suppose i need some kind of IF statement, but thats where i get lost)
Any suggestions?
Thanks in advance
-Anthony
he has two Internet connections one primary and one backup. He works from home so he needs redundancy.
The Primary is RoadRunner cable (Internal Intel NIC)
Secondary is SWBC DSL (external Linksys NIC)
The problem that we encounter is when switching between primary and secondary is obviously it wont work right away. I usually just go to the CMD and do Ipconfig/release then ipconfig/renew. That usually gets him back and running.
I thought that i could possibly create a batch file to automate this process so he could just run the file after switching over. My goal would be to have the script release then renew, then ping google for instance and check if you get 0% Loss and if not repeat the whole process until you get 0% loss.
This is what i have so far
Ipconfig/release
Ipconfig/renew
Ipconfig/flushdns
ping www.google.com
( Here i suppose i need some kind of IF statement, but thats where i get lost)
Any suggestions?
Thanks in advance
-Anthony