Hello everyone, I’ve been trying to set-up my network for the last few days but I ran out of ideas what could be wrong.
So the setup is, RouterOS installed on a HPE server in a VM (Hyper-v). One ethernet port is connected to my modem (5G LTE) and the other port to the main switch.
I can ping 8.8.8.8 from the router but I have no internet on any computer connected to the LAN including the host running the VM.
The DHCP on LAN is working ok, since all the computers on the network get their IP, I am just missing some setting to get access to the internet.
Just to add one more thing which might help, I can see the modems IP which is connected on ether2 (WAN) port, but when I try to ping it's IP from ether1 I get a timeout.
So it looks like the issue is with routing from ether1 (bridge_lan) to ether2. I can't ping anything on ether2 from #1.
Where is your /ip dhcp-server network entry? Without it the DHCP server won't relay the information about the gateway to the clients, and the clients will not know which gateway to use for internet access.
Also, adjust your dhcp_pool0. The address range should not be 192.168.1.1-192.168.1.253 but 192.168.1.2-192.168.1.254 because 192.168.1.1 is the router's address already.
Normally you can use the DHCP server wizard in WinBox and the pool and dhcp-server network entries will be created for you.
If you are using Hyper-V then upgrade to RouterOS 7 for better support, especially for virtual network adapter support. But you should use the modified CHR image that is UEFI compatible. You can get the VHDX image from @Amm0:
With that you can have the virtual machine to be a Generation 2 VM. You only need the image for the intial VM creation. Future ROS upgrades are done normally with WinBox/RouterOS CLI.
After the reset you have lost allow-remote-requests=yes in the /ip dns setting. Put it back because the DHCP server now advertises the router (192.168.1.1) as DNS server.
If you don't want to turn on allow-remote-requests=yes, then you need to modify the /ip dhcp-server network entry and set dns-server=8.8.8.8,1.1.1.1 on that entry.
This line should be removed too:
Also, please note that after you've made changes to the DHCP server, the clients in LAN must renew their leases to see the updated information. Usually, they only automatically renew if less than half of the lease time remains. If you set the previous lease time too long (like 1 day), you should go to the client devices and manually force them to renew the DHCP lease (either by commands such as ipconfig /renew or just unplug/re-plug cables/reconnnect WiFi.