Junos OS

last person joined: yesterday 

Ask questions and share experiences about Junos OS.
  • 1.  How to delete routing config??

    Posted 10-14-2015 05:12

    Hi all,

    I'm here to ask you about deleting.

     

    In order to delete content in routing table, I used command "delete" like this.

     

     

    routing-options {
    static {

    route 0.0.0.0/0 next-hop 80.80.11.10;

    ...

     

     

    I used this "delete routing-options static route 0.0.0.0/0 next-hop 80.80.11.10"

     

    But after that, Red configured value was still left in the routing table..

     

    Why doesn't this content disappear??

     

    There is any other method?

     

    Regards thanks



  • 2.  RE: How to delete routing config??
    Best Answer

     
    Posted 10-14-2015 05:20

    It wasn't deleted, and probably you received a warning, because you cannot have a static route with no next-hop.

     

    Can you try "delete routing-options static route 0.0.0.0/0"?

     

    What are you trying to do? To delete 0.0.0.0/0 route? Or to delete the current next-hop and then add another one?


    =====

    If this worked for you please flag my post as an "Accepted Solution" so others can benefit. A kudo would be cool if you think I earned it.



  • 3.  RE: How to delete routing config??

    Posted 10-14-2015 06:13

    Thank you for reply, parau.

     

    But as you told me, I tried this command "delete routing-options static route 0.0.0.0/0". but failed. 

    It was same situation.

     

    Q : What are you trying to do? To delete 0.0.0.0/0 route? Or to delete the current next-hop and then add another one?

    A : Both of them, I want to delete 0.0.0.0/0 next-hop 80.~

     

    hmm what should I do..?



  • 4.  RE: How to delete routing config??

     
    Posted 10-14-2015 06:21

    It should be just like below. If this is not working for you please share "show routing-options | display set  ".

     

     

    root@R14# show routing-options                      
    static {
        route 0.0.0.0/0 next-hop 10.204.3.254;
    }

    [edit]
    root@R1# delete routing-options static route 0.0.0.0/0

    [edit]
    root@R1# show routing-options

    [edit]
    root@R1#



  • 5.  RE: How to delete routing config??

    Posted 10-14-2015 06:25

    Actually, I left my office.. my country's time is PM10:23 now

     

    But I already did it "delete routing-options static route 0.0.0.0/0"...

     

    But failed.

     

    For that reason, I posted my question to this forums..

     

    Hmm I'm worried that you don't reply to me due to time difference.

     

    Maybe when I wored hard tomorrow, your country time is dawn..?

     

     

    I want you to let me know how to delete it through another method.

     

    What do you think that you suppose me "you should like this"..

     

    Thank you.



  • 6.  RE: How to delete routing config??

    Posted 10-14-2015 19:18

    Ah.. I forgot typing command "commit".

     

    After typing, it was going well.

     

    Thanks a lot!!