Bài viết này cung cấp thông tin về các phương pháp để reset switch Juniper EX2200 về cấu hình mặc định của nhà máy. Do sự khác biệt về phần cứng vật lý, quy trình đặt lại mặc định nhà máy của EX2200 khác với reset switch Juniper EX3200 và EX4200.
Equest system zeroize Junos CLI xóa tất cả dữ liệu, bao gồm các tệp cấu hình và nhật ký, như được hiển thị bên dưới:
lab@EX2200> request system ? Possible completions: certificate Manage X509 certificates configuration Request operation on system configuration halt Halt the system license Manage feature licenses logout Forcibly end user's CLI login session power-off Power off the system reboot Reboot the system scripts Manage scripts (commit, op, event) services Request service applications information snapshot Archive data and executable areas software Perform system software extension or upgrade storage Request operation on system storage CurrentlyErase all data, including configuration and log files <-- {master:0} lab@EX2200> request system |
Nhưng, có một vấn đề với lệnh này; theo PR511216, lệnh này không hoạt động như mong đợi trong các phiên bản Junos trước 11.1. Ngay cả khi nó được thực hiện, cấu hình hiện tại vẫn được giữ nguyên.
lab@EX2200> request system configuration rescue delete lab@EX2200> start shell user root Password: root@EX2200% cd /config root@EX2200% rm -rf juniper.conf* root@EX2200% cd /config/db/config root@EX2200% rm -rf juniper.conf.* root@EX2200% reboot |
hoặc sử dụng lện rm -R * để xóa toàn bộ tập tin hệ thống
lab@EX2200> request system configuration rescue delete |
Sau khi reboot xong, switch Juniper EX2200 sẽ khởi động với chế độ mặc định của nhà sản xuất.
Bình luận bài viết