Deleting Statement from JunOS Configuration
Here example for deleting a statement from JunOS Configuration. I use BGP configuration for example.
- [edit]
- admin@dailyconfig# delete protocols bgp
- [edit]
- admin@dailyconfig# show
- [edit]
- admin@dailyconfig#
- Using Regular Expression to Delete Related Items from JunOS Configuration.
- Example:
Delete multiple T1 interfaces in the range from t1-0/0/0:0 through t1-0/0/0:23:
- admin@dailyconfig# wildcard delete interfaces t1-0/0/0:.*
- matched: t1-0/0/0:0
- matched: t1-0/0/0:1
- matched: t1-0/0/0:2
- Delete 3 objects? [yes,no] (no) no
Delete static routes in the range from 172.0.0.0 to 172.255.0.0:
- admin@dailyconfig# wildcard delete routing-options static route 172.*
- matched: 172.16.0.0/12
- matched: 172.16.14.0/24
- matched: 172.16.100.0/24
- matched: 172.16.128.0/19
- matched: 172.16.160.0/24
- matched: 172.17.12.0/23
- matched: 172.17.24.0/23
- matched: 172.17.28.0/23
- ...
- Delete 13 objects? [yes,no] (no)
- Completely remove configuration.
- admin@dailyconfig#load factory-default
- But, it's good before doing complete erase configuration, to have a rescue config.
- admin@dailyconfig#request system configuration rescue
0 comments
Post a Comment