概要
候補構成は、実行構成のサブセットです。実行構成は、追加、変更、または削除を行わずに、実行構成内に候補構成が存在するかどうかを確認します。
候補構成の完全性を確認するには、次のコマンドを使用します。
-
show diff running-config -
show diff startup-config
CLI の詳細については、候補構成の完全性チェックの実行 を参照してください。
例
実行構成と候補構成の間に相違点はない
switch# show diff running-config bootflash:base_running.cfg switch# 実行構成と候補構成の間の相違点
switch# show diff running-config bootflash:modified-running.cfg unified --- running-config +++ User-config @@ -32,11 +32,11 @@ interface Ethernet1/1 mtu 9100 link debounce time 0 beacon - ip address 2.2.2.2/24 + ip address 1.1.1.1/24 no shutdown interface Ethernet1/2 interface Ethernet1/3 switch# 実行構成と部分候補構成の間の相違点
switch# show file bootflash:intf_vlan.cfg interface Vlan101 no shutdown no ip redirects ip address 1.1.2.1/24 secondary ip address 1.1.1.1/24 switch# switch# show diff running-config bootflash:intf_vlan.cfg partial unified --- running-config +++ User-config @@ -3897,10 +3883,14 @@ mtu 9100 ip access-group IPV4_EDGE in ip address 2.2.2.12/26 tag 54321 interface Vlan101 + no shutdown + no ip redirects + ip address 1.1.2.1/24 secondary + ip address 1.1.1.1/24 interface Vlan102 description Vlan102 no shutdown mtu 9100 switch# 部分的な構成の差分がマージされた
switch# show file po.cfg interface port-channel500 description po-123 switch# switch# sh run int po500 !Command: show running-config interface port-channel500 !Running configuration last done at: Fri Sep 29 12:27:28 2023 !Time: Fri Sep 29 12:30:24 2023 version 10.4(2) Bios:version 07.69 interface port-channel500 ip address 192.0.2.0/24 ipv6 address 2001:DB8:0:ABCD::1/48 switch# switch# show diff running-config po.cfg partial merged unified --- running-config +++ User-config @@ -124,10 +110,11 @@ interface port-channel100 interface port-channel500 ip address 192.0.2.0/24 ipv6 address 2001:DB8:0:ABCD::1/48 + description po-123 interface port-channel4096 interface Ethernet1/1 switch# 
フィードバック