[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


