What is Cisco Packet tracer?
The Cisco Packet Tracer is a powerful network simulation tool for training in Cisco certifications. It gives us a good view of the interfaces of each router and network device, with many options, and we can use unlimited devices in the network just like with physical machines. We can create multiple networks in a single project for specialized training. Packet Tracer will provide us with simulated application layer protocols such as HTTP,DNS, and routing protocols like RIP,OSPF,EIGRP , etc.
It now publishes a version containing the ASA 5505 Firewall command-line configuration. Packet Tracer is typically used for Windows versions, but not for Linux versions. Here, we can download and install the Cisco Packet Tracer.
Newly released Cisco Packet Tracer version:
The next-generation Cisco Packet Tracer version will be Cisco Packet Tracer 6.2, which is currently in development.
My environment settings:
Host name : desktop1.unixmen.com
IP address : 192.168.0.167
operating system : Ubuntu 14.04 LTS Desktop
# hostname
# ifconfig | grep inet
# lsb_release -a
Step 1: First, we need to download the Cisco Packet Tracer.
To download Packet Tracer from the official website, we need to hold a token, log in to Cisco Netspace, and then select CCNA > Cisco Packet Tracer from the offering menu to start the download. If we don't have a token, we can get it from the link below and I've uploaded it to droppox.
Official site: https://www.netacad.com/
Most people don't download packet Tracer tokens, and for that reason I've uploaded it to Dropbox and you can get packet Tracer from the URL below.
Download Cisco Packet Tracer 6.1.1
Step 2: Install Java:
To install packet Tracer, we need to install Java. We can install Java using the default repository, or add a PPA repository and update the package cache to install Java.
Use the following command to install the default JRE
# sudo apt-get install default-jre
Or
Use the following steps to install the Java Run-time and set up the environment.
Download Java from the official site: Download java
# tar -zxvf jre-8u31-linux-x64.tar.gz
# sudo mkdir -p /usr/lib/jvm
# sudo mv -v jre1.8.0_31 /usr/lib/jvm/
# cd /usr/lib/jvm/
# sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.8.0_31/bin/java" 1
# sudo update-alternatives --set "java" "/usr/lib/jvm/jre1.8.0_31/bin/java"
Set up the Java environment by editing the user parameter file and add path-related parameters. When we add the user parameter file, every user on our machine can use Java.
# sudo vi /etc/profile
Add the following entry to the/etc/profile file:
export JAVA_HOME=/usr/lib/jvm/jre1.8.0_31
export PATH=$PATH:/usr/java/jre1.8.0_31/bin
Run the following command to activate the Java path immediately.
# . /etc/profile
Check the Java version and environment:
# echo $JAVA_HOME
# java -version
Step 3: Enable 32-bit architecture support:
For packet Tracer, we need some 32-bit packages. To install a 32-bit package, we need to install some dependencies using the following command.
# sudo dpkg --add-architecture i386
# sudo apt-get update
# sudo apt-get install libc6:i386
# sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
# sudo apt-get install libnss3-1d:i386 libqt4-qt3support:i386 libssl1.0.0:i386 libqtwebkit4:i386 libqt4-scripttools:i386
Step 4: Unzip and install the package:
Use the TAR command to unzip the downloaded package.
# mv Cisco\ Packet\ Tracer\ 6.1.1\ Linux.tar.gz\?dl\=0 Cisco_Packet_tracer.tar.gz
# tar -zxvf Cisco_Packet_tracer.tar.gz
Navigate to the extracted directory
# cd PacketTracer611Student
Now it's time to start installing. The installation process is simple and can be done in seconds.
# sudo ./install
To work with Packet Tracer, we need to set up the environment, Cisco has provided the environment script, we need to run the script as the root user to set the environment variables.
# sudo ./set_ptenv.sh
Install to this end. Next, we need to create a desktop icon for packet Tracer.
Create a desktop icon by creating the following desktop file.
# sudo su
# cd /usr/share/applications
# sudo vim packettracer.desktop
Use the Vim editor or your favorite editor to add the following to the file.
[Desktop Entry]
Name= Packettracer
Comment=Networking
GenericName=Cisco Packettracer
Exec=/opt/packettracer/packettracer
Icon=/usr/share/icons/packettracer.jpeg
StartupNotify=true
Terminal=false
Type=Application
Use wq! to save and exit vim.
Step 5: Run packet Tracer
# sudo packettracer
Well, we've successfully installed the packet tracer into Linux. The above installation steps apply to all Debian-based Linux distributions.
Resources
Home: Netacad
Cisco Packet Tracer installed in Linux