07-23-2006 08:46 PM - edited 03-03-2019 01:25 PM
when i check my router 2500 with sh run command it shows ip 192.168.41.1 configured on s0 port, but when i check router with sh conf command it shows ip address 192.168.1.1 on s0 port . How is that ? please explain me
07-23-2006 09:01 PM
sh run
means the running config on memory
sh conf
means the start-up config when reboot
use "wri" to save running config to start-up config
07-23-2006 09:17 PM
Hi,
When you make any changes to a router's configuration, the configuration is not saved automatically. You have to explicitly instruct the router to save the config using the command: 'copy running-config startup-config'. The 'show running-config' command displays the configuration that the router is currently running while the 'show startup-config' command displays the configuration saved to the router's memory.
When you make a change to the router's config without saving it, the 'show running-config' command weill display that change but the 'show startup-config' command will NOT reflect that change. Once you enter in the 'copy running-config startup-config' command, both of the previous commands will display the same output.
Hope that helps - pls do rate the post if it does.
Paresh
07-24-2006 02:54 AM
Paresh offers a good explanation. I would suggest one clarification: Paresh's explanation is in terms of running-config and startup-config which are the current terminology. The original post was asking about the command show conf. It may not be obvious to everyone that the show conf command is the old version of the show startup-config and produces exactly the same results as show startup-config.
So the router currently uses the address of 192.168.41.1 on the interface but at some point the router was configured with address 192.168.1.1 on the interface and someone changed the address and did not save the running-config to startup-config.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide