Setting up network.

Hi,

Let me start off with what I am trying to do with my home network. Currently my IPTV and Internet Access runs through a modem to a router/gateway. I am trying to separate the internet and IPTV bits into separate devices.

I have bought both a RB250GS and a RB750GL for this purpose.

I essentially want to set it up so to have something like modem → switch → mikrotik router and hpna router.

I have accomplished most of this, but when I plug the 750GL into the switch, it does not grab a IP address from the modem, nor does it distribute IP addresses to connected computers.

I have tried to create a simple DHCP on ethernet 1 port as suggested by the DHCP server setup guide on the wiki, but the desktop is not grabbing any IP addresses.

Any help on this issue will be greatly appreciated.

Thanks!

Create DHCP “client” on the interface facing the modem, and DHCP “server” on the interface facing your computer.
It is probably you are to NAT the interface facing to the computer for this to work.
Why are you adding the switch ?

Hi jorj,

The switch is so that I can make use of the second router that serves the HPNA coax network in my household.

I have created a DHCP Client on Ether1 which is the WAN port that is connected to the switch.

At the same time I have created a DHCP Server from Ether1.

I have followed through with your NAT suggestion and created rule that ‘Masquerades’ all network connection going out through Ether1 as well.

I have tested through Terminal that the router can ping outside servers (ie. google.com) However, my DHCP server is not functioning as my desktop is not grabbing addresses. Is there any guide that can help me successfully set one up?

Thanks!

Make sure your dhcp config is right.
run /ip dhcp-server setup
from console, and see what happens, after you disable the initial config of dhcp server. Check that you have the correct interfaces set-up, and that the masquerade is correct.
put here an export of /ip dhcp-server, and of the /ip firewall nat.

Hi Jorj,

Here are the exports:

DHCP-Server

/ip dhcp-server
add address-pool=dhcp_pool2 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether1 lease-time=3d name=dhcp1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=192.168.0.0/24 gateway=192.168.0.1

Firewall NAT

/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=ether1

Surprisingly there was not default DHCP that came with the 750GL. Right out of the box I expected that the desktop be assigned an IP because the webfig was suppose to be usable at 192.168.88.1

Anyways, I haven’t changed anything from default in the interface.