Getting started with gns3
Содержание:
Software dependencies
In addition of Python dependencies listed in a section below, other software may be required, recommended or optional.
- uBridge is required, it interconnects the nodes.
- Dynamips is required for running IOS routers (using real IOS images) as well as the internal switches and hubs.
- VPCS is recommended, it is a builtin node simulating a very simple computer to perform connectitivy tests using ping, traceroute etc.
- Qemu is strongly recommended on Linux, as most node types are based on Qemu, for example Cisco IOSv and Arista vEOS.
- libvirt is recommended (Linux only), as it’s needed for the NAT cloud
- Docker is optional (Linux only), some nodes are based on Docker.
- i386-libraries of libc and libcrypto are optional (Linux only), they are only needed to run IOU based nodes.
What is GNS3?#
Architecture
GNS3 consists of two software components:
- The GNS3-all-in-one software (GUI)
- The GNS3 virtual machine (VM)
GNS3-all-in-one:
This is the client part of GNS3 and is graphical user interface (GUI). You install the all-in-one software on your local PC (Windows, MAC, Linux) and create your topologies using this software. This is what you usually see show in screenshots such as the following:

Server options:
When you create topologies in GNS3 using the all-in-one software GUI client, the devices created need to be hosted and run by a server process. You have a few options for the server part of the software:
- Local GNS3 server
- Local GNS3 VM
- Remote GNS3 VM
The local GNS3 server runs locally on the same PC where you installed the GNS3 all-in-one software. If for example you are using a Windows PC, both the GNS3 GUI and the local GNS3 server are running as processes in Windows. Additional processes such as Dynamips will also be running on your PC:
If you decide to use the GNS3 VM (recommended), you can either run the GNS3 VM locally on your PC using virtualization software such as VMware Workstation, Virtualbox or Hyper-V; or you can run the GNS3 VM remotely on a server using VMware ESXi or even in the cloud.
note
You are able to use GNS3 without using the GNS3 VM. This is a good way to get started initially, but this setup is limited and does not provide as many choices with regards to topology size and devices supported. If you want to create more advanced GNS3 topologies, or want to include devices such as the Cisco VIRL devices (IOSvL2, IOSvL3, ASAv) or other other devices that require Qemu, the GNS3 VM is recommended (and is often required).
note
Start a basic GNS3 topology using only the GNS3-all-in-one software and once you have got that working, refer to additional documentation for the setup of a local GNS3 VM.Emulation versus Simulation:
GNS3 supports both emulated and simulated devices.
Emulation: GNS3 mimics or emulates the hardware of a device and you run actual images on the virtual device. For example, you could copy the Cisco IOS from a real, physical Cisco router and run that on a virtual, emulated Cisco router in GNS3.
Simulation: GNS3 simulates the features and functionality of a device such as a switch. You are not running actual operating systems (such as Cisco IOS), but rather, a simulated device developed by GNS3, like the built-in layer 2 switch.
note
The lines between simulation and emulation blur a bit these days. You are now able to run Cisco VIRL images which are images of real Cisco operating system images which run on standardized virtual hardware. GNS3 emulates the hardware that VIRL images require to run
Remember: Don’t worry too much about the difference between simulation and emulation except for the following points:
- Dynamips is an older technology that emulates Cisco hardware. It uses real Cisco IOS images. It is good for basic CCNA type topologies, but has a number of limitations such as only supporting older Cisco IOS versions (12.X) which are also not supported or actively updated by Cisco.
- The recommended Cisco images to use with GNS3 are those from Cisco VIRL (IOSv, IOSvL2, IOS-XRv, ASAv). This images are supported and are actively updated by Cisco. The images support current releases of the Cisco IOS (15.X) and provide the best scale and user experience.
Introduction#
GNS3 is used by hundreds of thousands of network engineers worldwide to emulate, configure, test and troubleshoot virtual and real networks. GNS3 allows you to run a small topology consisting of only a few devices on your laptop, to those that have many devices hosted on multiple servers or even hosted in the cloud.
GNS3 is open source, free software that you can download from http://gns3.com
It is actively developed and supported and has a growing community of over 800,000 members. By joining the GNS3 community you will be joining fellow students, network engineers, architects and others that have downloaded GNS3 over 10 million times to date. GNS3 is used in companies all over the world including Fortune 500 companies.
GNS3 can help you prepare for certification exams such as the Cisco CCNA, but also help you test and verify real world deployments. Jeremy Grossman, the original developer of GNS3 originally created the software to help him study for his CCNP certifications. Because of that original work, you can today use to help you do the same without paying for expensive hardware.
GNS3 has allowed network engineers to virtualize real hardware devices for over 10 years. Originally only emulating Cisco devices using software called Dynamips, GNS3 has now evolved and supports many devices from multiple network vendors including Cisco virtual switches, Cisco ASAs, Brocade vRouters, Cumulus Linux switches, Docker instances, HPE VSRs, multiple Linux appliances and many others. Go here to see a list of appliances available: https://gns3.com/marketplace/appliances
note
GNS3 has been around for over 10 years. Some information you will find on the Internet is outdated or unfortunately entirely incorrect. This document will hopefully help answer questions and help you get started on your journey with GNS3.
note
GNS3 does not only support Cisco devices. Cisco is often discussed because that is what most network engineers are interested in learning about. However, many other commercial and open source vendors are supported today in GNS3. You are now able to test interoperability between many vendors and even try out esoteric setups using network technologies with SDN, NFV, Linux and Docker.
Recommendation: If you are using an older version of GNS3, it is recommended that you upgrade to the current stable release of GNS3.
Benefits of using GNS3
I am a network security engineer, and today I also using the GNS3 network simulator. The beauty of this application that you can integrate any new application and learn it very efficiently. Since, it allows me to run firewalls such as Palo Alto, FortiGate; I used the same tool to solve my technical issues. Some of the benefits of os using GNS3 is given below:
- GNS3 is an open-source application, so it is available for everyone.
- It’s also a cross-platform application, so you can download and install it on Windows, Linux, and macOS.
- Apart from Cisco, you can also import other vendors’ devices such as Juniper, Palo Alto, Fortinet, etc.
- When needed, we can easily integrate the GNS3 virtual devices such as Router to the other virtualization platform, i.e VMWare, Virtual Box, etc.
- GNS3 is helpful for Network and Network Security certifications such as CCNA, CCNP, CCIE, PCNSE, etc.
- The GUI of the GNS3 is very easy to use, so you can easily drag and drop installed templates. So, you can easily build new topologies and learn protocols such as OSPF, EIGRP, STP, etc.
GNS3 Help & Support#
GNS3 provides multiple ways for you to get help including:
Community
This is one of the best places to get help. Join many thousands of GNS3 users and experts helping each other make the most of GNS3.
http://gns3.com/community
DO: Do report bugs and ask questions on the GNS3 community.
DON’T: Don’t ask for illegal stuff or violate GNS3 user policies. Don’t ask for Cisco IOS images. Don’t share Cisco IOS images. Don’t do anything else that infringes copyright or breaks the law.
GNS3 YouTube channel
Watch videos on David Bombal GNS3 channel:https://www.youtube.com/playlist?list=PLhfrWIlLOoKPTPPv6ZiNHFM2FKAZ96f-r
Use Cases#
GNS3 is probably most famous as a platform used for learning and teaching. GNS3 has for years been used by students and network engineers to help practice and prepare for vendor certification exams such as the Cisco CCNA exam.
GNS3 can however be used for other use cases such as proof of concepts and commercial demonstrations. GNS3 provides an easy, cost effective way to new software such as management or SDN software. It allows you to test multi vendor interoperability using a virtual lab environment rather than requiring dedicated physical equipment.
An entire GNS3 topology can be created and run on a single laptop. This allows engineers to demonstrate topologies and software to clients and others on the road.
Classroom environments can also benefit from a preconfigured lab environment that students use to learn networking concepts and technologies.
Some additional reasons to use GNS3:
- Real-time network simulation for pre-deployment testing without the need for network hardware: Run the OS that emulates real behavior of network hardware
- Test 20+ different network vendors in risk-free virtual environment: Quickly run and test multiple hardware vendors without the need for hardware
- Create dynamic network maps for troubleshooting and proof of concept (POC) testing: — Test your networks before you build them to reduce the time it takes to get a production network up and running
- Connect GNS3 to any real network: Leverage your existing hardware and expand your current lab by connecting your GNS3 topologies directly to it
- Customized topologies and labs within GNS3 for network certification training:
GNS3 is the best study tool for aspiring network professional seeking their certifications, without the need for a home lab.
вторник, марта 12, 2013
Егор
Знакомимся с GNS3
Добрый день дорогие друзья. Извиняюсь что так долго не писал, только на прошлой недели выписался из больницы после почти трехнедельного пребывания в ней, но слава богу это заточение закончилось и сегодня мы с вами познакомимся с еще одним симулятором сетей – а именно с GNS 3.
Наверное, у вас может появиться резонный вопрос: а зачем нам вообще с ним знакомиться, ведь у нас есть всеми нами любимый PacketTracer? Вполне обоснованный вопрос, ведь PacketTracerпозволяет воспроизвести примерно 80, а то и больше процентов функционала реальных устройств фирмы Cisco. Но как говорится 80 не 100, и именно симулятор GNS3 позволит нам поковыряться практически во всех оставшихся 20%. Столь близкое приближение симулятора GNS3 к реальным устройствам Cisco происходит из за одной ключевой особенности – данный симулятор способен работать с реальными IOSами от маршрутизаторов фирмы Cisco (GNS3 не предназначен для симуляции коммутаторов фирмы Cisco), а значит мы можем грубо говоря взять IOSот реальной железки, запихнуть его в GNS3 и получить доступ к консоли виртуального маршрутизатора, обладающего всеми функциями реального. Кроме того GNS3 имеет еще одну очень интересную особенность, он позволяет соединить виртуальную сеть, спроектированную в нем, с реальной сетью, но об этом чуть позже, а пока что познакомимся с азами работы с данными симулятором.
![]() |
| Внешний вид окна симулятора GNS3 |
В принципе оно имеет довольно стандартный вид. Сверху меню, слева набор устройств в центре рабочая область. Логично предположить, что требуется перетащить устройства в рабочую область, соединить их, поковыряться в настройках и радоваться жизни. Но на самом деле все не так просто. Если вы попробуете перетащить один из имеющихся на левой панели маршрутизаторов на рабочую область, то получить сообщение вида:
| Сообщение в GNS3 |
Как мы уже говорили ранее, GNS3 работает с реальными IOSами маршрутизаторов фирмы Cisco, но есть одна загвоздочка, эти самые IOSы не идут в комплекте поставки GNS3, так как они стоят денег и соответственно просто так их никто распространять не будет (Но в этой стране это далеко не проблема и при большом желании используя в поисковом запросе ключевые слова типа Cisco + ios + номер серии маршрутизатора + torrent можно в течении 15 минут раздобыть данный образ). Следовательно для того чтобы использовать GNS3 нам сначала необходимо раздобыть образы операционных систем устройств, которые мы хотим симулировать.
Допустим у нас есть данный образ, что дальше? Далее нам необходимо добавить маршрутизатор, работающий на данном IOSeв GNS3. Для этого в главном меню нажимаем на пункт Edit– IOSimagesandhypervisors. После чего перед нами откроется вот такое прекрасное окно:
![]() |
| Добавляем образ маршрутизатора в GNS3 |
В данном окне в поле Imagefileуказываем путь к нашему IOSу (путь не должен содержать русские символы), в поле Baseconfigуказываем текстовый файл, содержащий конфигурацию маршрутизатора (Если вы хотите чтобы маршрутизатор запустился со стандартной пустой конфигурацией, то не трогайте это поле). Поля Platform, Modelи DefaultRamавтоматически сконфигурируются в соответствие с выбранным вами IOSом. Далее нажимаем на кнопку Save, после чего образ нашего маршрутизатора появится в верхней части окна, в которой перечислены образы доступные для симуляции. После этого окно добавления образа можно закрыть.
После этого перетащите из панели NodeTypes, появившийся там образ вашего маршрутизатора в рабочую область. Если все сделано верно, и образ добавлен правильно, то никаких ошибок не должно возникнуть и в рабочей области окажется маршрутизатор, все это будет выглядеть следующим образом:
![]() |
| Маршрутизатора в рабочей области GNS3 |
Для того чтобы запустить ваш маршрутизатор, щелкните по нему правой кнопкой мыши и выберите пункт Start. Через некоторое время, зависящее от производительности вашего ПК, маршрутизатор запустится. А его значок на панели TopologySummaryпозеленеет. После этого можно получить доступ непосредственно к консоли маршрутизатора. Для этого щелкните по маршрутизатору правой кнопкой мыши и выберите пункт Console. В результате откроется окно консоли:
![]() |
| Консоль маршрутизатора, запущенного в GNS3 |
Собственно говоря с помощью данной консоли вы можете приступить к конфигурированию своего маршрутизатора и поковыряться в его настройках. Об остальных возможностях GNS3 мы поговорим в следующих статьях.
Опубликовано в: Маршрутизаторы, Cisco, GNS3
FAQ
Я ещё не использую GNS3, но хочу начать. Какую версию мне стоит использовать?
— Последнюю стабильную. На момент написания статьи — это 1.4.4.
Как поменять приложение по умолчанию для консольного доступа?
— Preferences -> General -> Console Applications -> Edit
Как настроить Wireshark Live Capture?
— Установите Wireshark версии 2.x, в GNS3 Preferences -> Packet Capture убедитесь, что используется правильный путь к Wireshark.
При запуске GUI у меня отображается следующее сообщение: => Client version X differs with server version Y.
Обязательно ли использовать одинаковую версию клиента и сервера?
-Лучше использовать одинаковую, но в большинстве случаев, если клиент и сервер из одной ветки (например, 1.4), то даже несмотря на предупреждение, все будет работать нормально.
Есть ли легальный способ использовать IOL в GNS3 для тех, кто не является инженером Cisco?
— Нет. В таком случае, единственный легальный способ использовать IOL для своих топологий — это CCIE Lab Builder от Cisco.
Можно ли использовать Qemu (KVM) образы в облаке?
— Теоретически можно, если ваш облачный сервис поддерживает Nested Virtualization/KVM hardware acceleration. К сожалению, ни в AWS, ни в GCE это нельзя включить.
Можно ли экспортировать/импортировать разные конфиги для одной и той же лабы, если я использую IOL?
— Да, с помощью опции File -> Import/Export configs. Не забудьте только остановить все устройства (перед импортом/экспортом), а перед экспортом также необходимо сохранить проект.
Когда запускается IOL устройство мне показывается initial configuration dialog, можно ли этого избежать?
— Да. Для этого необходимо в файле startup-config.cfg указать все физические интерфейсы, согласно количеству ethernet и serial адаптеров, учитывая что один адаптер содержит 4 интерфейса. Минимальный конфиг для 1 ethernet и 1 serial адаптеров:
Поддерживается ли многопользовательский режим?
— Скорее нет, чем да. Ещё очень много необходимо сделать, чтобы можно было это добавить в список поддерживаемых фич. Тем не менее, в текущей версии GNS3 порты для консольных подключений выбираются автоматически, если выбранный порт занят, что позволяет нескольким юзерам делать лабы одновременно.
Куда движется GNS3?
— В 1.5.x ожидается поддержка Docker. Также планируется Web GUI (можно будет выбрать отдельное приложение или Web GUI) и многопользовательский режим. К сожалению, если я не ошибаюсь, обе эти фичи не планируются в 1.5.x
Ярлыки
Linux
(23)
python
(8)
password
(5)
routing
(5)
hack
(4)
kismet
(4)
пароли
(4)
Cisco
(3)
GNS3
(3)
bash
(3)
giskismet
(3)
huawei
(3)
iptables
(3)
network
(3)
router
(3)
tar
(3)
взлом
(3)
маршрутизация
(3)
bypass
(2)
crack
(2)
crunch
(2)
error
(2)
juniper
(2)
junos
(2)
openssl
(2)
payload
(2)
sqlite
(2)
ssh
(2)
ssl
(2)
switch
(2)
vlan
(2)
wifi
(2)
генерация
(2)
командная строка
(2)
команды
(2)
линукс
(2)
настройка
(2)
операторы
(2)
пароль
(2)
повышение привилегий
(2)
словари
(2)
телеком
(2)
P
(1)
PE
(1)
addr
(1)
alias
(1)
alsa
(1)
ap
(1)
archive
(1)
attack
(1)
audio
(1)
aws
(1)
bashrc
(1)
boot loader
(1)
bz2
(1)
bzip
(1)
ca
(1)
color
(1)
console
(1)
crontab
(1)
dahua
(1)
database
(1)
datacom
(1)
dd
(1)
ddos
(1)
deepsleep
(1)
def
(1)
dispatch_run_fatal
(1)
esp8266
(1)
factory reset
(1)
firewall
(1)
ftp
(1)
gz
(1)
handmade
(1)
hash
(1)
hashcat
(1)
headhunter
(1)
hh
(1)
hhru
(1)
hosting
(1)
https
(1)
icmp
(1)
invalid argument
(1)
ip
(1)
iproute2
(1)
kali
(1)
kaspersky
(1)
key
(1)
kismet2020
(1)
kismet_client
(1)
kismet_to_kml
(1)
kismetdb
(1)
kismetdb_to_kml
(1)
latency
(1)
linix
(1)
mac
(1)
macos
(1)
matpotlib
(1)
mergekml
(1)
mergexml
(1)
meterpreter
(1)
minicom
(1)
mpls
(1)
mrtg
(1)
named
(1)
narodmon
(1)
ne
(1)
ne40
(1)
netstat
(1)
nginx
(1)
nodemcu
(1)
opi
(1)
opi pc
(1)
orange pi
(1)
ospf
(1)
outlook
(1)
passwd
(1)
pentest
(1)
pi
(1)
ping
(1)
pulsaudio
(1)
putty
(1)
pytnon
(1)
raspberry
(1)
reset
(1)
restart
(1)
rsa
(1)
rtc
(1)
rvi
(1)
snmp
(1)
snmpwalk
(1)
ss
(1)
ssh client
(1)
sshd
(1)
sub
(1)
subinterface
(1)
sudo
(1)
sw
(1)
sw9300
(1)
systemctl
(1)
systemd
(1)
telent
(1)
terminal
(1)
tetering
(1)
traceroute
(1)
tracert
(1)
ttl
(1)
unit
(1)
unit files
(1)
unix
(1)
update
(1)
user
(1)
vendor
(1)
veracrypt
(1)
vi
(1)
video
(1)
wardriving
(1)
weather
(1)
webinar
(1)
windows
(1)
wireless
(1)
x-server
(1)
x-window
(1)
xfce4
(1)
zip
(1)
автоматизация
(1)
адрес
(1)
алиас
(1)
алиасы
(1)
антивирус
(1)
архив
(1)
аутлук
(1)
база паролей
(1)
баш
(1)
безлимиты
(1)
бесплатно
(1)
блокировка
(1)
брутфорс
(1)
ввод
(1)
видеонаблюдение
(1)
видеорегистратор
(1)
влан
(1)
восстановление
(1)
выбор цвета
(1)
графики
(1)
детектирование
(1)
доступ
(1)
доступ к консоли
(1)
заводской сброс
(1)
задержки
(1)
запаздывает
(1)
запрет
(1)
звуковая карта
(1)
имена
(1)
искажение
(1)
коды
(1)
консоль
(1)
коробка
(1)
корпус
(1)
лаги
(1)
магистральные сети
(1)
маршруты
(1)
медленно
(1)
микрокомпьютер
(1)
минипк
(1)
минкомсвязи
(1)
названия
(1)
назначить
(1)
настройки
(1)
обновление
(1)
обучение
(1)
обход
(1)
обход ограничений
(1)
объединить
(1)
одноплатник
(1)
офис
(1)
перебор
(1)
перезагрузка
(1)
погода
(1)
подбор
(1)
полезные
(1)
почта
(1)
приложения
(1)
принадлежность
(1)
проброс
(1)
программа
(1)
псевдонимы
(1)
разноцветные
(1)
разные
(1)
регион
(1)
резюме
(1)
рестарт
(1)
сабинтерфейс
(1)
сброс
(1)
своими руками
(1)
сертификат
(1)
сетевые
(1)
сети
(1)
скрипт
(1)
скрипты
(1)
сокращение
(1)
статистика
(1)
текст
(1)
телнет
(1)
тетеринг
(1)
тормозит
(1)
трассировки
(1)
трюки
(1)
удостоверяющий
(1)
узнать
(1)
файлы
(1)
хакинг
(1)
хитрые
(1)
хуавей
(1)
цвета
(1)
шифрование
(1)
шум
(1)
Настройка локального клиента GNS3
14. Запуск и настройка клиента
При запуске клиента появится Setup Wizard.
Кликаем Don’t show this again, затем Cancel

