0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Orchastrating Network infra using Cisco NSO 1

Last updated at Posted at 2024-11-30

Cisco's Network Services Orchestrator (NSO)

キャリアが独自で実装してたジャンプサーバーのすごいようなもの
SDNアーキテクチャーで使われる。
サービスプロバイダーインフラの自動化でCrossworkとともに使われる。
NSOは複数ベンダーの複数機器を管理できる。
LINUXにだけインストールできる。
デバイスのコンフィグ管理をSSHでできる。
デバイス側にエージェントは必要ない。

NSOアーキテクチャ

以下のアーキテクチャがある
デバイスマネージャー
パッケージマネージャー
サービスマネージャー

ローカルインストールとシステムインストール

ローカルインストールは、主に開発、テスト、個別の使用向けに便利で、
簡単に設定できるが、本番環境や大規模なネットワークに向かない。
システムインストールは、高可用性やスケーラビリティを重視した本番環境向けで、
複数のサーバーやクラスタ構成をサポートするが、
インストールと設定には時間と専門知識が必要。

NSOのローカルインストール

###必要パッケージをインストール
$ sudo apt install default-jdk ant python3 xsltproc

###インストーラーのアンパッケージ
$ chmod +x nso-6.0-freetrial.linux.x86_64.signed.bin 
$ ./nso-6.0-freetrial.linux.x86_64.signed.bin 
Unpacking...
Verifying signature...
Retrieving CA certificate from http://www.cisco.com/security/pki/certs/crcam2.cer ...
Successfully retrieved and verified crcam2.cer.
Retrieving SubCA certificate from http://www.cisco.com/security/pki/certs/innerspace.cer ...
Successfully retrieved and verified innerspace.cer.
Successfully verified root, subca and end-entity certificate chain.
Successfully fetched a public key from tailf.cer.
Successfully verified the signature of nso-6.0.linux.x86_64.installer.bin using tailf.cer
student@student-virtual-machine

###NSOを インストール
$ sh ./nso-6.0.linux.x86_64.installer.bin --local-install /home/username/NSO
INFO  Using temporary directory /tmp/ncs_installer.156544 to stage NCS installation bundle
INFO  Unpacked ncs-6.0 in /home/student/NSO
INFO  Found and unpacked corresponding DOCUMENTATION_PACKAGE
INFO  Found and unpacked corresponding EXAMPLE_PACKAGE
INFO  Found and unpacked corresponding JAVA_PACKAGE
INFO  Generating default SSH hostkey (this may take some time)
INFO  SSH hostkey generated
INFO  Generating self-signed certificates for HTTPS
INFO  Environment set-up generated in /home/student/NSO/ncsrc
INFO  NSO installation script finished
INFO  Found and unpacked corresponding NETSIM_PACKAGE
INFO  NCS installation complete


###なぜか起動に必要なフォルダが無いので作成
$ cd /home/username/NSO/
$ mkdir -p state ncs-cdb logs

###コマンドパスを通す。
$ source /home/username/NSO/ncsrc

###NSOインスタンスの作成
$ cd ../
$ ncs-setup --dest ./NSOins

###NEDをインスタンスにインストール
$ ncs-setup --package /home/username/NSO/packages/neds/cisco-ios-cli-3.8 --dest /home/username/NSOins/

###NSOを起動
ncs

###NSOにアクセス
$ncs_cli -u admin -C

GUI:https://localhost:8080
admin:admin

メモ
作業フォルダが違うとパスがうまく通らなかった。後ほど検証

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?