Subnetting Mask Angka Kecil [1-8]

Sekadar merefresh memory tentang subneting. Ada tutorial di youtube yang cukup baik digunakan sebagai tips and trik [1]. Ia menggunakan tabel berikut:

Misalnya mau menghitung alamat host yang usable di 213.50.111.22/2. Berapakah networknya & broadcast? Berapakah range host-nya? 🙂

Cara baca tabelnya yaitu dengan melihat di kolom yang terdapat “/2” lalu liat ke atas dan ketemu Group Size “64”. Artinya subnetnya adalah 0, 64, 128, 192.

213.50.111.22/2 maka:

0.0.0.0

64.0.0.0

128.0.0.0

192.0.0.0 –> 213.x.x.x itu berada di segment ini. Maka, network addressnya adalah 192.0.0.0. Broadcast-nya 255.255.255.255. Host-nya 192.0.0.1 – 255.255.255.254.

[1] https://www.youtube.com/watch?v=OQ-r_IfeB8c

 

Generate License IOL @eve-ng

3 hari terakhir ini mencoba menginstall eve-ng di laptop baru dari laptop lama. Semua vmdk-nya diexport. Saat membuka lab yg lama, ternyata tidak bisa ping p2p, walaupun cdp dan arp terbentuk. Aneh. Akhirnya dikasih masukan sama temen, coba install eve baru lagi.  Eve lama versi 2.0.3-89, eve baru versi *-95.

Saya coba create lab dengan ios 7200 dan berhasil ping p2p. Lalu export beberapa lab yg ada di versi eve *-89 dimana terdapat IOL, masalah muncul dimana routernya tidak bisa distart. Dicoba ngutak-ngatik iourc file, namun tidak berhasil. Generate beberapa license, juga nihil. Intinya, system tidak bisa membaca iourc file alias lisensinya bermasalah.

IOURC: Could not open iourc file

begini lognya.

root@192.168.119.129’s password:
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.9.40-eve-ng-ukms-2+ x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
root@eve-ng:~# ls -ltr /opt/unetlab/addons/iol/bin/
total 432228
-rwxr-xr-x 1 root root 0 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
-rwxr-xr-x 1 root root 0 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 37 Sep 12 13:37 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
root@eve-ng:~# cd /opt/unetlab/addons/iol/bin/

root@eve-ng:/opt/unetlab/addons/iol/bin# chmod 0755 IOUkeygen.py
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# python2
python2 python2.7
root@eve-ng:/opt/unetlab/addons/iol/bin# hostname
eve-ng
root@eve-ng:/opt/unetlab/addons/iol/bin# cat iourc
[license]
eve-ng = 972f30267ef51616;
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd ..
root@eve-ng:/opt/unetlab/addons/iol# cd /
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/# cd /opt/unetlab/addons/iol/
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
-bash: /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin: N o such file or directory
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.2.4M1.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.4.2T4.bin 1
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.1a.bin 1
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# hostname
eve-ng
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# cat /opt/unetlab/addons/iol/bin/iourc
[license]
eve-ng = c14c3909c793ee19;
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin 1
-bash: /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin: Permission den ied
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.2d.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.2d.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# cd bin
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi-linux-l2-adventerprisek9-15.2d.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi-linux-l3-adventerprisek9-15.5.2T.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
L3-ADVENTERPRISE9-15.5.2T.bin
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd /
root@eve-ng:/# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions

root@eve-ng:/# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/i ol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/# hostname
eve-ng
root@eve-ng:/# cd /opt/unetlab/addons/iol/bin/
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi-linux-l2-adventerprisek9-15.2d.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi-linux-l3-adventerprisek9-15.5.2T.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
L3-ADVENTERPRISE9-15.5.2T.bin
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# rename iourc iourc_rifki
Bareword “iourc” not allowed while “strict subs” in use at (eval 1) line 1.
root@eve-ng:/opt/unetlab/addons/iol/bin# ls -lt
total 1099316
-rw-r–r– 1 root root 37 Sep 13 09:28 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
-rwxr-xr-x 1 root root 172982492 Sep 13 03:08 i86bi-linux-l3-adventerprisek9-15. 5.2T.bin
-rwxr-xr-x 1 root root 105036380 Sep 13 02:58 i86bi-linux-l2-adventerprisek9-15. 2d.bin
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 172982492 Mar 2 2019 L3-ADVENTERPRISE9-15.5.2T.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 159350476 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 72726092 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
root@eve-ng:/opt/unetlab/addons/iol/bin# chmode 677 iourc
-bash: chmode: command not found
root@eve-ng:/opt/unetlab/addons/iol/bin# chmod 677 iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# ls -lt
total 1099316
-rw-rwxrwx 1 root root 37 Sep 13 09:28 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
-rwxr-xr-x 1 root root 172982492 Sep 13 03:08 i86bi-linux-l3-adventerprisek9-15. 5.2T.bin
-rwxr-xr-x 1 root root 105036380 Sep 13 02:58 i86bi-linux-l2-adventerprisek9-15. 2d.bin
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 172982492 Mar 2 2019 L3-ADVENTERPRISE9-15.5.2T.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 159350476 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 72726092 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# rename iourc iourc_rifki
Bareword “iourc” not allowed while “strict subs” in use at (eval 1) line 1.
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# sudo hostnamectl set-hostname gns3-iouv m
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# hostname
gns3-iouvm
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd /
root@eve-ng:/# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/i ol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/#

