Strapower

Miro' Bistrot

Comando ROUTE – cambiare il default gateway su windows da DOS

Posted on Gennaio 27, 2011 in the computer-hardware category

Comando ROUTE - cambiare il default gateway su windows da DOS

Il comando Route è un comando con il quale è possibile impostare una rotta statica a una determinata mask e un determinato ip

Descrivo alcune semplici operazioni possibili con il comando ROUTE
con i quali si può cambiare gateway predefinito su Windows

Syntax route [-f] [-p] [Command[Destination] [mask Network] [Gateway] [metric Metric]] [if Interface]]

Example:

To display the entire contents of the IP routing table, type:

route print

To display the routes in the IP routing table that begin with 10., type:

route print 10.*

To add a default route with the default gateway address of 192.168.12.1, type:

route add 0.0.0.0 mask 0.0.0.0 192.168.12.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1 , type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a persistent route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0 and the next hop address of 10.27.0.1, type:

route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and the cost metric of 7, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7

To add a route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, the next hop address of 10.27.0.1, and using the interface index 0×3, type:

route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0×3

To delete the route to the destination 10.41.0.0 with the subnet mask of 255.255.0.0, type:

route delete 10.41.0.0 mask 255.255.0.0

To delete all routes in the IP routing table that begin with 10., type:

route delete 10.*

To change the next hop address of the route with the destination of 10.41.0.0 and the subnet mask of 255.255.0.0 from 10.27.0.1 to 10.27.0.25, type:

route change 10.41.0.0 mask 255.255.0.0 10.27.0.25

http://www.aoddy.com/2007/11/10/how-to-change-default-gateway-on-windows-by-command-line/

Comments

11 Responses to “Comando ROUTE – cambiare il default gateway su windows da DOS”

  1. My Homepage on Novembre 5th, 2024 15:14

    … [Trackback]

    […] Find More Informations here: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  2. STD Test on Novembre 19th, 2024 02:30

    … [Trackback]

    […] Here you can find 13649 more Information on that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  3. ??????? ais on Novembre 21st, 2024 00:24

    … [Trackback]

    […] There you will find 97446 more Information to that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  4. marriage counseling fairfax va on Novembre 22nd, 2024 10:52

    … [Trackback]

    […] Info on that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  5. slot99 on Novembre 25th, 2024 01:18

    … [Trackback]

    […] Information to that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  6. ?????????????? on Novembre 27th, 2024 01:55

    … [Trackback]

    […] There you will find 66240 more Info to that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  7. ???????? on Novembre 27th, 2024 12:10

    … [Trackback]

    […] Find More here on that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  8. link on Novembre 27th, 2024 20:52

    … [Trackback]

    […] Find More here to that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  9. Onion on Novembre 28th, 2024 09:17

    … [Trackback]

    […] Here you can find 71183 additional Info on that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  10. thailand tattoo on Novembre 29th, 2024 00:18

    … [Trackback]

    […] Read More on that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

  11. ????????????? on Novembre 29th, 2024 00:31

    … [Trackback]

    […] Information to that Topic: strapower.com/blog/computer-hardware-windows-linux/comando-route-cambiare-il-default-gateway-su-windows-da-dos/ […]

Leave a Comment