Потом на окне выбора проекта опять кликаем Cancel.
Заходим в меню Preferences.
Кликаем на раздел Server, снимаем галку Enable local server.
Кликаем на вкладку Remote Servers, добавляем доменное имя вашего GNS3 сервера или gns3server, кликаем Add:

Кликаем на раздел VPCS, снимаем галку Enable local server.
Кликаем на раздел Dynamips, снимаем галку Enable local server.
Нажимаем на Apply внизу окна.
Кликаем на раздел Dynamips -> IOS routers. Нажимаем на New. Должно появиться такое окно:

Снимаем галку Load Balance и выбираем нужный сервер.
Далее выбираем локальный образ, который хотим использовать — он загрузится автоматически на сервер. Далее следуем диалоговому окну. В результате выбранный образ Dynamips IOS должен появиться в списке:

IOL образы добавляются точно так же с помощью раздела IOS on UNIX -> IOU Devices.
После добавления всех образов кликаем OK.
15. Проверка
Построим для теста небольшую топологию, состоящую из коммутатора и трёх маршрутизаторов:

Чтобы запустить топологию, используйте кнопку Start/Resume all devices на панели.
После запуска всех устройств можно подключиться к консольным портам, нажав на Console connect to all devices.
Поздравляю, теперь ваши лабы могут быть запущены в облаке!
Getting Started with GNS3 – Creating First Project in GNS3
How to add Routers and Switches in GNS3
As we know GNS3 is an open-source Network Simulator that supports Dynamips (Dynamips is an emulator computer program that was written to emulate Cisco routers). So, with the help of Dynamips, we can import any router image which is with .bin extension.
Steps to Importing an IOS Router Image :
- First of all open GNS3 Network Simulator
- Go to Edit >> Preference
- Go to IOS Router under Dynamips
- Click New and then select New Image
- Browse for an IOS Router Image
- Now, just give the name and import various Interface according to your needs.
Creating your first Network topology in GNS3
So far, we came to know what is GNS3 where we use GNS3. In this section, we will create our first Network Topology, with the help of Cisco 7200 Series Routers. For this, first, open GNS3 and create your First Project.
GNS3 New Project
After, creating a new project. Now you just have to select your Network appliances present in the left-hand pane. In this lab, I’m just taking four Routers of the Cisco 7200 series. Now, by double-clicking, you got the CLI (Command Line Interface) of the router on your Terminal or Putty(A application to take CLI of various devices). After that, you can configure their interface and various protocols. (i.e. Routing protocol or DHCP, DNS, etc.).

