Tips: (Cisco 05) Hướng dẫn khởi động lại Cisco Router với cấu hình trắng mà không cần phải khởi động lại thiết bị

By , 0 View

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]: no

Press RETURN to get started!
Router>

Router# copy running-config flash:init.cfg
Destination filename [init.cfg]? <enter>
%Warning:There is a file already existing with this name 
Do you want to over write? [confirm] <enter>

840 bytes copied in 1.176 secs (714 bytes/sec)
Router#

Router# show flash: | include init.cfg
2          840 Mar 30 2021 09:45:56 init.cfg
Router#

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 terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface f0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
 
R1# show ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.1.1     YES manual up                    up      
FastEthernet0/1            unassigned      YES unset  administratively down down    
SSLVPN-VIF0                unassigned      NO  unset  up                    up      
R1#

- Tiến hành Factory Reset với file cấu hình trắng init.cfg.
R1configure replace flash:init.cfg
This will apply all necessary additions and deletions
to replace the current running configuration with the
contents of the specified configuration file, which is
assumed to be a complete configuration, not a partial
configuration. Enter Y if you are sure you want to proceed. ? [no]: y
Total number of passes: 1
Rollback 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 down
Router#
 
Router# show ip interface brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            unassigned      YES manual administratively down down    
FastEthernet0/1            unassigned      YES unset  administratively down down    
SSLVPN-VIF0                unassigned      NO  unset  up                    up      
Router#

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. 

You Might Also Like

0 comments