• 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.

Switching between two connections?

archcommus

Diamond Member
If you're computer has two internet connections is there any easy way to "switch" between the two? Or to specify which connection programs use? It could be any kind, like two ethernet, or one ethernet one dial-up, or one ethernet one wireless, etc.
 
You can switch default gateways with a route statement at the Dos prompt:

Route delete 0.0.0.0 netmask 0.0.0.0 <your current DG>

then

Route add 0.0.0.0 netmask 0.0.0.0 <your new DG here>

if you know the address range that the program is going to talk to you can put in a static route. For example, if you wanted to send all NTP requests to time.nist.gov (192.43.244.18) via your second connection (example 192.168.1.254) you can add the static:

route add 192.43.244.18 netmask 255.255.255.255 192.168.1.254

The specific host gets a 32 bit mask. If you wanted all traffic to 192.43.244.0 to go out that connection you'd use a 24 bit mask

route add 192.43.244.0 netmask 255.255.255.0 192.168.1.254

Otherwise, unless the application specifically asks for a specific connection / gateway, there's no way to direct it out a specific connection.

FWIW

Scott
 
yes, it's called setting up hardware profiles.
right click my computer > properties > hardware tab > at the bottom is a section called hardware profiles.

click copy to copy the default profile, and make what ever hardware changes you want to make i.e. disable the wired nic and 56k modem) then save that profile and name it Wireless profile.

do the same for the other hard changes you want to make and when you rebbot it will ask you to choose a hardware profile such as "wireless profile" and voila! wireless nic only.
 
Scottmac has it right, you can specify connections if they are going to a specific IP range/DNS name using routeing statements.

i.e. if I want to connect to my work with connection A, and then use connection B for everythign else, I would do a route add work.ips gw ip.of.connection1

and don't have a default gateway on connection1
 
Is there a way to switch between profiles without restarting?

I'm sure ScottMac is on the right track, I just need to reread his post a few times to figure out what the hell he's talking about.
 
Originally posted by: nweaver
Jack has it right, you can specify connections if they are going to a specific IP range/DNS name using routeing statements.

i.e. if I want to connect to my work with connection A, and then use connection B for everythign else, I would do a route add work.ips gw ip.of.connection1

and don't have a default gateway on connection1
Okay can we try to apply this to a specific example? How about using a dial-up connection for POP3 via Outlook and ethernet for regular browsing.
 
so for your dialup connection, you ditch the default gateway (may be tough, since it's probably DHCP). On ethernet, you have your normal default gateway. Open up a command windos (syntax may not be perfect) and type "route add ip.of.pop3.server gw gateway.ip.to.pop.server -p (optional, makes it a persistant across reboots route)
 
And that would make any POP3 use that gateway regardless of which program was performing it?

How do find the IP of the server and the gateway of the server? It's Gmail.

And what about SMTP for outgoing mail via POP3?
 
find the IP's of your mail stuff (i.e. nslookup pop.gmail.com or whatever) and then copy that IP down, use those.

This will tell your PC "When talking to 10.10.10.10 always use gateway 1.1.1.1 (dialup gateway)
 
Back
Top