|
楼主 |
发表于 2011-5-16 15:07:46
|
显示全部楼层
RouterOS和虚拟化
这年头,虚拟化已经被炒得无以复加,连路由器都在朝这方面发展,cisco就已在其IOS上推出了这项特性,MikroTik也不例外,早些时候我并不以为意,觉得网络设备上搞虚拟化有些本末倒置了。今天惊闻RouterOS居然可以跑我所钟爱的OpenWRT虚拟机,这让我兴奋不已,因此稍微了解了一下RouterOS的虚拟化技术。
目前RouterOS支持3种虚拟化技术:metarouter,xen和kvm,其中metarouter是MikroTik自己研发的,而xen和kvm则是开源社区的两大虚拟化技术。
开始,我以为RouterOS仅作为domU存在于xen中,谁知道,它自己可以作为dom0,这令我很意外,作为生产服务器,用户凭什么不选RedHat/CentOS而选RouterOS呢?毕竟RedHat和CentOS才是久经考验的dom0。另外,自4.4版本开始,RouterOS将放弃xen,xen好可怜,自从被citrix收购后,一直悠悠不得志,反而是kvm被RedHat收购后风生水起,这两年发展迅猛。在开源的世界里,竞争更显得残酷和无情,毕竟没有成本的顾虑,抛弃起来也更随意、更迅速。
那在RouterOS上实现虚拟化,能给用户带来什么好处呢?
In the datacenter
•consolidate a number of routers on one hardware platform
•consolidate routing services and higher levels services such a VOIP switches in the same box
•use a guest machine on top of a router for custom features such as accounting, LDAP or legacy networking
•redundant routers much easier and cheaper to have available in case of crashed systems
In the hosting center
•use RouterOS and extensive networking features as a host with a server (mail, http, ftp…) running as guest or multiple guest virtual machines
•offer virtual routers with VPN solutions that give a network administrator customer his own router on a highspeed backbone to make any kind of tunneled intranet or simply VPN access system
At the wireless ISP client site
•set up two isolated routers and set the wireless control only for the router controlled by the WISP while the Ethernet side router is fully under the clients control
At multiclient sites (such as office buildings)
•in locations serving multiple clients by Ethernet from one backbone connection (wired or wireless), give each customer control over his own isolated virtual router
For network planning and testing
•build a virtual network on one box with the same topography as a planned network and test the configurations so that the fine tuning of the configurations can be done in the lab and not in the field, simulate and monitor the network with advanced scripting and The Dude network monitor utility
In custom applications
•develop your own programs (and even Linux distributions) that can be installed on MikroTik supported platforms with minimum difficulty as software patches and virtual drivers are provided for guest systems
•use low cost RouterBOARD embedded systems easily with your own Linux and the advantage that it will work across all RouterBOARDS with the same CPU
上面是wiki.mikrotik.com中列出的应用场景,我觉得比较有用的是可以在一台RouterOS宿主上面跑多个RouterOS虚拟机,实现分而治之,节省硬件投入成本,适合于主机托管;另一个就是用来做测试和教学了,譬如在RB450G上安装metarouter、RouterOS和OpenWRT。
.
谢谢 又学到新东东了! |
|