IOS-XR ルータにおいて、VRF を設定している interface から http を用いて install add する際には "http client vrf <VRF name>" config が必要です。
"http client vrf <VRF name>" が設定されていない場合、以下のように install add が失敗します。
以下の出力例は VRF "MGMT" が設定されている interface から http install する際の出力例となります。
RP/0/RP0/CPU0:IOS-XR#sh run http
Tue Jan 25 15:34:42.597 JST
% No such configuration item(s) <<<<< "http client vrf <VRF name>" がない
RP/0/RP0/CPU0:IOS-XR#install add source http://XX.XX.XX.XX/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Tue Jan 25 15:35:16.595 JST
Jan 25 15:35:18 Install operation 43 started by cisco:
install add source http://XX.XX.XX.XX/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Jan 25 15:35:37 Install operation will continue in the background
RP/0/RP0/CPU0:IOS-XR#Jan 25 15:35:43 Install operation 43 aborted
RP/0/RP0/CPU0:IOS-XR#sh install log 43
Tue Jan 25 15:35:53.674 JST
Jan 25 15:35:18 Install operation 43 started by cisco:
install add source http://XX.XX.XX.XX/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Jan 25 15:35:19 Action 1: install add action started
Jan 25 15:35:37 Install operation will continue in the background
Jan 25 15:35:42 ERROR: Connection timed out
Error! Failed to download the file http://XX.XX.XX.XX/IOS-XR/ncs5500-isis-2.1.0.0-r722.x86_64.rpm to /install/tmp_staging/
Jan 25 15:35:43 Install operation 43 aborted
Jan 25 15:35:43 Ending operation 43
RP/0/RP0/CPU0:IOS-XR#install add source http://XX.XX.XX.XX;MGMT/IOS-XR ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Tue Jan 25 15:36:23.780 JST
Jan 25 15:36:25 Install operation 44 started by cisco:
install add source http://XX.XX.XX.XX;MGMT/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Jan 25 15:36:44 Install operation will continue in the background
RP/0/RP0/CPU0:IOS-XR#Jan 25 15:36:50 Install operation 44 aborted. <<<<< ; を使用し VRF MGMT を指定しても失敗する
RP/0/RP0/CPU0:IOS-XR#sh install log 44
Tue Jan 25 15:36:56.296 JST
Jan 25 15:36:25 Install operation 44 started by cisco:
install add source http://XX.XX.XX.XX;MGMT/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Jan 25 15:36:26 Action 1: install add action started
Jan 25 15:36:44 Install operation will continue in the background
Jan 25 15:36:49 ERROR: Connection timed out
Error! Failed to download the file http://XX.XX.XX.XX/IOS-XR/ncs5500-isis-2.1.0.0-r722.x86_64.rpm to /install/tmp_staging/
Jan 25 15:36:50 Install operation 44 aborted
Jan 25 15:36:50 Ending operation 44
"http client vrf <VRF name>" を設定した際は以下のような出力となります。
RP/0/RP0/CPU0:IOS-XR#sh run http
Tue Jan 25 15:49:22.024 JST
http client vrf MGMT
RP/0/RP0/CPU0:IOS-XR#install add source http://XX.XX.XX.XX/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Tue Jan 25 15:49:36.625 JST
Jan 25 15:49:38 Install operation 45 started by cisco:
install add source http://XX.XX.XX.XX/IOS-XR/ ncs5500-isis-2.1.0.0-r722.x86_64.rpm
Jan 25 15:49:57 Install operation will continue in the background
RP/0/RP0/CPU0:IOS-XR#Jan 25 15:50:10 Install operation 45 finished successfully
RP/0/RP0/CPU0:IOS-XR#show install inactive
Tue Jan 25 15:51:12.838 JST
1 inactive package(s) found:
ncs5500-isis-2.1.0.0-r722