on 10-03-201303:24 AM - edited on 03-25-201902:27 PM by ciscomoderator
When working with GNS need to save the configuration on each device separately, so that it can be saved as a file in the GNS on exit. I thought this problem as follows:
In my case, the virtual topology GNS (CCNP-CCIE) of 12 routers.
Model at all: 2691.
Version: (C2691-ADVENTERPRISEK9-M), Version 12.4 (23)
I created an additional router called it SAVER (IP 10.100.100.1), connected it to a network switch pseudo GNS via FastEthernet. Next, all 12 routers connected to this switch. Set up IP addressing, so that all the routers could see 10.100.100.1 ip address. Within this network is only allowed ICMP traffic. Next to each of the 12 routers I enter the following commands (give an example of one of the routers, since the rest are all identical):
# Enable the console output from the monitor reactions
# Use the IP address of the router SAVER, sending frequency and timeouts. These parameters can regulate themselves.
type echo protocol ipIcmpEcho 10.100.100.1
ip sla monitor schedule 1 life forever start-time now
Next, create an applet that will save the configuration and based on the response of the monitor:
event manager applet saving
# If you encounter the following message, perform an action
event syslog pattern "%RTT-4-OPER_TIMEOUT"
action 1 cli command "enable"
action 2 cli command "write"
# At the end to display a message to the console
action 3 syslog msg "Configuration Successfully Saved. You can save GNS project and close it"
Next on the router SAVER create an applet that will provoke the message "%RTT-4-OPER_TIMEOUT" on other routers:
event manager applet saver
#When you enter the save command to run the applet
event cli pattern "save" sync yes
action 1.1 cli command "enable"
action 1.2 cli command "conf t"
# In my case, I used the Fa0/0, you can set up your interface
action 1.3 cli command "interface Fa0/0"
action 1.4 cli command "shutdown"
# Because in my version of IOS there is no commands Wait, I pull time, by generating syslog messages. The lower the frequency of sending ICMP on other routers, the more time you need to pull that load monitor.