Add deactivate stuff

This commit is contained in:
Denys Fedoryshchenko
2023-09-06 07:13:05 +03:00
parent 416d41b623
commit 8aab6de65b
+61
View File
@@ -212,6 +212,28 @@ system {
}
```
## Deactivate parts of config
You can "deactivate" parts of config, so it will be removed from config, but it will be still present in the system, so you can activate it back without reconfiguring it.
```
deactivate interfaces xe-0/0/0
or
deactivate protocols bgp group OGERO
or
deactivate vlans CUSTOMER100
```
to activate back:
```
activate interfaces xe-0/0/0
or
activate protocols bgp group OGERO
or
activate vlans CUSTOMER100
```
## Tuning
After installing switch it is recommended to do certain tuning (which i often forget) to avoid problems in the future.
@@ -330,6 +352,28 @@ QFX, EX4600, EX8200, EX9200
```
Attention to *native-vlan-id*. You might need to add native vlan also to members. (please check if it is mandatory and send PR to update docs)
## Interface
### Shutdown interface
```
root@Juniper# set interfaces ge-0/0/1.0 disable << This is cisco equivalent of “shutdown”
root@Juniper# delete interfaces ge-0/0/1.0 disable << This is cisco equivalent of “no shutdown”
```
### Deactivate interface
Juniper have something unique, you can deactivate interface, which means it will be removed from configuration, but it will be still present in the system, so you can activate it back without reconfiguring it.
Deactivate is a Junos feature that deactivates configuration snippets and should NOT be confused with disabling or shutting down interfaces.
Deactivating a configuration on an interface will remove the effect of the configuration without removing it. However, it will keep the interface in UP state, which can impact routing and other functions for L2 and L3 protocols to detect the changes.
```
deactivate interfaces xe-0/0/0
```
## Routing
@@ -393,6 +437,23 @@ Also dont forget to set your ASN in routing-options
set routing-options autonomous-system 12345
```
You can reset BGP session by following command:
```
clear bgp neighbor y.y.y.y
```
Also you can temporary "remove" BGP configuration by deactivating it:
```
deactivate protocols bgp group OGERO
```
To activate back:
```
activate protocols bgp group OGERO
```
## Bonding