/ip dns set allow-remote-requests=yes servers=192.168.2.1,192.168.1.1
This is wrong! You specify your own address as a DNS resolver for the router to use!
You should put only external addresses here.
/ip dhcp-server network add address=192.168.2.0/24 gateway=192.168.2.1 netmask=24
Add some DNS servers (either 192.168.2.1 and/or some external addresses) here.
Also I do not see a route so external addresses will not be reachable. That is why you cannot reach that 114.114.114.114. server.
Thanks for your reply.I did set the DNS server in ROS which is 192.168.2.1 the same as the LAN gateway.Use ROS to deliver the DNS request.
Picture below is the test environment.Ros v6 is the up router which works well. Ros v7 is the testing machine.Which get IP and DNS from up router.
The problem is PC got ip address from ROS v7 normaly whitch is 192.168.2.254 but the DNS column is empty.
If i configure PC to static address with LAN IP: 192.168.2.254 default gateway: 192.168.2.1 and dns: 192.168.2.1. everything works as expected.
The only thing is dhcp-clicent can not get dns information from ROS v7 DHCP-SERVER when router bootup.It takes nearly 5 minutes to wait for the imformation.
捕获.JPG
below is the configure
I did set a masquerade to WAN /ip firewall nat add action=masquerade chain=srcnat out-interface=WAN
/interface ethernet set [ find default-name=ether2 ] advertise=1000M-half,1000M-full,10000M-full mac-address=54:AB:3A:70:D6:30 name=LAN rx-flow-control=auto speed=1Gbps tx-flow-control=auto
/interface ethernet set [ find default-name=ether1 ] advertise=1000M-half,1000M-full,10000M-full mac-address=54:AB:3A:70:D6:32 name=WAN rx-flow-control=auto tx-flow-control=auto
/ip pool add name=dhcp ranges=192.168.2.2-192.168.2.254
/ip dhcp-server add address-pool=dhcp disabled=no interface=LAN name=DHCP
/ip neighbor discovery-settings set discover-interface-list=all
/ip address add address=192.168.2.1/24 interface=LAN network=192.168.2.0
/ip dhcp-client add disabled=no interface=WAN use-peer-dns=no use-peer-ntp=no
/ip dhcp-server network add address=192.168.2.0/24 gateway=192.168.2.1 netmask=24
/ip dns set allow-remote-requests=yes servers=192.168.2.1
/ip firewall nat add action=masquerade chain=srcnat out-interface=WAN
You do not have the required permissions to view the files attached to this post.