First,you have to install the dynagen and python-qt4 packages.
sudo apt-get install dynagen python-qt4
Afterthat, you have to download GNS3 source for Linux. You can eitherdownload it from their website or you can use the terminal todownload it for you. cd /optsudo wget http://downloads.sourceforge.net ... rc.tar.bz2?downloadsudo tar -xjvf GNS3-0.7.4-src.tar.bz2?downloadsudo mv GNS3-0.7.4-src /opt/GNS3
Duringmy installation, the latest version is v0.7.4. Check this websitefirst to see what is the latest version: http://www.gns3.net/download Createthe following directories inside the GNS3 directory: Dynamips, IOS,Project, Cache and tmp. cd /opt/GNS3sudo mkdir Dynamipssudo mkdir IOSsudo mkdir Projectsudo mkdir Cachesudo mkdir tmp
AddRead and Write permissions for the other users to the followingdirectories: Project, tmp and IOS. sudo chmod o+rw -R ./Projectsudo chmod o+rw -R ./tmpsudo chmod o+rw -R ./IOS
DownloadDynamips and make it executable: cd Dynamipssudo wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.binsudo chmod +x ./dynamips-0.2.8-RC2-x86.bin
Installthe Qemu package. sudo apt-get install qemu
Thatends the installation of GNS3. The next steps will tell you how toconfigure GNS3. Createa launcher for GNS3 Inthe Desktop, create a new launcher and use the following command: python "/opt/GNS3/gns3"Oryou can use the Main Menu configuration to add one. LaunchGNS3 and go to Edit> Preferences > Terminal Settings > Preconfigurated TerminalCommands **Gnome Terminal (Linux) Youwill see that the Terminal Command will be similar to this: gnome-terminal -t %d -e 'telnet %h %p' >/dev/null 2>&1 &Inthe General Settings tab, look for Paths: Configurethe Project directory: /opt/GNS3/ProjectImagedirectory: /opt/GNS3/IOSGoto the Dynamips tab and look for the Executable path: /opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.binWorkingDirectory: /opt/GNS3/tmpGoto the Capture tab and look for the working directory for capturefiles: /opt/GNS3/ProjectGoto the Qemu tab and set the Path to qemu: /usr/bin/qemuPathto qemu-img /usr/bin/qemu-img
That’sit. You now have installed and configured GNS3 to run on Ubuntu. Youjust have to own an IOS to start setting up your routers.
该贴已经同步到 TD-Link的微博 |