windows view and configure routing

Open cmd command window with administrator

  1. route print
    View all routing table information
    Insert picture description here

  2. route add192.168.0.0 mask255.255.0.0 192.168.20.2
    add route (temporary)

    route -p add192.168.0.0 mask255.255.0.0 192.168.20.2
    add permanent route

    route add192.168.0.0 mask255.255.0.0 192.168.20.2 METRIC 3 IF 2
    Add a static route, specify the number of heartbeats and the number of network card ports

  3. route delete192.168.0.0 mask255.255.0.0 192.168.20.2
    delete the added route

  4. route change192.168.0.0 mask255.255.0.0 192.168.20.3 METRIC 3 IF 2
    Modify routing (only used to modify gateway or metric)

Guess you like

Origin blog.csdn.net/qq_41885819/article/details/107360679