This is how I setup my lab routers (the routers I use are CSR1000v - Ciscos virtual cloud routers).
You boot up your router and configure the things you want to be configured just about always.
From the privileged exec mode enter the following command
There is a bit more to the command if you want to use it outside of the lab, but this just about covers what you may want in a lab environment.
enableWhen you are done setting up the very basics - save the running-config to a file on flash.
configure terminal
!
hostname R1
!
logging buffered 8192
!
no aaa new-model
!
no ip domain lookup
!
no ip http server
no ip http secure-server
!
line con 0
exec-timeout 0
logging synchronous
!
end
copy running-config flash:/config/base.confNow, whenever you have configured anything on the router - like, say, some DMVPN or EIGRP configuration - and you want to reload it to the base to start another lab, this is what you do.
From the privileged exec mode enter the following command
R1#configure replace flash:/config/base.conf forceThis makes the running-config identical that of the base.conf file saved earlier. The "Total number of passes: 1" indicates it took 1 pass of the config to make it identical. The amounts of passes it will take depends on how much the runnin-config and the base.conf file differs.
Total number of passes: 1
Rollback Done
R1#
*Nov 12 10:30:42.186: Rollback:Acquired Configuration lock.
R1#
There is a bit more to the command if you want to use it outside of the lab, but this just about covers what you may want in a lab environment.
No comments:
Post a Comment