Board logo

標題: VirtualBox + RouterOS——Case Study 003 [打印本頁]

作者: 角色    時間: 2018-3-4 19:40     標題: VirtualBox + RouterOS——Case Study 003

本帖最後由 角色 於 2018-3-4 22:01 編輯

Please take a look at the following diagram:

[attach]4060[/attach]

Objective:
1. Set up the router R1 such that it could be pingable 192.168.55.1
2. Add dns to R1 such that the website www.abc.com can be pingable.

Procedure:

1. Configure the VirutalBox motherboard for router R1
  1. VBoxManage modifyvm R1 --nic1 bridged
  2. VBoxManage modifyvm R1 --bridgeadapter1 'en6: Thunderbolt Ethernet 3'
複製代碼
#

If you found unwanted interface, you may the command "showvminfo R1" to display which NIC number to provide the unwanted interface. Once the interface number is confirmed, for example NIC8, you use the following command to remove the interface
  1. /VBoxManage modifyvm R1 --nic8 none
複製代碼
#

2. Reboot the R1 VM and reset the router R1
  1. /system reset-configuration no-defaults=yes
複製代碼
#

3. Remove the dhcp client
  1. /ip dhcp-client remove 0
複製代碼
#

The router initialisation process is complete, we can configure the router as the objectives.

4. Configure the IP address of ether1 of router R1
  1. /ip address add address=192.168.55.29/24 interface=ether1
複製代碼
#

5. Now you are able to ping the IP address 192.168.55.1.

[attach]4062[/attach]

[attach]4061[/attach]

6. If we ping www.abc.com, you can receive errors because the host name is not resolvable. In order to overcome this issue, you can use the following command
  1. /ip dns set server=192.168.55.1
複製代碼
#

7. Also you need add a default route to the Internet gateway 192.168.55.1
  1. /ip route add gateway=192.168.55.1
複製代碼
#

8. Now you able to ping the website "www.abc.com".

[attach]4064[/attach]

[attach]4063[/attach]




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2