Setelah beberapa kali generate akhirnya berhasil. Brikut stepnya:

  1. Change hostname ke sebuah hostname, kita sebut saja eve-ng

root@eve-ng:/# sudo hostnamectl set-hostname eve-ng
root@eve-ng:/#

2. Execute file python “IOUkegen.py” dimana akan mengenerate license dan menambahkan info di file /etc/hosts. Jangan lupa, pastikan scrip *.py ini harus executable, pake chmod 755 aja biar semua user/group bs exe.

root@eve-ng:/opt/unetlab/addons/iol/bin# python2 IOUkeygen.py

*********************************************************************
Cisco IOU License Generator – Kal 2011, python port of 2006 C version
hostid=007f0100, hostname=eve-ng, ioukey=7f0342

*********************************************************************
Create the license file $HOME/.iourc with this command:
echo -e ‘[license]\neve-ng = 48b8e49645f76b04;’ | tee $HOME/.iourc

The command adds the following text to $HOME/.iourc:
[license]
eve-ng = 48b8e49645f76b04;

*********************************************************************
Disable the phone home feature with this command:
grep -q -F ‘127.0.0.1 xml.cisco.com’ /etc/hosts || echo ‘127.0.0.1 xml.cisco.co m’ | sudo tee -a /etc/hosts

The command adds the following text to /etc/hosts:
127.0.0.1 xml.cisco.com

*********************************************************************
root@eve-ng:/opt/unetlab/addons/iol/bin# cat /etc/hosts
127.0.0.1 eve-ng
127.0.1.1 .

# The following lines are desirable for IPv6 capable hosts

127.0.0.127 xml.cisco.com
root@eve-ng:/opt/unetlab/addons/iol/bin#

3.  Lalu create file ‘iourc’. isinya adalah license yg digenerate di step 2 diata, samplenya seperti berikut.

root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cat iourc
[license]
#gns3-iouvm=cd11acbc599f2364
eve-ng = 48b8e49645f76b04;

4. Test salah satu image IOL dengan command berikut:

root@eve-ng:/opt/unetlab/addons/iol/bin# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1

Lalu akan muncul status kalo kita bisa mem-play IOL ini.

***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

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, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.5(2)T, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Thu 26-Mar-15 07:36 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.

Linux Unix (Intel-x86) processor with 87588K bytes of memory.Installed image archive

Processor board ID 1
8 Ethernet interfaces
8 Serial interfaces
64K bytes of NVRAM.

— System Configuration Dialog —

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!

*Sep 13 07:56:56.553: %CTS-6-ENV_DATA_START_STATE: Environment Data Download in start state
*Sep 13 07:56:59.158: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0, changed state to up
*Sep 13 07:56:59.158: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up

5. Step berikutnya seperti biasa, create lab dan masukan IOL sesuai yg diinginkan.

Selamat nge-lab.

Thanks to Bos Wowo, bang Helmi, dan Rifki yang udah ngasih masukan.

LAB 2: Configure BGP di IOS XR

Berikut ini adalah lab kedua yang saya buat menggunakan IOS-XR virtual. Topology mengacu topology lab 1, dengan tambahan satu router RR (R5). Di bawah ini adalah update topologynya:

5. xr gns3Di IOS XR, konfigurasi BGP dilakukan di global config, sama seperti routing protocol lainnya.

IOS-XR#configure

IOS-XR(config)#router bgp 65000

IOS-XR(config)#neighbor 5.5.5.5

IOS-XR(config-nbr)#remote-as 65000

IOS-XR(config-nbr)#update-source loopback0

 

 

Install IOU on GNS3 VM

GNS3 sudah sejak lama digunakan sebagai simulator networking, sejak versi 0.x hingga saat ini. Di versi awal, IOS yang disimulasikan diambil/dijalankan di local komputer, namun sejak v1.x nampaknya GNS3 memberikan opsi lain agar IOS tersebut dijalankan melalui VMware atau Virtual Box, dimana IOS-nya ditaro di VMware/VB.

