Cisco 스위치 설정 변경 확인

Cisco 스위치에서, 변경된 설정이 저장되었는지 저장되었는지 확인하기 위한 방법

show archive config differences 명령으로 확인 가능하다. 물론, show run, show config 명령으로 설정 내용을 일일이 비교하는 것도 가능하기는 하다.

아래 예는 e0/0-3 포트를 vlan 100에 할당하고 저장하지 않았음을 보여준다.

Switch#show archive config differences
!Contextual Config Diffs:
interface Ethernet0/0
 -switchport access vlan 100
interface Ethernet0/1
 -switchport access vlan 100
interface Ethernet0/2
 -switchport access vlan 100
interface Ethernet0/3
 -switchport access vlan 100
line con 0
 -length 0

Switch#

이제 변경된 설정을 저장하고 다시 확인해 본다.
저장

Switch#copy run start
Destination filename [startup-config]?
Building configuration...
Compressed configuration from 1785 bytes to 1021 bytes[OK]
Switch#

설정 저장후 변경된 내용이 있는지 확인해 보면, 변경된 내용이 없음을 확인 할 수 있다.

Switch#show archive config differences
!Contextual Config Diffs:
!No changes were found

답글 남기기

Your email address will not be published.