電訊茶室's Archiver

角色 發表於 2018-2-23 19:31

VirtualBox + RouterOS + GNS3

[i=s] 本帖最後由 角色 於 2018-2-27 13:05 編輯 [/i]

有的时候为了快速测试一下默写topology, 能用simulation就先行,然后再连上真实环境去测试,也不错!

GNS3: [url]https://www.gns3.com/[/url]
VirtualBox: [url]https://www.virtualbox.org/[/url]
RouterOS (可以CHR版本,或者ISO版本):[url]https://mikrotik.com/download[/url]
不同version of GNS3 link:
[url]https://github.com/GNS3/gns3-gui/releases[/url]

How to combine them together can be found in the following link:
[url]https://forum.mikrotik.com/viewtopic.php?t=99658[/url]

VirtualBox User Manual can be downloadable from the link [url]http://download.virtualbox.org/virtualbox/UserManual.pdf[/url]

OpenWrt on VirtualBox
[url]http://blog.tshine.me/virtualbox%E5%AE%89%E8%A3%85openwrt.html[/url]

组网的时候,VM1,VM2,Host,Internet是怎样连起来,最好看看下面帖子:
[url]https://blogs.oracle.com/scoter/networking-in-virtualbox-v2[/url]

角色 發表於 2018-2-23 19:31

[i=s] 本帖最後由 角色 於 2018-2-24 17:11 編輯 [/i]

Virtual Lab reference:

How to emulate a network using VirtualBox
[url]http://www.brianlinkletter.com/how-to-use-virtualbox-to-emulate-a-network/[/url]

有些人,只用VirtualBox + RouterOS,而没有GNS3
[url]https://mivilisnet.wordpress.com/2016/11/21/my-virtual-lab/[/url]

How to Connect GNS3 to VirtualBox: Virtual Network Lab with GNS3
[url]http://www.smartpctricks.com/2014/06/connect-gns3-to-virtualbox.html[/url]

Basic RouterOS under VirtualBox
[url]http://myhomelab.blogspot.hk/2013/12/basic-routeros-under-virtualbox.html[/url]

