Lost connection to router while copying startup config to running

Answered Question
Apr 3rd, 2010

Hi,

When i copy start up config to running config on my router remotely i lost the connection for few mins and when i got connection back

i saw this in logs


Apr  3 05:08:05.219 MST: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assig                                                                                                                               ned DHCP address 96.51.x.x, mask 255.255.252.0, ).
Apr  3 05:13:10.065 MST: %DHCP-6-ADDRESS_ASSIGN: Interface FastEthernet0/0 assig                                                                                                                               ned DHCP address 96.51.x.x, mask 255.255.252.0, hostname 2650xm

my interface fa0/0 connects to isp cable modem.

i telnet to router using public ip 96.51.x.x..

any idea why this happened?

thanks

I have this problem too.
0 votes
Correct Answer by Edison Ortiz about 6 years 8 months ago

Manesh,

To reiterate, when you make changes in the running-config, the correct command is

copy run start

not

copy start run

When you copy the startup-config to running-config, the startup config may overwrite changes made in the running-config.

These changes may affect connectivity to your router. As you are obtaining the IP address via DHCP, the startup-config may have saved a different IP address from a previous instance...

It can also be due to the fact that if you type 'ip address dhcp' under the physical interface, the DHCP client may be restarted and connection to the router via this interface may be suspended until a new lease is obtained. Again, typing that command or overwriting the config with the command in it, will cause the same effect.

Regards

Edison

Please rate helpful posts.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Edison Ortiz Sat, 04/03/2010 - 07:33

Why would you copy your startup-config to your running-config?

The common process is to copy your running-config to startup-config.

The process performed while copying the startup-config to the running-config is similar to the process of applying configuration changes in your router.

When you apply configuration changes in your router, you run the risk of losing the connection if the parameters aren't the same as the current running-config.

Based on the ouput you've displayed, it seems your F0/0 had a different IP address stored in NVRAM obtained from DHCP than your current DHCP lease.

You need to be aware the content of the startup-config before overwriting the running-config. I suggest typing 'show start' before doing so and compare the output with 'show run'.

Regards

Edison.

mahesh18 Sun, 04/04/2010 - 02:05

Hi,

thanks for reply the config is same.

is there any other reason you might think of?

mahesh

mahesh18 Sun, 04/04/2010 - 02:10

Hi Edison,

sorry for late reply

i did copy startup to running as i did some change on running  config.

also my IP address connected to fa0/0 which i get from isp is same.it did not change.

thanks for reply

mahesh

Correct Answer
Edison Ortiz Sun, 04/04/2010 - 16:13

Manesh,

To reiterate, when you make changes in the running-config, the correct command is

copy run start

not

copy start run

When you copy the startup-config to running-config, the startup config may overwrite changes made in the running-config.

These changes may affect connectivity to your router. As you are obtaining the IP address via DHCP, the startup-config may have saved a different IP address from a previous instance...

It can also be due to the fact that if you type 'ip address dhcp' under the physical interface, the DHCP client may be restarted and connection to the router via this interface may be suspended until a new lease is obtained. Again, typing that command or overwriting the config with the command in it, will cause the same effect.

Regards

Edison

Please rate helpful posts.

Actions

This Discussion