Saat mau menyimulasikan L2 Switch, ada keterbatasan dimana versi awal GNS3 belum bisa melakukannya sehingga dibutuhkan IOU. Maka berbekal mbah google, dicarilah IOU agar bisa menyimulasikan IOS switch di GNS3. Di Internet, banyak yang membagi IOS on Unix (IOU) dan lisensinya. Just ask google.

  1. Download dan Install GNS3 VM [1], saya menggunakan v2.1.0
  2. Download IOU dan licensinya [2]
  3. Apply ke gns3

gns3@gns3vm:~$ hostname
gns3vm
gns3@gns3vm:~$

gns3@gns3vm:~$
gns3@gns3vm:~$ sudo -s
root@gns3vm:~#
root@gns3vm:~# apt-get install vim
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package vim
root@gns3vm:~# sudo hostnamectl set-hostname gns3-iouvm
root@gns3vm:~#
root@gns3vm:~# hostname
gns3-iouvm
root@gns3vm:~# bash
root@gns3-iouvm:~#

BFD Support in NCS 5500

By formal cisco NCS 5500 with XR 6.3.x is not support BFD over vrf ipv4/ipv6. It will be support in next release. BFD with some terminology, high level and configuration is described by a guy from cisco [1]. For introduction of BFD, we can check INE video by Keith Bogart [2]. I think this video is good to start.

[1] https://community.cisco.com/t5/service-providers-blogs/bfd-over-logical-bundle-blb-implementation-on-ncs5500-platforms/ba-p/3309345

[2] ine.com or https://www.youtube.com/playlist?list=PLyykP25PsLMKk1cKoCtEzRTsjuJ0rbbhl&app=desktop

Add CSR1000v QCOW2 Image

After we have image qcow2, for example: “csr1000v-universalk9.16.06.05.qcow2”.

Step 1: create a directory (name of directory should be same with the image of qcow)

/opt/unetlab/addons/qemu/csr1000v-universalk9.16.06.05/

Step 2: upload it to eve-ng to the following directory:

/opt/unetlab/addons/qemu/csr1000v-universalk9.16.06.05/

step 3: rename the image filename of csr1000v-universalk9.16.06.05.qcow2 to virtioa.qcow2.

csr1000v-qcow

Step 4: add new lab in eve-ng.

csr1000v-qcow2

Commands in NCS 5500

There are some cli’s that I got from TAC and BU when troubleshooting Cisco NCS 5500 to find out any error or packet drop on line card. Here is:

TAC:

show controllers npu diag counters graphical instance all location 0/0/CPU0
show controllers npu stat counters-all detail instance all location 0/0/CPU0 | exclude ” 0″
show controllers npu stats traps-all instance all location 0/0/CPU0
show controllers fia diagshell 3 “diag counter g c” location 0/0/CPU0
show controllers npu stats voq base 1096 instance 3 location 0/0/CPU0
show controllers npu stats voq base 1088 instance 3 location 0/0/CPU0
show captured packets ingress location 0/0/CPU0
show captured packets ingress hexdump location 0/0/CPU0
show captured packets ingress interface Bundle-Ether40 location 0/0/CPU0
show spp node-counters location 0/0/CPU0
show netio idb Bundle-Ether30
show asic-errors all detail location 0/0/CPU0

show controllers npu voq-usage interface tenGigE 0/0/0/0/0 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/0/1 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/0/2 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/1/0 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/1/1instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/1/2 instance all location 0/0/CPU0

show controllers npu voq-usage interface tenGigE 0/0/0/10/0 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/10/1 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/10/2 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/11/0 instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/11/1instance all location 0/0/CPU0
show controllers npu voq-usage interface tenGigE 0/0/0/11/2 instance all location 0/0/CPU0

show tech
show tech sysdb
show tech pfi
show tech ipinfra
show tech vrrp

From Developer Engineer/BU:

show cef vrf <vrf_name> <ipv4_destination> hardware egress detail location <>
fec and eedb dump for the above.

show tech-support ofa file
show tech-support dpa file
show tech-support cef mpls detail
show tech-support cef platform
show tech-support cef ipv4 detail
show tech-support ethernet interface
show tech-support arp file
show tech-support pfi file
show tech-support rib ipv4
show tech-support aib

show dpa trace
show ofa trace
show controllers fia diagshell 0 “ps” location all
show controllers fia diagshell 0 “diag nif” location all
show vether-driver fsm event verbose location <>
show vether-driver fsm error verbose location <>
show logging
show cli history detail
show redundancy
show mpls ldp forwarding summary
show cef mpls trace
show cef ipv4 detail
show mpls forwarding private detail
show controllers fia trace all verbose
show controllers npu resources all location <>

other TAC Engineer how to check NPU:

show controllers npu stats voq ingress interface all instance all location  0/0/cpu0
show controllers npu resources all location 0/0/cpu0
show processes cpu location 0/0/cpu0
show controllers npu voq-usage interface all instance all location 0/0/cpu0