There are 2 network cards with the following settings:

First:

  • Ip : 192.168.1.11
  • Mask : 255.255.255.0
  • Gateway : 192.168.1.1
  • DNS : 95.56.237.24

The second

  • Ip : 10.10.20.244
  • Mask : 255.255.255.0
  • Gateway : 10/10/20/10
  • DNS : 172.16.0.24

With the first one, you can access the Internet, the second is necessary to communicate with other computers / devices on the local network

How to make the Internet work on this computer and access to other computers from LAN

    1 answer 1

    Because You did not report what OS you have, then suppose Windows.

    Open the command prompt and execute the following commands in sequence:

    route ADD 0.0.0.0 192.168.1.1 route ADD 10.10.20.0 mask 255.255.255.0 10.10.20.10 

    The first command sets as the default gateway address 192.168.1.1

    The second team says that everything addressed to the subnet 10.10.20.0/24 should be sent on 10.10.20.10

    We check the correctness of the entered settings: for example, you can ping some Internet address, similarly we check the LAN if everything works, you need to make these routes permanent, you must either delete the entered routes using the route delete @созданный ранее маршрут command, the route delete @созданный ранее маршрут or just reboot (routes will disappear after reboot) and register them again using the -p key route -p add @Необходимый маршрут

    • Thank you very much helped out. I would like to add that it is safer to run the command line as an administrator. - user206487
    • Prescribing a route on 10.10.20.0/24 does not make the slightest sense - it is locally reachable and does not need gateways. But the route 10.0.0.0/8 -> 10.10.20.10 I would register, for sure there are more subnets in LAN. - Pavel Mayorov