cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1204
Views
0
Helpful
3
Replies

Differences between config file just after a backup restore

Nold
Level 1
Level 1

Hello, 

I try to copy a config file from my tftp server to a switch, but even after the copy, there are still differences between the new config file and the "original".

 

here is the file i want to copy:

!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname switch
!
boot-start-marker
boot-end-marker
!
enable password 7 014254570F
!
!
!
no aaa new-model
switch 1 provision ws-c3750-48p
system mtu routing 1500
vtp mode transparent
!
!
!
!
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 2,99 
!
!
!
interface FastEthernet1/0/1
...

 and the file I got after the copy:

!
version 12.2
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname switch
!
boot-start-marker
boot-end-marker
!
enable password 7 014254570F
!
!
!
no aaa new-model
switch 1 provision ws-c3750-48p
system mtu routing 1500
vtp mode transparent
!
!
!
!
crypto pki trustpoint TP-self-signed-4272934528
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-4272934528
 revocation-check none
 rsakeypair TP-self-signed-4272934528
!
!
crypto pki certificate chain TP-self-signed-4272934528
 certificate self-signed 01 nvram:IOS-Self-Sig#3839.cer
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 2,99
!
!
!
interface FastEthernet1/0/1
...

We clearly see there is a crypto paraghraph that shouldn't be there. 

How to have exactly the same file? And of course without reconfigure the switch after the copy.

 

Edit: i reload before to look the running-config

1 Accepted Solution

Accepted Solutions

but then why do you think the file is corrupted , there could have already been configuration on the 3750 ?
This looks like it was already there before you added your file

crypto pki certificate chain TP-self-signed-4272934528
certificate self-signed 01 nvram:IOS-Self-Sig#3839.cer

if you transferred a file to flash from a tftp server the correct way to read it to make sure its not corrupt is use the MORE command as you can read the file as it is in flash before it is transferred to running config



example
switch1#more flash:Archive.cfg-May-29-07-29-34.802-UTC-123
!
! Last configuration change at 15:17:55 UTC Wed Mar 22 2017 by xxxxxxx

Of you expect to only see the config in your file , then the switch your adding it too should be completely blank already in global config

View solution in original post

3 Replies 3

Mark Malone
VIP Alumni
VIP Alumni

Hi

So you transferred a file from TFTP to flash yes , how are you reading it through command --- more flash:

 

or are you pushing it to running config and reading it ?

i show running-config

but then why do you think the file is corrupted , there could have already been configuration on the 3750 ?
This looks like it was already there before you added your file

crypto pki certificate chain TP-self-signed-4272934528
certificate self-signed 01 nvram:IOS-Self-Sig#3839.cer

if you transferred a file to flash from a tftp server the correct way to read it to make sure its not corrupt is use the MORE command as you can read the file as it is in flash before it is transferred to running config



example
switch1#more flash:Archive.cfg-May-29-07-29-34.802-UTC-123
!
! Last configuration change at 15:17:55 UTC Wed Mar 22 2017 by xxxxxxx

Of you expect to only see the config in your file , then the switch your adding it too should be completely blank already in global config
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: