CML で起動前にコンフィグを設定しておく

VIRL 同様、CML でもノードの起動前に予め設定を行っておくことが出来ます。

ノードを選択し Edit Config タブからコンフィグを設定します。

file

以下の例では IOSv4 に事前コンフィグとして hostname R1 というコマンドを設定しています。 しかし、これだけでは不十分なようです。

file

異なるタブに移動し、また該当ノードの Edit Config タブに戻ると入力したコンフィグが消えています…

file

コンフィグを消さず、残しておくにはコンフィグ入力後に ENTER を入力します。

file

これで IOSv を起動すると「指定したコンフィグが設定された状態」で起動してきます。

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco IOS Software, IOSv Software (VIOS-ADVENTERPRISEK9-M), Version 15.8(3)M2, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2019 by Cisco Systems, Inc.
Compiled Thu 28-Mar-19 14:06 by prod_rel_team




This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco IOSv (revision 1.0) with  with 460137K/62464K bytes of memory.Installed image archive

Processor board ID 9S8MOWGFR16VN05MOV8I2
4 Gigabit Ethernet interfaces
DRAM configuration is 72 bits wide with parity disabled.
256K bytes of non-volatile configuration memory.
2097152K bytes of ATA System CompactFlash 0 (Read/Write)
0K bytes of ATA CompactFlash 1 (Read/Write)
11217K bytes of ATA CompactFlash 2 (Read/Write)
0K bytes of ATA CompactFlash 3 (Read/Write)

% Applying bootstrap config from flash2:...
Building configuration...



Press RETURN to get started!


*Mar  1 00:00:01.558: %VIRTIO-3-INIT_FAIL: Failed to initialize device, PCI 0/8/0/1002 , device is disabled, not supported
*Mar  1 00:00:01.560: %VIRTIO-3-INIT_FAIL: Failed to initialize device, PCI 0/9/0/1005 , device is disabled, not supported
*Mar  1 00:00:01.858: %ATA-6-DEV_FOUND: device 0x1F0
*Mar  1 00:00:06.085: %ATA-6-DEV_FOUND: device 0x1F1
*Mar  1 00:00:09.889: %NVRAM-5-CONFIG_NVRAM_NOT_FOUND: NVRAM configuration 'flash:/nvram' could not be found on disk.
*Jun 22 07:14:57.318: %C3600-3-NOMAC: Can't allocate MAC address for interface 0/0
*Jun 22 07:14:57.612: %C3600-3-NOMAC: Can't allocate MAC address for interface 0/0
*Jun 22 07:15:00.794: %C3600-3-NOMAC: Can't allocate MAC address for interface 0/0
*Jun 22 07:15:13.294: %PA-3-PA_INIT_FAILED: Performance Agent failed to initialize (Missing Data License)
*Jun 22 07:15:23.395: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up
*Jun 22 07:15:23.400: %LINK-3-UPDOWN: Interface GigabitEthernet0/1, changed state to up
*Jun 22 07:15:23.405: %LINK-3-UPDOWN: Interface GigabitEthernet0/2, changed state to up
*Jun 22 07:15:23.410: %LINK-3-UPDOWN: Interface GigabitEthernet0/3, changed state to up
*Jun 22 07:15:26.696: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
*Jun 22 07:15:26.698: %LINEPROTO-5-UPDOWN: Line protocol on Interf
-Traceback= 131445z 1605DEz 16031Bz 1600F8z 15A0D5z 15AC9Fz 415AC47z 4144FBEz 4148A33z 56DAA5Fz 5194324z 51A2719z 51A2605z 5140EF1z 515F318z 51A62D1z - Process "Crypto CA", CPU hog, PC 0x00155E14

-Traceback= 131445z 1605DEz 16031Bz 1600F8z 15A0D5z 15AC9Fz 415AC47z 4144FBEz 4148A33z 56DAA5Fz 5194324z 51824FEz 51A6F39z 51A2CD3z 5140DF5z 51469AAz - Process "Crypto CA", CPU hog, PC 0x00155E0C
ace GigabitEthernet0/1, changed state to up
*Jun 22 07:15:26.700: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up
*Jun 22 07:15:26.701: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/3, changed state to up
*Jun 22 07:15:26.948: %PARSER-4-BADCFG: Unexpected end of configuration file.

*Jun 22 07:15:26.950: %SYS-5-CONFIG_I: Configured from flash2:ios_config.txt by console
*Jun 22 07:16:11.073: %CVAC-7-CONFIG_FOUND: Configuration file flash2:/ios_config.txt was found and will be applied to NVRAM.
*Jun 22 07:16:12.017: %IP-5-WEBINST_KILL: Terminating DNS process
*Jun 22 07:16:13.314: %LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down
*Jun 22 07:16:13.317: %LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to administratively down
*Jun 22 07:16:13.319: %LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to administratively down
*Jun 22 07:16:13.321: %LINK-5-CHANGED: Interface GigabitEthernet0/3, changed state to administratively down
*Jun 22 07:16:14.232: %SYS-5-RESTART: System restarted --
Cisco IOS Software, IOSv Software (VIOS-ADVENTERPRISEK9-M), Version 15.8(3)M2, RELEASE SOFTWARE (fc2)
Technical Support:[OK] http://www.cisco.com/techsupport
Copyright (c) 1986-2019 by Cisco Systems, Inc.
Compiled Thu 28-Mar-19 14:06 by prod_rel_team
*Jun 22 07:16:14.469: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to down
*Jun 22 07:16:14.472: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down
*Jun 22 07:16:14.475: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to down
*Jun 22 07:16:14.477: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/3, changed state to down
*Jun 22 07:16:14.540: %CVAC-7-CONFIG_FOUND: Configuration file flash2:/ios_config.txt was found and will be applied to NVRAM.
*Jun 22 07:16:14.576: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF
*Jun 22 07:16:14.577: %CRYPTO-6-GDOI_ON_OFF: GDOI is OFF
*Jun 22 07:16:27.491: %GRUB-5-CONFIG_WRITING: GRUB configuration is being updated on disk. Please wait...
*Jun 22 07:16:30.371: %GRUB-5-CONFIG_WRITTEN: GRUB configuration was written to disk successfully.
*Jun 22 07:16:30.372: %CVAC-4-CONFIG_DONE: Configuration generated from file flash2:/ios_config.txt was applied and saved to NVRAM. See 'show running-config' or 'show startup-config' for more details.
*Jun 22 07:16:36.613: %SYS-3-CPUHOG: Task is running for (2000)msecs, more than (2000)msecs (0/0),process = Crypto CA.
*Jun 22 07:16:38.613: %SYS-3-CPUHOG: Task is running for (4000)msecs, more than (2000)msecs (0/0),process = Crypto CA.
*Jun 22 07:16:49.687: %PNP-6-PNP_DISCOVERY_STOPPED: PnP Discovery stopped (Startup Config Present)
*Jun 22 07:17:17.491: %PLATFORM-5-SIGNATURE_VERIFIED: Image 'flash0:/vios-adventerprisek9-m' passed code signing verification
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS  *
* education. IOSv is provided as-is and is not supported by Cisco's      *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any       *
* purposes is expressly prohibited except as otherwise authorized by     *
* Cisco in writing.                                                      *
**************************************************************************
IOSv>