返回列表 發帖

VirtualBox + RouterOS——Case Study 003

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

Please take a look at the following diagram:



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.





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".



附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

返回列表