User Tools

Site Tools


pnetlab

This is an old revision of the document!


Install pnetlab and more

pnetlab install

  • Extract ova: tar xvf PNET_4.2.10.ova
  • convert to qcow: qemu-img convert -O qcow2 PNET_4.2.10-disk1.vmdk PNET_4.2.10-disk1.qcow2
  • Move it to a safe place for virsh images: mv PNET_4.2.10-disk1.qcow2 /home/jaime/Documents/images-libvirt''
  • virt-manager > cree new virtual machine > import existing dik image#
  • Select: Ubuntu 18.04 LTS » all default and do not click customize before install
  • wizard: dhcp and direct connection
  • once up, force down vm and change settings (memory and cpu)
  • enter 192.168.122.56 in web browser, select online mode
  • Install eveng integration to use console instead of html-guacamole

now install iol devices

scp i86bi_linux-adventerprisek9-ms.156-3.M3a.bin root@192.168.122.56:/opt/unetlab/addons/iol/bin/
scp L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin root@192.168.122.56:/opt/unetlab/addons/iol/bin/
ssh root@192.168.122.56    # password pnet
! in pnetlab
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
python2 /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py
cd /opt/unetlab/addons/iol/bin
touch NETMAP
LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/<iosname.bin> 1    # do it with each IOL image before testing them in UI

now install fortigate

mkdir /opt/unetlab/addons/qemu/fortinet-FGT-v6-4-build1579
scp ./fortinet-FGT-v6-4-build1579/virtioa.qcow2 root@192.168.122.56:/opt/unetlab/addons/qemu/fortinet-FGT-v6-4-build1579/
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
! go to UI and start the FW
! Now go the FGT cli:
admin no password, then password admin too
config system interface
  edit port1
  set imode static
  set ip 192.168.1.2/24
end

Install ubuntu machine

pnetlab.1710020394.txt.gz · Last modified: by jotasandoku