Criando Rotas estaticas no Windows

Uma forma de se utilizar duas conexões de dados ao mesmo tempo no Windows é especificar "no braço" parte da tabela de roteamento utilizada pelo sistema operacional, de forma a determinar que, dependendo do destino, pacotes de dados sigam por esta ou aquela conexão de dados.

Utilizo tal artimanha em meu notebook no escritório, para poder utilizar ao mesmo tempo a Internet através de um modem EvDO da Vivo, e ter acesso à LAN e WAN corporativos através da conexão Wi-Fi.

Veja aqui excelente tutorial (em inglês) sobre como manualmente especificar uma rota no Windows:

Atenção: para configurar uma rota de forma permanente, faz-se necessário o uso do -p depois do comando ROUTE e antes dos outros parâmetros, caso contrário a rota definida só será mantida durante a sessão em vigor, não resistindo a um reboot do sistema operacional.

E caso cometa alguma gafe e configure alguma rota indevida, eis como remover uma rota da tabela de roteamento do Windows:

Use basicamente 6 passos para eliminar rotas estáticas no Windows.

  1. Click Start -> Run, and enter Cmd, and then press Enter to open acommand prompt window. In Windows Vista or Windows 7, use Start Search instead.

  2. The syntax for the route command to delete a routing table entry is:route delete [destination]

    For example,

    route delete 192.168.1.0

  3. Press enter after entering the command to delete and remove a route.

  4. After deletion, view the routing table to verify that the correct routing table rule was deleted.


Alternatively, administrator of Windows Server operating system such asWindows Server 2003 and Windows Server 2008 can also use Routing andRemote Access management console to remove a route.

  1. Click Start -> Administrative Tools -> Routing And Remote Access to open the Routing And Remote Access MMC snap-in console.

  2. Expand the computer node in the console tree. If the routing and remote access function is not enabled for the PC yet, right click and selectConfigure and Enable Routing and Remote Access to setup the node for LAN routing (under custom configuration).

  3. Expand IP Routing child.

  4. Right click on Static Routes and select Show IP Routing Table from the context menu.

  5. Current static routes will be displayed in the right pane. Locate and select the static route that you want to remove from the IP routing table listing.

  6. Right-click the specific static route, and then select Delete from the context menu.

  7. The static route is immediately removed from the routing table.


 

Segue passo a passo para adicionar as Rotas.

Add IP Route Rules into Windows Routing Table in Command Prompt with Route Command

  1. Click Start -> Run (or at Start Search in Windows Vista or Windows 7), and type in Cmd, then press Enter to open a command prompt window.

  2. The syntax of route command to add a routing table entry:route ADD [destination IP address or subnet] MASK [subnet mask] [gateway IP address] [metric] IF [interface]

    Not all parts of the syntax is mandatory. Some if optional, such as metric and network interface. Example command to add a route to 10.1.1.0/24 subnet network through 192.168.1.8 gateway router:

    route ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.8

    To make the route persistent across boots of the system, use -p flag in addition to route add command. Else, the route is not preserved once system restarts. For example:

    route -p ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.8

    Note: route help will display different commands and switches supported by route command.

  3. Press Enter to execute the route command.

  4. View the routing table to verify that the new route rules is added correctly.Note: If any part of the information in the route is wrong, user has to use the route delete command to delete the incorrect entry, and then use route add command as illustrated above to re-enter the routing table entry.


Add New Routing Table Entry Using Routing and Remote Access Console

  1. Click Start -> Administrative Tools -> Routing And Remote Access.

  2. If the computer is already configured for routing and remote access, skip to step 5. Else, if the server is not yet configured for routing and remote access, right click on the computer node (or click on Action menu), and then click on Configure and Enable Routing and Remote Access option.Configure and Enabling Routing and Remote Access

    Note: If you don’t see your PC (normally local system will be added automatically), right clock on root of tree, and click on Add Server to add This Computer.

  3. While configuration the computer for routing and remote access, selectCustom configuration, and click Next button.Custom Configuration

  4. Check the checkbox of LAN routing, and click Next button.LAN Routing

  5. Click on Finish button and if prompted, opt to start the service.

  6. In the console tree, expand the computer node to add the IP routing rule, and then expand the IP Routing sub-tree.

  7. Right click on Static Routes, and click Add Static Route on the right click menu.Create New Static Route

  8. A Static Route dialog box will open.Add New Static Route

  9. Select the appropriate network connection to route from the Interfacedrop-down list box, and fill in the value for DestinationNetwork mask,Gateway and Metric. Leave the Use this route to initiate demand-dial connections option checkbox enabled if the route is to be used for demand-dial connections.

  10. Click OK.


 

Postar um comentário

Comente sem faltar com respeito - ;-)

Postagem Anterior Próxima Postagem