Como fazer com que o Windows use diferentes NICs com base em URL ou IP

0

Eu tenho duas placas de rede no meu PC, conectando-as a redes diferentes. Como posso alterná-los com base em URLs ou IPs que estou visitando?

Eu uso tabelas de roteamento para isso no Linux, talvez haja funcionalidades similares no Windows?

    
por dotslashlu 10.11.2015 / 07:29

1 resposta

1

Eu uso tabelas de roteamento para isso no Linux, existe algo similar no Windows?

O Windows tem o comando rota :

ROUTE.exe

Manipulate network routing tables. Route packets of network traffic from one subnet to another by modifying the route table.

Syntax

Display route details:

ROUTE [-f] PRINT [destination_host] [MASK subnet_mask_value] [gateway]    
    [METRIC metric] [IF interface_no.]

Add a route:

ROUTE [-f] [-p] ADD [destination_host] [MASK subnet_mask_value] [gateway] 
    [METRIC metric] [IF interface_no.]

Change a route:

ROUTE [-f] CHANGE [destination_host] [MASK subnet_mask_value] [gateway] 
    [METRIC metric] [IF interface_no.]

Delete a route:

ROUTE [-f] DELETE [destination_host] [MASK subnet_mask_value] [gateway] 
    [METRIC metric] [IF interface_no.] 

Key

  • -f - Clear (flush) the routing tables of all gateway entries.

    If this is used in conjunction with one of the commands, the tables are cleared prior to running the command.

  • destination_host - The address (or set of addresses) that you want to reach.

  • -p - Create a persistent route - survives system reboots. (not supported in Windows 95)

  • subnet_mask_value - The subnet mask value for this route entry.

    This defines how many addresses are there.

    If not specified, it defaults to 255.255.255.255.

  • gateway - The gateway.

  • interface - The interface number (1,2,...) for the specified route. If the option IF interface_no is not given, ROUTE will try to find the best interface available.

  • metric - The metric, ie. cost for the destination.

Origem rota

Leitura Adicional

por 12.04.2016 / 11:36