I have several network cards but for know I need to route all remote connections to one of them. So I added the following route:
route add 0.0.0.0 mask 0.0.0.0 192.168.101.1 metric 1 (where 192.168.101.1 is a default gateway of required network card)
But now local connections to locahost do not work. How can I keep them working?
If you want your default route to be a specific NIC, this is accomplished through your Network Connections > Advanced > Advanced Settings… > Adapters and Bindings tab > Connections window (I’m currently on Vista, but is the same area for all OS). You can change the order in which Windows will use the NICs. Just move the NIC you want to the top of the list and that should take care of the default route (as long as you don’t have any specific routes that would supersede the NIC order).
You could also add specific route as you have done and possibly adjust the metric if there are conflicting routes as Hyppy stated, but you’d also need the -p switch to make the route persistent across reboots. If you use the first method, you shouldn’t need to add any routes at all.
Leave a comment
- What is the easiest way to upgrade my existing Perl 5.14 to Perl 5.16 on FreeBSD 9 using the ports system?
- Know if mysql has done its job
- Redirect https .com to https .co.uk without a valid SSL cert on .com without DNS change
- Why is it a bad idea to use customer email as from address
- 100% packets dropped on first RX queue on 3/5 raid6 iSCSI NAS devices using intel igb (resolved)