How to delete an IP route?how to set what route would be added when bringing interface up Update Route Entry...

How did researchers find articles before the Internet and the computer era?

Most elegant way to write a one shot IF

How to answer "write something on the board"?

Does any Greek word have a geminate consonant after a long vowel?

Chords behaving as a melody

Can a function nowhere continuous have a connected graph?

Are these intended activities legal to do in the USA under the VWP?

Could human civilization live 150 years in a nuclear-powered aircraft carrier colony without resorting to mass killing/ cannibalism?

How can I deal with extreme temperatures in a hotel room?

Ordered list of OR journals

Golf the smallest circle!

How can I write a panicked scene without it feeling like it was written in haste?

Why do we use a cylinder as a Gaussian surface for infinitely long charged wire?

Matrix decomposition

Different budgets within roommate group

Should I share with a new service provider a bill from its competitor?

What is the purpose of putting a capacitor on the primary side of a step-down transformer?

How exactly is a normal force exerted, at the molecular level?

Who are these Discworld wizards from this picture?

I hit a pipe with a mower and now it won't turn

Why is Japan trying to have a better relationship with Iran?

Procedurally generate regions on island

Boolean Difference with Offset?

Is it legal to call shared_future::get() multiple times on the same instance in the same thread?



How to delete an IP route?


how to set what route would be added when bringing interface up Update Route Entry On another DD-WRT upon New IP address (WAN) SSH linuxRelationship bettwen route flags using route versus route flags using cat /proc/net/routeCannot add routeRemove route from routing table by positionCan not delete/add default routeroute table with eth0 and ppp0 brokenpppd default route configurationHow to delete ip route by URL?Redhat route InfiniBand problem






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







9















How to delete a route like the one below from a UNIX server?



122.252.228.38/255.255.255.255  122.252.228.38     UH        0  lan4       4136









share|improve this question

























  • What Unix is this on. It may differ depending on Unix flavour.

    – Kusalananda
    Nov 9 '17 at 12:52











  • Please also add the command that you used to generate this output.

    – igal
    Nov 9 '17 at 13:12


















9















How to delete a route like the one below from a UNIX server?



122.252.228.38/255.255.255.255  122.252.228.38     UH        0  lan4       4136









share|improve this question

























  • What Unix is this on. It may differ depending on Unix flavour.

    – Kusalananda
    Nov 9 '17 at 12:52











  • Please also add the command that you used to generate this output.

    – igal
    Nov 9 '17 at 13:12














9












9








9


2






How to delete a route like the one below from a UNIX server?



122.252.228.38/255.255.255.255  122.252.228.38     UH        0  lan4       4136









share|improve this question
















How to delete a route like the one below from a UNIX server?



122.252.228.38/255.255.255.255  122.252.228.38     UH        0  lan4       4136






networking route






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 '17 at 13:07









Jeff Schaller

47.2k11 gold badges68 silver badges154 bronze badges




47.2k11 gold badges68 silver badges154 bronze badges










asked Nov 9 '17 at 12:42









Nagaraj GanneNagaraj Ganne

561 gold badge1 silver badge2 bronze badges




561 gold badge1 silver badge2 bronze badges













  • What Unix is this on. It may differ depending on Unix flavour.

    – Kusalananda
    Nov 9 '17 at 12:52











  • Please also add the command that you used to generate this output.

    – igal
    Nov 9 '17 at 13:12



















  • What Unix is this on. It may differ depending on Unix flavour.

    – Kusalananda
    Nov 9 '17 at 12:52











  • Please also add the command that you used to generate this output.

    – igal
    Nov 9 '17 at 13:12

















What Unix is this on. It may differ depending on Unix flavour.

– Kusalananda
Nov 9 '17 at 12:52





What Unix is this on. It may differ depending on Unix flavour.

– Kusalananda
Nov 9 '17 at 12:52













Please also add the command that you used to generate this output.

– igal
Nov 9 '17 at 13:12





Please also add the command that you used to generate this output.

– igal
Nov 9 '17 at 13:12










2 Answers
2






active

oldest

votes


















15














You haven't included which system you're on or which tool-set you're using, but the two most common commands for managing the routing tables are the route and ip commands.



Here is how you might remove the route by using the route command (from the net-tools package):



route del -net 122.252.228.38 netmask 255.255.255.255


And here is how you might delete the same route using the ip command (from the iproute2 package):



ip route del 122.252.228.38/32





share|improve this answer































    0














    sudo ip route del 122.252.228.38/32   # or any valid selector


    sudo ip addr flush dev DEVICE    # then flush the cache and the route will be gone





    share|improve this answer




























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403511%2fhow-to-delete-an-ip-route%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      15














      You haven't included which system you're on or which tool-set you're using, but the two most common commands for managing the routing tables are the route and ip commands.



      Here is how you might remove the route by using the route command (from the net-tools package):



      route del -net 122.252.228.38 netmask 255.255.255.255


      And here is how you might delete the same route using the ip command (from the iproute2 package):



      ip route del 122.252.228.38/32





      share|improve this answer




























        15














        You haven't included which system you're on or which tool-set you're using, but the two most common commands for managing the routing tables are the route and ip commands.



        Here is how you might remove the route by using the route command (from the net-tools package):



        route del -net 122.252.228.38 netmask 255.255.255.255


        And here is how you might delete the same route using the ip command (from the iproute2 package):



        ip route del 122.252.228.38/32





        share|improve this answer


























          15












          15








          15







          You haven't included which system you're on or which tool-set you're using, but the two most common commands for managing the routing tables are the route and ip commands.



          Here is how you might remove the route by using the route command (from the net-tools package):



          route del -net 122.252.228.38 netmask 255.255.255.255


          And here is how you might delete the same route using the ip command (from the iproute2 package):



          ip route del 122.252.228.38/32





          share|improve this answer













          You haven't included which system you're on or which tool-set you're using, but the two most common commands for managing the routing tables are the route and ip commands.



          Here is how you might remove the route by using the route command (from the net-tools package):



          route del -net 122.252.228.38 netmask 255.255.255.255


          And here is how you might delete the same route using the ip command (from the iproute2 package):



          ip route del 122.252.228.38/32






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 '17 at 13:17









          igaligal

          6,37618 silver badges39 bronze badges




          6,37618 silver badges39 bronze badges

























              0














              sudo ip route del 122.252.228.38/32   # or any valid selector


              sudo ip addr flush dev DEVICE    # then flush the cache and the route will be gone





              share|improve this answer






























                0














                sudo ip route del 122.252.228.38/32   # or any valid selector


                sudo ip addr flush dev DEVICE    # then flush the cache and the route will be gone





                share|improve this answer




























                  0












                  0








                  0







                  sudo ip route del 122.252.228.38/32   # or any valid selector


                  sudo ip addr flush dev DEVICE    # then flush the cache and the route will be gone





                  share|improve this answer















                  sudo ip route del 122.252.228.38/32   # or any valid selector


                  sudo ip addr flush dev DEVICE    # then flush the cache and the route will be gone






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 39 mins ago









                  Jeff Schaller

                  47.2k11 gold badges68 silver badges154 bronze badges




                  47.2k11 gold badges68 silver badges154 bronze badges










                  answered 1 hour ago









                  Amos FolarinAmos Folarin

                  1905 bronze badges




                  1905 bronze badges






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403511%2fhow-to-delete-an-ip-route%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                      The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                      Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...