■GNS3に[Cisco IOU L3]、[Cisco IOU L2]を導入してみた。 IOUイメージ/.iourcの入手にはCiscoのパートナー権限が必要。 $ lsb_release -d Description: Debian GNU/Linux 9.5 (stretch) $ gns3 --version 2.1.8 ■dCloudとバージョンを揃える必要は特にないので、 GNS3がmd5sumをもっている3イメージと、 GNS3がmd5sumをもっていない1イメージ[15.6.0.9S]の新規追加を試す。 $ grep . *.md5sum i86bi-linux-l2-adventerprisek9-15.1a.bin.md5sum:9549a20a7391fb849da32caa77a0d254 i86bi-linux-l2-adventerprisek9-15.6.0.9S.bin.md5sum:bb1ac1ad9a039cb78319f7a4aaf855c9 i86bi-linux-l3-adventerprisek9-15.4.1T.bin.md5sum:2eabae17778316c49cbc80e8e81262f9 i86bi-linux-l3-adventerprisek9-15.5.2T.bin.md5sum:45e99761a95cbd3ee3924ecf0f3d89e5 ■IOUをIOSに見立てた機能の比較は想定するPlatformまで指定して以下で行う。 Cisco Feature Navigator http://cfn.cloudapps.cisco.com/ITDIT/CFN/jsp/index.jsp ■IOUライセンスの投入 [Edit] -> [Preferences] -> [IOU on UNIX] -> [Browse..]から読み込み $ grep iourc .config/GNS3/* | sed -e 's/0[a-z0-9]*/0xxxxxxxxxxxxxxxx/' -e 's/'$(hostname -s)'/dummy-host/' .config/GNS3/gns3_controller.conf: "iourc_content": "[license]\ndummy-host = 0xxxxxxxxxxxxxxxx;" .config/GNS3/gns3_gui.conf: "iourc_content": "[license]\ndummy-host = 0xxxxxxxxxxxxxxxx;", ■GNS3の[Browse All Devices]から[IOU]でフィルタして、対象のテンプレートをクリック、 ウィザードに従い、インポートしていく。 ■[libcrypto.so.4]が無くて起動しない状況に対処 [Cisco IOU L2 15.1a]、[Cisco IOU L3 15.4.1T] $ grep --color libcrypt .config/GNS3/gns3_server.log | awk '{a[$0]+=1}END{for(n in a){print a[n],n}}' | sed -e 's%'$HOME'%%g' 1 gns3server.compute.iou.iou_error.IOUError: The following shared library dependencies cannot be found for IOU image /GNS3/images/IOS/IOU/i86bi-linux-l3-adventerprisek9-15.4.1T.bin: libcrypto.so.4 4 gns3server.compute.iou.iou_error.IOUError: The following shared library dependencies cannot be found for IOU image /GNS3/images/IOS/IOU/i86bi-linux-l2-adventerprisek9-15.1a.bin: libcrypto.so.4 $ apt-file search libcrypto.so libssl-dev: /usr/lib/x86_64-linux-gnu/libcrypto.so libssl1.0-dev: /usr/lib/x86_64-linux-gnu/libcrypto.so libssl1.0.2: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 libssl1.1: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 $ apt-file search libcrypto.so | awk '{print "ls -l --time-style=\047+%Y/%m/%d %H:%M:%S\047 "$2}' | sh lrwxrwxrwx 1 root root 16 2018/03/29 19:51:02 /usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.1.1 lrwxrwxrwx 1 root root 16 2018/03/29 19:51:02 /usr/lib/x86_64-linux-gnu/libcrypto.so -> libcrypto.so.1.1 -rw-r--r-- 1 root root 2492224 2018/03/29 20:10:14 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 -rw-r--r-- 1 root root 2686672 2018/03/29 19:51:02 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 $ sudo dpkg --add-architecture i386;sudo apt-get update;sudo apt-get install -y libssl1.1:i386 $ sudo find /usr/lib/ -type f -name "libcrypto.so.1.1" /usr/lib/i386-linux-gnu/libcrypto.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 $ sudo ln -s /usr/lib/i386-linux-gnu/libcrypto.so.1.1 /usr/lib/i386-linux-gnu/libcrypto.so.4 $ awk '/i86bi-linux-l3-adventerprisek9-15.4.1T.bin|i86bi-linux-l2-adventerprisek9-15.1a.bin/&&/Starting/' \ .config/GNS3/gns3_server.log | sed -e 's%'$HOME/GNS3/images/IOS'%%' 2018-07-21 23:33:54 INFO iou_vm.py:522 Starting IOU: ['/IOU/i86bi-linux-l2-adventerprisek9-15.1a.bin', '-e', '4', '-s', '0', '1'] 2018-07-21 23:34:06 INFO iou_vm.py:522 Starting IOU: ['/IOU/i86bi-linux-l3-adventerprisek9-15.4.1T.bin', '4'] ■[Cisco IOU L3]のバージョン情報 CiscoIOUL3155-2T-1#show version | include ^Cisco IOS Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.5(2)T, DEVELOPMENT TEST SOFTWARE CiscoIOUL315.4.1T-1#show version | include ^Cisco IOS Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.4(1)T, DEVELOPMENT TEST SOFTWARE ■[Cisco IOU L2]のバージョン情報 CiscoIOUL215.1a-1#show version | include ^Cisco IOS Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experimental Version 15.1(20130726:213425) [dstivers-july26-2013-team_track 104] CiscoIOUL215.2d-1#show version | include ^Cisco IOS Cisco IOS Software, Linux Software (I86BI_LINUXL2-ADVIPSERVICESK9-M), Version 15.2(CML_NIGHTLY_20151103)FLO_DSGS7, EARLY DEPLOYMENT DEVELOPMENT BUILD, synced to FLO_DSGS7_POSTCOLLAPSE_TEAM_TRACK_DSGS_PI5 CiscoIOUL215.1g-1#show version | include ^Cisco IOS Cisco IOS Software, Solaris Software (I86BI_LINUXL2-IPBASEK9-M), Experimental Version 15.1(20130726:213425) [dstivers-july26-2013-team_track 105]