• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Switch gateways on the fly

Yes... Make a .cmd script that changes your default gateway with the "route" command. i.e.
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 <gateway ip>
 
Better yet is there an easier way I can keep a computer on my network but not online, and be able to switch to online easily.
 
hmm just disable the default gateway, I have a set of batch files on my laptop to switch networks as it connects to quite a few different ones, see syntax below. Helps to rename your network connections something that is short and one word.

netsh int ip set address *name of connection* *static/dynamic* *if static fill the rest out* *ip* *subnet mask* *default gateway* 1

EG:
netsh int ip set address LAN static 10.0.0.4 255.255.255.0 10.0.0.10 1
netsh int ip set dns LAN static 10.0.0.8

so if yours is static you could do
netsh int ip set address LAN static 192.168.0.10 255.255.255.0 1.1.1.1 1
OR if if is dynamic you can still set the dns to an incorrect dns and it won't resolve anything...
That would stop internet connectivity, in a simple batch file.
 
Cool I got Net switcher, but when I switch to a profile with a gateway that doesn't exist, I can't access the other computer on my LAN. I would like to retain LAN connectivity but not be online.

I thought about changing DNS servers instead of gateway but if I change DNS the computer could still be accessed via IP correct?
 
DNS server settings is only used for DNS resolution. It won;t have any effect on your local LAN connectivity. If you are properly wired to your LAN, yes you can always get to your other box by ip address. If you really wanted to access it by name, make a manual entry in your hosts file as it take precendence before your dns servers.
 
Back
Top