標題: 【RouterOS】——CLI 1 WAN (DHCP Client) and 1 LAN (DHCP Server) [打印本頁] 作者: 角色 時間: 2013-1-2 23:08 標題: 【RouterOS】——CLI 1 WAN (DHCP Client) and 1 LAN (DHCP Server)
本帖最後由 角色 於 2013-3-10 23:15 編輯
Add alias to interface Eth1 and Eth2:
/interface ethernet
set 2 name=Public
set 10 name=Local
複製代碼
#
Add interface Public as DHCP client:
/ip dhcp-client
add interface=Public disable=no
複製代碼
#
Add your ISP' DNS:
/ip dns
set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes
Please note that if a switch is connected to the Local port, ALL LAN ports of the switch could be used. The PC's IP, gateway and DNS are given by the DHCP Server at the Local port.