Ví dụ mình thử cấu hình hostname và IP cho interface f0/0:
R1(config)# hostname QuantrimangIP
R1(config)# int f0/0
R1(config-line)# ip add 192.168.1.1 255.255.255.0
Và xem kết quả show:R1(config)# int f0/0
R1(config-line)# ip add 192.168.1.1 255.255.255.0
QuantrimangIP#show archive config differences
Contextual Config Diffs:
+hostname R1
interface FastEthernet0/0
+no ip address
-hostname QuantrimangIP
interface FastEthernet0/0
-ip address 192.168.1.1 255.255.255.0
Các lệnh có dấu '+' phía trước có trong "startup-config"Contextual Config Diffs:
+hostname R1
interface FastEthernet0/0
+no ip address
-hostname QuantrimangIP
interface FastEthernet0/0
-ip address 192.168.1.1 255.255.255.0
Các lệnh có dấu '-' phía trước có trong "running-config"
Và tất nhiên khi bạn "copy running-config startup-config" thì kết quả lệnh "show archive config differences" sẽ không có sự khác nhau
QuantrimangIP# copy running-config startup-config
QuantrimangIP# show archive config differences
Contextual Config Diffs: !No changes were found
CLI
,
IOS
,
Management
QuantrimangIP# show archive config differences
Contextual Config Diffs: !No changes were found
No comments:
Post a Comment