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
 #複製代碼VBoxManage modifyvm R1 --nic1 bridged
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
 #複製代碼/VBoxManage modifyvm R1 --nic8 none
 2. Reboot the R1 VM and reset the router R1
 #複製代碼/system reset-configuration no-defaults=yes
 3. Remove the dhcp client#
 
 The router initialisation process is complete, we can configure the router as the objectives.
 
 4. Configure the IP address of ether1 of router R1
 #複製代碼/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
 #複製代碼/ip dns set server=192.168.55.1
 7. Also you need add a default route to the Internet gateway 192.168.55.1
 #複製代碼/ip route add gateway=192.168.55.1
 8. Now you able to ping the website "www.abc.com".
 
 
 
 
 | 
附件: 
您需要登錄才可以下載或查看附件。沒有帳號?註冊