ip-stories.com

  •  

    September 2010
    M T W T F S S
    « Aug    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Web Stat Counter

    • Search This Blog :

    • Add url
    • Add Me on FB

      Rahman Isnaini's Facebook profile
    • Hurricane Electric IPv6 Cert

      IPv6 Certification Badge for risnaini
    • comments

    • Visitors Referred From :

    • Geo Stats

    • Categories

    [Juniper] Activate / Deactivated Command

    Posted by admin on December 14th, 2009

    Activate / Deactivate Command is more like disabling / enabling configuration in JunOS.
    The purpose is just to keep the setting / configuration by disabling / deactivating it.
    Once you need to activate just one step to do :)

    Drawback is keeping more config file size.
    For small config changes is fine to have.

    Here the steps example deactivating a term in a policy option - policy statement named “IMPORT-PCCW”

    Steps :
    ===================================================
    admin@junOS# deactivate term prefered-outgoing

    [edit policy-options policy-statement IMPORT-PCCW]
    admin@junOS# show
    inactive: term prefered-outgoing {
    from as-path PACNET;
    then {
    local-preference 6200;
    accept;
    }
    }
    term else {
    from as-path ALL ;
    then reject;
    }

    [edit policy-options policy-statement IMPORT-PCCW]

    admin@junOS# commit
    commit complete

    [edit policy-options policy-statement IMPORT-PCCW]
    ====================================================

    The Effect :

    a. Before :

    admin@junOS# run show bgp summary
    Groups: 11 Peers: 13 Down peers: 4
    Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
    inet.0            926409     313202          0          0          0          3
    Peer               AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Damped…
    xxx.yyy.ddd.aaa     ABCD     349732    19848       0       0  6d 21:04:56    40/300121/0          0/0/0

    b. After :

    admin@junOS# run show bgp summary
    Groups: 11 Peers: 13 Down peers: 4
    Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
    inet.0            926409     313202          0          0          0          3
    Peer               AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Damped…
    xxx.yyy.ddd.aaa   ABCD     349732    19848       0       0  6d 21:04:56    0/300123/0          0/0/0

    Daily Juniper Simple Notes
    – a. rahman isnaini r.sutan

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>