【RouterOS】——WAN=DHCP client, LAN=router without DHCP server
| 本帖最後由 角色 於 2013-3-9 21:13 編輯 
 複製代碼/inteface ethernet
add 2 name=Public
add 10 name=Local
複製代碼/ip dhcp-clinet
add interface=Public disabled=no
複製代碼print detail
 0   interface=Public add-default-route=yes default-route-distance=1
     use-peer-dns=yes use-peer-ntp=yes status=bound address=168.70.xxx.yyy/24
     gateway=168.70.xxx.yyy dhcp-server=58.153.xxx.yyy
     primary-dns=218.102.32.134 secondary-dns=219.76.98.66
     expires-after=27m56s
複製代碼/ip address
add address=192.168.100.1/24 interface=Local
PC TCP/IP setting複製代碼/ip firewall nat
add action=masquerade chain=srcnat out-inteface=Public
 host IP=192.168.100.2
 netmask = 255.255.255.0
 gateway = 192.168.100.1
 dns=8.8.8.8
 |