3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

eve-ng 導入メモ

Last updated at Posted at 2018-03-02

eve-ngにCiscoのトポロジーをインストールする手順メモ。

installing eve-ng

  • まずここからOVAをDLします。ファイル名の拡張子がOVFになっててVMWare Fusionにうまくインストールできなかったので手動でOVAに変えたらうまくいきました。

setup eve-ng

  • MACの場合、StaticでIPアドレス振るとインターネットに抜けられないようです。以下の手順を実施したらeve-ngからインターネットにアクセス可能になりました。

  • network adaptorを追加(1つ目のアダプタはNATモード、2つ目のアダプタはホストオンリー)
  • MACアドレスを生成してメモしておく
  • DHCP Rangeを避けたIPアドレスでDHCPサーバとして決定
例)
host eve {
    hardware ethernet 00:50:56:24:D3:92;
    fixed-address 172.16.57.2;
    option domain-name-servers 8.8.8.8, 8.8.4.4;
}
  • eth1をmanualに、pnet1をDHCPに。
# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet dhcp
    bridge_ports eth0
    bridge_stp off

# Cloud devices
iface eth1 inet manual
auto pnet1
iface pnet1 inet dhcp
    bridge_ports eth1
    bridge_stp off

参考:DHCPの設定 http://blog.opensquare.jp/?p=1607

  • ホスト名でGUIアクセスできるようになりました。

setup iol environment

  • 次に以下の手順を実施します。

cd /opt/unetlab/addons/iol/bin/
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
  • 次に以下のファイルを作成してPython実行。

python2.7 CiscoKeyGen.py
  • 出力されるechoコマンドを実行。
echo -e '[license]\neve-ng = xxxxxxxxxxxxxx;' | tee $HOME/.iourc

※ この $HOME の部分を /opt/unetlab/addons/iol/bin に置き換えました。

installing a topology (iol)

  • eve-ng GUI MenuからLabトポロジーをインストール

installing a client module

  • 手順通りインストールすればOKです。

参考 http://www.eve-ng.net/index.php/downloads/linux-client-side
参考 http://www.brianlinkletter.com/how-to-set-up-the-eve-ng-network-emulator-on-a-linux-system/

MAC userはtelnetが使えるようにする

  • 特に、high sierra の場合はSIPを無効にしてtelnetを/usr/binにコピーが必要です。

参考 https://qiita.com/samuraidays/items/b8a3d4a06e2c6c379865
参考 https://applech2.com/archives/20170626-apple-remove-telnet-cmd-on-high-sierra.html
参考 http://eve-ng.net/forum/viewtopic.php?f=3&t=1155

wiresharkが動くようにする

  • この時、ホスト名にハイフン(-)があるとうまく動かないようです。

参考 http://www.eve-ng.net/forum/viewtopic.php?f=6&t=702&p=2392&hilit=wireshark#p2392

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?