電訊茶室's Archiver

角色 發表於 2018-3-4 18:29

VirtualBox + RouterOS——Case Study 002

[i=s] 本帖最後由 角色 於 2018-3-4 19:15 編輯 [/i]

Please see the following diagram:

[attach]4055[/attach]

Objective:
1. In order to use ssh or Winbox to access the RouterOS vm's in additional to [url=http://www.telecom-cafe.com/forum/viewthread.php?tid=7146&extra=page%3D1]Case Study 001[/url].

Procedure:
1. Configure the interface "ether2" of Router R1 as a bridge adapter to the host computer[code]VBoxManage modifyvm R1 --nic2 bridged
VBoxManage modifyvm R1 --bridgeadapter2 'en6: Thunderbolt Ethernet 3'[/code]#
Please note the device name 'en6: Thunderbolt Ethernet 3' for the bridge adapter is only applicable to my case. You have to change as per your host name. You may obtain the name via the VirtualBox GUI.

2. Configure the interface "ether2" of Router R2 as a bridge adapter to the host computer[code]VBoxManage modifyvm R2 --nic2 bridged
VBoxManage modifyvm R2 --bridgeadapter2 'en6: Thunderbolt Ethernet 3'[/code]#

3. Set the IP address of "ether2" of R1[code]/ip address add address=192.168.55.29/24 interface=ether2[/code]#

4. Set the IP address of "ether2" of R2[code]/ip address add address=192.168.55.28/24 interface=ether2[/code]#

5. After the above configuration, we are able to access the router vm's using the "ssh" or "Winbox" command.

[attach]4056[/attach]

[attach]4057[/attach]

[attach]4058[/attach]

[attach]4059[/attach]

頁: [1]

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