Getting Starting with Command Line Interface (CLI) in GNS3
In GNS3, after adding your first IOS (Internetwork Operating System) of the Router, you need to create a Topology as given in the above picture. Now, you need to start the appliance either by right-clicking on Network Device or clicking on the start button given below the Main Menu. After the starting of IOS, you just need to double click to get CLI (Command Line Interface) of that Device.

Basic Commands which can be used in GSN3
After getting the CLI of a Cisco router, you have to use commands on CLI so that you can configure your desired network topology and can work smoothly with this. Some basic commands for a Cisco Router are given below :
1. Changing the Hostname of a Router :
In GNS3, by default, the hostname of a Router is either R(1) or Router(1). When you take more than one router, the number (1) is increased by the number of routers you take. Below command can be used to change the hostname of a Router using CLI :
2. To know Router Interfaces :
2. Assigning an IP address of an Interface :
How to Download and use Cisco IOU Images in GNS3
Many times, we require to create a network topology with a layer 2 or a layer 3 switch. By default, GNS3 has an Unmanageable switch. We can’t configure them with the help of CLI. Therefore, we need Cisco IOU (IOS on Unix) to add Layer 2 or Layer 3 switches. Below steps will guide you to configure IOU Switch in GNS3 :
Importing a Cisco IOU Image in GNS3
First of all, you need a Cisco IOU Switch image with a Licence given by Cisco. To add the IOU switch, first, you need to import the IOU Switch image to GNS3. This can be down in the following steps :
- Open GNS3 Network Simulator
- Go to Edit >> Preference
-
Click IOS on UNIX and Enter valid License
- Go to IOU Devices under IOS on UNIX
-
Click on New and browse for IOU Image
- Now Just give a Name to this Switch and click on finish.
Creating the First Project with Cisco IOU
Now, times to create our first project with the help of the Cisco IOU. For, this, just create a simple project. Now, take a Cisco IOU, which is just imported, and make a topology with the help of that IOU Switch. Here, I’m just taking two switches and creating VLAN (Virtual LAN’s) on that.
IOU Switches in GNS3.
Creating VLAN’s on Cisco IOU Switch
After the design of Network topology with the help of Cisco IOU, now we try to create VLAN’s so that we can verify the working of these switches. As you can see, we can configure the VLAN using the default commands which is used in real cisco ios switches.

