TEXT   45

windows add persistent static route

Guest on 23rd August 2022 04:00:44 AM

  1. route -p add <destination> mask <subnet mask> <gateway> metric <cost metric> if <interface>
  2.  
  3. where:
  4. metric: lower is higher priority
  5. interface: the interface number is the one you see for the interface when
  6. doing "route print", e.g. "0x1" is the loopback interface
  7.  
  8. the routes are stored in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes

Raw Paste


Login or Register to edit or fork this paste. It's free.