How to connect the Ethernet ports internally? (set the adaptor to "Internal networking" for the ports that you want to connect with.
[url]https://www.youtube.com/watch?v=nsbxw_jx1wQ[/url]

角色 發表於 2018-2-23 19:31

[i=s] 本帖最後由 角色 於 2018-2-24 14:02 編輯 [/i]

How to install GNS3 VM on VMware but it is also applicable to VirtualBox

[url]https://www.youtube.com/watch?v=tmSIAuuLmIg[/url]

角色 發表於 2018-2-23 19:31

[i=s] 本帖最後由 角色 於 2018-2-26 09:59 編輯 [/i]

VirtualBox

Oracle VM VirtualBox: Networking options and how-to manage them
[url]https://blogs.oracle.com/scoter/networking-in-virtualbox-v2[/url]

More than 4 Network Cards in Virtualbox
[url]https://www.eanderalx.org/virtualization/8_network_card_vbox[/url]

More than 4 Network Cards in Virtualbox
[url]https://networkengineer.me/2014/07/11/more-than-4-network-cards-in-virtualbox/[/url]


VirtualBox Host-Only Static IP
[url]https://gist.github.com/pjdietz/5768124[/url]

Host-Only Networking with VirtualBox
[url]http://christophermaier.name/2010/09/01/host-only-networking-with-virtualbox/[/url]

VirtualBox Networking: an overview
[url]http://bertvv.github.io/notes-to-self/2015/09/29/virtualbox-networking-an-overview/[/url]

In VirtualBox, how do I set up host-only virtual machines that can access the Internet?
[url]https://askubuntu.com/questions/293816/in-virtualbox-how-do-i-set-up-host-only-virtual-machines-that-can-access-the-in[/url]

Ways to add additional interfaces five to eight (4 additional interfaces) via VirtualBox command.

More than 4 NIC in Virtualbox
[url]http://ngoprek-is-fun.blogspot.hk/2014/03/more-than-4-nic-in-virtualbox.html[/url]
[url]http://ngoprek-is-fun.blogspot.hk/2014/03/more-than-4-nic-in-virtualbox.html[/url]

How to create multiple NAT Networks in VirtualBox
[url]https://www.techrepublic.com/article/how-to-create-multiple-nat-networks-in-virtualbox/[/url]

Oracle VM VirtualBox Network Configuration Options
[url]https://www.opentechguides.com/how-to/article/virtualbox/140/vm-virtualbox-networking.html[/url]

VirtualBox 4.3 Adds NAT Network
[url]https://jekewa.com/blogs/index.php/weBlog/2014/01/09/virtualbox-4-3-adds-nat[/url]

角色 發表於 2018-2-23 19:32

[i=s] 本帖最後由 角色 於 2018-2-26 10:00 編輯 [/i]

Network Configuration in VirtualBox for SEED Labs
[url]http://www.cis.syr.edu/~wedu/seed/Documentation/VirtualBox/VirtualBox_NATNetwork.pdf[/url]

角色 發表於 2018-2-23 19:32

备用帖子6

角色 發表於 2018-2-23 19:32

备用帖子7

角色 發表於 2018-2-23 19:33

备用帖子8

角色 發表於 2018-2-24 17:20

花了好几天的时候,终于明白怎样利用VirtualBox + RouterOS(暂时搁置GNS3,问题多多,花了超过60%的时间去搞GNS3与VirtualBox连接,但是效果不好,没有办法宇pc的winbox链接,等把VirtualBox弄懂了,再去跟GNS3连接)。

但是在VirtualBox + RouterOS已经非常好用了!!!

RouterOS在VirtualBox可以建立4个Adaptors。如果你想local PC的winbox接到你VirtualBox里RouterOS,那么那个Adaptor要set “Bridged networking”,adpator set了“Bridged networking”后可以上Internet,而Internet的PC也可以ping到RouterOS。

而有些interfaces接其他devices,就可以set“Internal networking”, 大家看成一个vlan,当然不是vlan,只是往这个方向想。

如果是routing方面,那么用VirtualBox + RouterOS也非常好用。

角色 發表於 2018-2-25 13:24

[i=s] 本帖最後由 角色 於 2018-2-25 14:03 編輯 [/i]

把题目次序调换一下,先学好VirtualBox,然后加入RouterOS,最后才和GNS3结合。估计随后会做比较试验,做好了再放入实体机验证。

角色 發表於 2018-2-25 16:27

哈哈,我想起当年我们一起学习VoIP的ATA,然后Asterisk(其实当年去深水埗的时候,在二楼黄金商场,在一个转角位的一个店里的工作人员说“VoIP ATA只是一小部分,如果你学会Asterisk,你才对VoIP整个流程更加了解!!!”,于是从那个时候开始对Asterisk学习。

那么本帖子与学VoIP Asterisk有什么关系呢? 关系就是大家有同一个platform,这个是非常重要的,如果没有,你有你讲,根本都follow不到!!!很多都不能比较跟随。如果你有一台电脑,然后下载适合的软件就可以开始——Road to Learning Networking Routing and Switching World via VirtualBox and RouterOS。

可能有些members也不太明白,不要紧,只要members根据这个帖子,然后建立一些网络,当然你最后有实体机,simulation做好后,可以放上实体机测试效果,这样效率会高很多,因为很多实体机都在Production上,如果犯了一些(N多低级错误)搞到整个network都不能工作就不太好!

(不过很快又开学了,我也忙了,所以可能写帖子的速度会慢一下,其他members有空也可以建立一些模拟网络来,讨论一下)。

角色 發表於 2018-2-26 17:03

因为RouterOS不太,而且功效比较强,我们可以把它configure到不同的devices:

Router(本身就是)
L3/L2 Management Switch
Terminal (可以set DHCP client,static IP client,PPPoE client,等等)

VirtualBox最多给你set8个interfaces,但是VirtualBox GUI最多让你set四个,其余可以用VirtualBox command去set。

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.