Download GNS3 VM Images (VMWare & Virtual Box)
At the time of development, GNS3 is built for UNIX based systems like various Linux (Debian/RPM) and Unix systems. But in later versions is starts providing supports for Microsoft Windows.
Today, you can run it on Windows. But, for the better performance, you must have to integrate GNS3 VM with GNS3 so that it can run smoothly and gives the best performance to you.
Here, you can download GNS3 VM for VMWare, Virtual, VMWare ESXi and Microsoft Hyper-V. You can set up the GNS3 Virtual Machine as per your setup. Just download it and build your first lab today.
-
Download GNS3 VM Image for VMWare Workstation
File Name: GNS3.VM.VMware.Workstation.2.2.12.zip
-
Download GNS3 VM Image for Virtual Box
File Name: GNS3.VM.VirtualBox.2.2.12.zip
-
Download GNS3 VM Image for VMware ESXi
File Name: GNS3.VM.VMware.ESXI.2.2.12.zip
-
Download GNS3 VM Image for Microsoft Hyper-V
File Name: GNS3.VM.Hyper-V.2.2.12.zip
Do you Need a GNS3 VM on Linux Machine?
If you are using GNS3 Network Simulator in your Linux machine, you do not need to install and configure additionally Virtual Machine for GNS3. But you can! The main purpose of GNS3 VM is to give Unix Based IOU support to Microsoft Windows. But, in Linux, by default, you have the full support of IOU (IOS on UNIX). So, you can continue your installation process with the above instruction.
But, If you are installing GNS3 on Windows, It’s recommended you should go for GNS3 VM. Because, with the help of GNS3 VM, you can improve the overall performance of the system. Also, with the help of GNS3 VM, you can run several Cisco IOS (Routers) and IOU (Premium Switches) in comparison without GNS3 Virtual Machine Installation.
Should you use the GNS3 VM?#
The GNS3 VM is recommended for most situations when you are using Windows or Mac OS. The GNS3 development team have worked hard to create a lightweight, robust way of creating GNS3 topologies that avoids multiple common issues experienced when using a local install of GNS3. This includes the lack of proper Qemu support when running VIRL natively on Windows (not recommended).
However, if you only want to create basic GNS3 topologies using Cisco IOS routers, a local (Dynamips) install will suffice. This means that you only install the GNS3 GUI (all-in-one) and don’t use the GNS3 VM.
This is simpler in some ways to set up, but does have limitations and should be seen as the starting point in your GNS3 journey. As soon as you are comfortable with GNS3, it is recommended that you move to a GNS3 VM setup to make the most of GNS3 options and optimization.
Подготовка VM
После регистрации нам необходимо создать проект с помощью кнопки Create Project.

