Cisco IOS で VRF を指定して copy コマンドを実行する
従来の Cisco IOS で管理インターフェイスへ VRF を設定していたとします。
しかし、こういった場合にファームウェアを特定 VRF からダウンロードしようとしても、copy コマンドで VRF が指定出来ず、結果的にファームウェアがダウンロード出来ない… といった場合があります。
IOS# copy ?
/erase Erase destination file system.
/error Allow to copy error file.
/noverify Don't verify image signature before reload.
/verify Verify image signature before reload.
archive: Copy from archive: file system
cns: Copy from cns: file system
flash: Copy from flash: file system
ftp: Copy from ftp: file system
http: Copy from http: file system
https: Copy from https: file system
null: Copy from null: file system
nvram: Copy from nvram: file system
rcp: Copy from rcp: file system
running-config Copy from current system configuration
scp: Copy from scp: file system
sdflash: Copy from sdflash: file system
security: Copy from security: file system
startup-config Copy from startup configuration
system: Copy from system: file system
tar: Copy from tar: file system
tftp: Copy from tftp: file system
tmpsys: Copy from tmpsys: file system
xmodem: Copy from xmodem: file system
ymodem: Copy from ymodem: file system
IOS# copy http: flash: ?
<cr> <cr>
こういった場合は各プロトコルごとに source-interface を指定することで、copy コマンドで利用する送信元インターフェイス (VRF) を指定することが可能です。