如何在Debian 10(Buster)上安装GNS3
欢迎我们关于如何在Debian 10 Buster上安装GNS3网络模拟器的教程。
GNS3可自由使用和开源网络模拟器用于模拟,配置,测试和排除虚拟和真实网络。
GNS3有助于虚拟化真实的硬件设备,并准备认证考试,如Cisco CCNA,CCNP,CCIE,瞻博网络认证等。
使用GNS3,我们可以在许多供应商之间测试互操作性,甚至使用带有SDN,NFV,Linux和Docker的网络技术尝试深度设置。
对于Ubuntu,请使用如何在Ubuntu教程上安装GNS3.
GNS3的功能
完全免费和开源 - 没有每月或者每年许可证的费用没有限制支持的设备数量 - CPU和RAM硬件是我们唯一的限制,支持所有VILL图像(IOSV,IOSVL2,IOS-XRV,CSR1000V,NX-OSV,ASAV )GNS3可以在多供应商环境中运行或者没有虚拟机管理程序,具有支持多个切换选项(ESW16 Etherswitch,IOO/IOL第2层图像,VIRL IOSVL2)GNS3支持免费和付费的虚拟机管理程序 - VirtualBox,VMware工作站,VMware Player,ESXi ,FusionGNS3对Linux具有本机支持,而无需额外的虚拟化软件
GNS3组件
GNS3由两个软件组件组成:
GNS3 - All-in-One软件(GUI)GNS3虚拟机(VM)
在Debian 10(Buster)上安装GNS3
Ubuntu PPA存储库上有预先构建的GNS3二进制包。
通过运行命令将此添加到Debian 10桌面:
sudo tee /etc/apt/sources.list.d/gns3.list <<EOF deb http://ppa.launchpad.net/gns3/ppa/ubuntu bionic main deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu bionic main EOF
导入GGP密钥:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F88F6D313016330404F710FC9A2FD067A2E3EF7B
导入密钥后,将终端上的命令攻击在Debian 10(Buster)上安装GNS3.
sudo apt update sudo apt install gns3-gui
请参阅共享
$sudo apt update Hit:1 http://ppa.launchpad.net/gns3/ppa/ubuntu bionic InRelease Hit:2 http://deb.debian.org/debian buster InRelease Hit:3 http://security.debian.org/debian-security buster/updates InRelease Get:4 http://ppa.launchpad.net/gns3/ppa/ubuntu bionic/main amd64 Packages [1,740 B] Get:5 http://ppa.launchpad.net/gns3/ppa/ubuntu bionic/main Translation-en [836 B] Fetched 2,576 B in 2s (1,262 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 206 packages can be upgraded. Run 'apt list --upgradable' to see them. $sudo apt install gns3-gui Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: augeas-lenses cpulimit dmeventd dynamips gns3-server ibverbs-providers ipxe-qemu libaio1 libaugeas0 libcapstone3 libdevmapper-event1.02.1 libfdt1 libibverbs1 liblvm2cmd2.03 libnetcf1 libqt5designer5 libqt5help5 libqt5sql5 libqt5sql5-sqlite libqt5test5 libqt5websockets5 libqt5xml5 librdmacm1 libreadline5 libspice-server1 libvdeplug2 libvirglrenderer0 libvirt-clients libvirt-daemon libvirt-daemon-system libvirt0 libvncclient1 libvncserver1 libxencall1 libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 libxengnttab1 libxenmisc4.11 libxenstore3.0 libxentoolcore1 libxentoollog1 libxml2-utils lvm2 netcat-openbsd ovmf python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebsockets python3-sip qemu-kvm qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils seabios thin-provisioning-tools ubridge vpcs x11vnc x11vnc-data xvfb Suggested packages: augeas-doc gns3 augeas-tools libvirt-daemon-driver-storage-gluster libvirt-daemon-driver-storage-rbd libvirt-daemon-driver-storage-zfs numad auditd nfs-common open-iscsi pm-utils radvd systemtap zfsutils python3-pyqt5-dbg samba vde2 qemu-block-extra sgabios debootstrap The following NEW packages will be installed: augeas-lenses cpulimit dmeventd dynamips gns3-gui gns3-server ibverbs-providers ipxe-qemu libaio1 libaugeas0 libcapstone3 libdevmapper-event1.02.1 libfdt1 libibverbs1 liblvm2cmd2.03 libnetcf1 libqt5designer5 libqt5help5 libqt5sql5 libqt5sql5-sqlite libqt5test5 libqt5websockets5 libqt5xml5 librdmacm1 libreadline5 libspice-server1 libvdeplug2 libvirglrenderer0 libvirt-clients libvirt-daemon libvirt-daemon-system libvirt0 libvncclient1 libvncserver1 libxencall1 libxendevicemodel1 libxenevtchn1 libxenforeignmemory1 libxengnttab1 libxenmisc4.11 libxenstore3.0 libxentoolcore1 libxentoollog1 libxml2-utils lvm2 netcat-openbsd ovmf python3-pyqt5 python3-pyqt5.qtsvg python3-pyqt5.qtwebsockets python3-sip qemu-kvm qemu-system-common qemu-system-data qemu-system-gui qemu-system-x86 qemu-utils seabios thin-provisioning-tools ubridge vpcs x11vnc x11vnc-data xvfb 0 upgraded, 64 newly installed, 0 to remove and 206 not upgraded. Need to get 51.9 MB of archives. After this operation, 179 MB of additional disk space will be used. Do you want to continue? [Y/n] y
选择是否允许未经特权的用户运行GNS3.
启用Docker支持(可选)
如果我们想在实验室中使用Docker Runtime Engine,请使用下面的教程将其安装在Debian 10上。
在Debian 10 Buster上安装Docker和Docker撰写
如果遇到任何权限错误,请确保用户属于以下组:
for i in ubridge docker wireshark; do sudo usermod -aG $i $USER done
在Ubuntu 18.04/Ubuntu 16.04上启动GNS3
在桌面环境启动器上,搜索GNS3以启动初始配置。
在第一页上,选择"在我的电脑上运行拓扑"
在第二页上,确认本地服务器配置位置。
第三页应该显示成功的安装消息
如果要添加虚拟机,Docker容器,VPC或者网络设备图像,请在下一步中执行此操作。
这也可以在安装后稍后完成。
配置后,我们应该在Ubuntu 18.04或者Ubuntu 16.04服务器上安装了一个准备好gns3.
为了能够捕获GNS3数据包进行分析,我们需要Wireshark。