標題: VirtualBox + RouterOS——Case Study 006 [打印本頁] 作者: 角色 時間: 2018-3-5 01:13 標題: VirtualBox + RouterOS——Case Study 006
本帖最後由 角色 於 2018-3-5 12:51 編輯
Please take a look at the following diagram:
[attach]4071[/attach]
Objectives:
1. Interface e1 is able to obtain a) IP address from the DHCP server, b) Gateway 192.168.55.1 and c) DNS servers via the DHCP client.
2. PC2 and PC4 are mutually pingable.
3. PC2 and PC4 are able to ping hostnames (e.g. www.abc.com).
Procedures:
1. Clone the CHR RouterOS
2. Reset and initialise the VirtualBox Manboard for R1 VM
- add 4 NIC (one bridge, three internal networks)
- set each NIC promiscuous mode to allow-vmd
- add cables for NIC2-3
After intialisation, you are able to ping any valid hostname via the console terminal since the default settings for ether1 (e1) after initialisation is dhcp client. (For the case that you do not have this settings, you can manually type
/ip dhcp-client add interface=ether1 disabled=no
複製代碼
#
4. Set IP addresses for ether2 (e2) and ether4(e4)
With the above default gateways for each PC, both PC are able to be mutually pingable.
Up to this moment, we are still not able to ping www.abc.com because the return address (10.10.10.0/24 and 10.10.20.0/24) is not known. The only know return address is 192.168.55.0/24. As a result, we need to add the masquerade rule for Router R1. Also we need to set up the dns server in PC2 and PC4.