標題: VirtualBox + RouterOS——Case Study 004 [打印本頁] 作者: 角色 時間: 2018-3-4 22:30 標題: VirtualBox + RouterOS——Case Study 004
本帖最後由 角色 於 2018-3-5 11:42 編輯
Please see the following figure:
[attach]4065[/attach]
Objective:
1. Configure the router R1's ether1 to be a dhcp client such that it obtians 1) ip address from the dhcp server, 2) dns server, 3) IP address of Internet gateway.
Procedures:
1. System reset the router R1 (please see CS001)
/system reset-configuration no-defaults=yes
複製代碼
#
2. Remove the default dhcp client
/ip dhcp-client remove 0
複製代碼
#
3. Check there is no item in /ip route, /ip address, /ip dhcp client.
4. Add the dhcp client at interface ether1
/ip dhcp-client add interface=ether1 disabled=no
複製代碼
#
5. Now you able to ping a hostname, "www.abc.com"
[attach]4066[/attach]
Remarks:
If you not able to ping hostname but IP, then you have to set the previous dns server to allow the remote-dns-requests.