--->A situation where you might knowingly/unknowingly configure two default gateways:
Using a desktop PC with two NICs or a laptop with a Wireless NIC and a LAN, you try to configure a brand new network device or change already configured network device like a Access point, Switch, Router, Wireless Bridge etc at your work place or at home. You would be on your corp-network/Internet through your primary card i.e. say NIC1. You will connect the device to your laptop/PC using a cross-over cable if a router or a Straight-through cable if a switch to your second NIC, and then you put in IP, Netmask, Gateway info on this card, say NIC2. With this setup you will have network connectivity issues. This is due to fact that, your PC/laptop's routing table has two default routes with two different EXIT INTERFACES causing confusion as to which one to use to send packets. Below is routing table of one such example from a Windows PC.
Here Corp-network is 10.10.100.0 and the Network device is on 192.168.2.0 Subnet.
IPv4 Route Table
===========================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.104 30
0.0.0.0 0.0.0.0 10.10.100.1 10.10.100.5 30
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.104 286
192.168.2.104 255.255.255.255 On-link 192.168.2.104 286
192.168.2.255 255.255.255.255 On-link 192.168.2.104 286
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.2.104 286
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.2.104 286
===========================================================
From the above table we can see that there are two default route entries and so the PC would be confused which interface to use as its exit interface.
Solution:
Solution to this is to leave out the Default Gateway entry blank on the NICs of the PC, like in this example: -------------------------->
With this setup you wouldn't have any network issues reaching your corp-net/internet. Per the example in picture PC now has only one route entry for 192.168.2.0 Sub-net whereas it had two entries before, one for 0.0.0.0 i.e. "any" and another for "192.168.2.0", Notice this as highlighted in the route table above. Now the your PC knows to only send packets destined for 192.168.2.0 Sub-net on NIC2.
If you want to be more granular and tell your PC exactly which NIC to use when sending packets with certain destination subnet, you can do so by manually adding a route entry like below.
C:> ROUTE ADD 192.168.X.0 MASK 255.255.255.0 192.168.X.1
Description: route ADD “network” MASK “subnet mask” “gateway ip”
What this is saying is anything with destination IP in 192.168.X.0 subnet send it to gateway 192.168.X.1
With this setup you should have no issues reaching your Corp-Network/Internet as well as the 192.168.2.0 network simultaneously.