Tạo file cấu hình trắng ngay sau khi khởi động thiết bị với cấu hình trắng.
- Bằng thủ thuật này, nó sẽ giúp cho Network Engineer có thể bắt tay thực hiện các mô hình bài Lab mới ngay lập tức mà không cần phải đợi Router khởi động xong.
% Please answer 'yes' or 'no'.Would you like to enter the initial configuration dialog? [yes/no]: noPress RETURN to get started!Router>
Router# copy running-config flash:init.cfgDestination filename [init.cfg]? <enter>%Warning:There is a file already existing with this nameDo you want to over write? [confirm] <enter>840 bytes copied in 1.176 secs (714 bytes/sec)Router#
Router# show flash: | include init.cfg2 840 Mar 30 2021 09:45:56 init.cfgRouter#
Tiến hành Factory Reset thiết bị với cấu hình trắng mà không cần phải khởi động lại.
- Thử thay đổi cấu hình trên Router trước khi áp cấu hình mặc định ngược trở lại trên thiết bị.
Router#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#interface f0/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#end
R1# show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.168.1.1 YES manual up upFastEthernet0/1 unassigned YES unset administratively down downSSLVPN-VIF0 unassigned NO unset up upR1#
- Tiến hành Factory Reset với file cấu hình trắng init.cfg.
R1# configure replace flash:init.cfgThis will apply all necessary additions and deletionsto replace the current running configuration with thecontents of the specified configuration file, which isassumed to be a complete configuration, not a partialconfiguration. Enter Y if you are sure you want to proceed. ? [no]: yTotal number of passes: 1Rollback Done*Mar 30 09:54:28.083: Rollback:Acquired Configuration lock.*Mar 30 09:54:29.811: %PARSER-6-EXPOSEDLOCKRELEASED: Exclusive configuration lock released from terminal '0' -Process= "Exec", ipl= 0, pid= 3*Mar 30 09:54:31.031: %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively downRouter#
Router# show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 unassigned YES manual administratively down downFastEthernet0/1 unassigned YES unset administratively down downSSLVPN-VIF0 unassigned NO unset up upRouter#
Tham khảo các videos lý thuyết Hướng dẫn thực hành CCNA R&S để biết thêm thông tin chi tiết.
0 comments