Install Cisco Packet Tracer in Linux
What is Cisco Packet tracer?
Cisco Packet Tracer is a powerful network simulation tool used for Cisco authentication training. It provides us with a good interface view for various routers and network devices. These simulation devices have many options. Like physical machines, we can use unlimited devices in the network. We can create multiple networks in a single project for professional training. Packet Tracer will provide us with simulated application-layer protocols, such as HTTP, DNS, and routing protocols such as RIP, OSPF, and VPN.
Now, it has released a version containing the command line configuration of the ASA 5505 firewall. Packet Tracer is usually used in Windows but does not have a Linux version. Here, we can download and install Cisco Packet Tracer.
New Cisco Packet Tracer version:
The next generation of Cisco Packet Tracer will be Cisco Packet Tracer 6.2, which is still under development.
My environment settings:
Host Name: paitop1.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 Cisco Packet Tracer.
To download Packet Tracer from the official website, we need to hold a token, log on to Cisco NetSpace, and select CCNA> Cisco Packet Tracer from the Offering menu to start downloading. If we don't have a token, we can get it from the following link. I have uploaded it to Droppox.
Site: https://www.netacad.com/
Most people do not download the Packet Tracer token. For this reason, I have uploaded it to dropbox. 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 use the default repository to install java; or add the PPA repository, and then update the package cache to install java.
Run the following command to install the default jre
# sudo apt-get install default-jre
(Or)
Use the following steps to install Java Run-time and set the environment.
Download Java from official website: 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"
You can edit the USER parameter file to set the Java environment and add path-related parameters. After we add it to the user parameter file, every user on our machine can use java.
# sudo vi /etc/profile
Add the following entries 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 the 32-bit package, run the following command to install some dependencies.
# 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 software package:
Run the tar command to decompress 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 decompressed directory
# cd PacketTracer611Student
Now it is time to start the installation. The installation process is simple and takes only a few seconds.
# sudo ./install
To use Packet Tracer, we need to set the environment. Cisco has provided the environment script. We need to run the script as a root user to set the environment variables.
# sudo ./set_ptenv.sh
Installation ends. 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 content to the file.
[DesktopEntry]
Name=Packettracer
Comment=Networking
GenericName=CiscoPackettracer
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
Now, we have successfully installed Packet Tracer in Linux. The above installation steps apply to all Debian-based Linux distributions.
Resources
Home page: Netacad
Conclusion:
Here we show how to install Packet Tracer to the Linux release. I hope you have found a way to install your favorite simulator on Linux.
Via: http://www.unixmen.com/installing-cisco-packet-tracer-linux/
Author: babin Translator: GOLinux Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China
This article permanently updates links: