The situation is as follows. On a computer there are two network cards (suppose 1 and 2). On the card 1, only the Internet works (via an NTE-2 modem). Internet BUT also works on card 2 via an ADSL modem (2 is needed for operation — its own channel has been configured but megabyte traffic). Question. How to configure the routing so that the Internet works ONLY THROUGH the map 1. And only the map 2 was used for work. I will be glad to advice!
1 answer
For card 1 in the connection settings you specify everything: IP-address, DNS, gateway. For the second - leave only the IP-address (if there is not a specific DNS server, you can not write it), you do not need to register the gateway.
Now for Map 2 you will have to configure all the routes you need to work:
ROUTE -p ADD ip_address_or_network MASK mask_value gateway Where:
- ip_address_or_network - IP of the remote network / host
- mask_value - the corresponding mask
- gateway - router (in your case, this is the internal IP of your modem connected to the 2nd card)
|