3. Создание виртуальной машины (инстанса)
После создания проекта мы попадаем в меню Google Cloud Platform.
Для создания виртуалки нажимаем в верхнем левом углу Menu -> Compute Engine:

Нажимаем на Create instance:

Параметры:
Name: gns3server
Zone: любая в Европе
Machine type: n1-standard-2 (2 vCPU 7.5 GB RAM) или лучше
Boot disk: 10-15 GB standard persistent disk, image Debian 8.3 jessie (или Ubuntu)
Внизу нажимаем Networking -> External IP: New Static IP. Вводим любое имя.
Нажатие на Create создаст виртуалку.
4. Проверка имени пользователя
После того, как виртуалка создастся, заходим на неё с помощью браузерного SSH клиента: SSH -> Open in browser window.
Проверяем имя пользователя с помощью whoami. Если имя пользователя не gns3, то необходимо его изменить:
Settings -> Change Linux Username -> вводим gns3 -> ok
5. Настройка SSH доступа к серверу
Теперь настроим доступ для любимого SSH клиента, в моём случае это SecureCRT.
Нам необходимо создать приватный ключ (если у вас ещё нет). Это можно сделать с помощью ssh-keygen или PuTTYgen (Windows), или непосредственно в SecureCRT с помощью Tools -> Create Public Key.
Ключ должен быть в OpenSSH формате с комментарием gns3. Не забудьте поставить пароль для приватного ключа (зашифровать).
Теперь необходимо добавить созданный публичный ключ в GCE с помощью меню: Compute Engine -> Metadata -> SSH keys -> Edit

Нажимаем Add item, добавляем содержимое файла id_rsa.pub и нажимаем Save.
После этого необходимо проверить, что мы можем зайти на сервер с помощью выбранного SSH клиента.
6. Настройка сетевого доступа/Firewall
Нам необходимо создать ещё одно правило с помощью кнопки Create Firewall Rule:
Name — allow-gns-traffic.
Source IP ranges — ваши IP адреса.
Allowed protocols and ports — tcp:8000; tcp:2000-3100; udp:10000-11000




