Lost Newbie help w/RB493 basic Internet DHCP Router Setup

I just can;t seem to grasp to setup this RB493 for ETH2 thru 9 as DHCP on interior 192.168.50.1 LAN setup.


I want it set up like this :

ETH2-9

DHCP 192.168.50.102-109
255.255.255.0

Gate 192.168.50.1 (eth1 port)

ETH1 WAN Port IP xx.xxx.xxx.66
Gateway xx.xxx.xxx.1
net 255.255.255.0
DNS xx.xxx.xxx.13
SecDNS xx.xxx.xxx.xxx


A Basic out of the box router, ETH1 port being the WAN , ETH2 -9 DHCP ports gateway’d to the ETH1 WAN port.

Simple basic setup. I can learn form there. Right now, I have no idea how to get it into our network in it’s most basic form. The are just too many menus in winbox that i do not understand.

Can you help me out? I have been on every WIKI and cannot figure it out. It seems the most basic of setups is just not explained in newbie terms or screen shots.

Clear any configuration:

/sys reset-c skip-b=y no-def=yes

Create an IP pool from which the users will get their IPs

/ip pool add name=dhcp-pool1 ranges=192.168.50.102-129

Add a network configuration for the DHCP server:

/ip dhcp-s netw add addr=192.168.50.0/24 dns=<insert your dns> gatew=192.168.50.1 netm=255.255.255.0

Now you can create the actual DHCP server:

/ip dhcp-s add address-pool=dhcp-pool1 autho=yes int=ether2 src-a=192.168.50.1

As you want to have ether2-9 switched together do:

/int eth set ether3,ether4,ether5,ether6,ether7,ether8,ether9 master=ether2

Done. :slight_smile:

1st.

I have never entered commands like that, and would not know where to enter them.

I have connected to winbox on eth1 .


2nd.

If i put those commands in , when I learn how, will ETH2 - 9 use ETH1’s public address as it’s internet gateway, and if so,where is that setup and in what screens?

so 192.168.50.1 is the interior gateway, and it is somehow connected to the Exterior address on Eth1, right?

Sorry, I am just not savvy.

You can click the Terminal button in Winbox and get a command line interface, and paste the commands in. You can then use Winbox to see what they did. They correspond roughly, “/ip dhcp-s” is short hand for “/ip dhcp-server” and you can view what the command did in Winbox by clicking the IP button and choosing the DHCP Server option.

Cool,

I was able to paste the commands.

However , I need to be a little more specific in what I want.

I do not want to assign 192.168.50.xxx address’s to 68.xxx.xxx.xxx adress on the exterior.

I want to have ONE address on ETH1 be the internet gateway for the 192addys assigned on ETH2 - 9.

The way these commands set it up , I think it was trying to assign addys in the ETH1 address block . ETH1 has only one address, .

I feel overwhelmed but have never played this deep with a router before.

Right now with the commands I put in , it does not dish out addys in the 192 168 50 range on ETH2 -9. I get 169.254 range with limited connectivity.

I have really tried hard to make this work. Just a simple router, and cannot.

I did something wrong, and now I cannot connect to the router with winbox anymore.

I just dont understand the 88.888.888.1/0 commands. What does the / and 0 or 24 do to the IP address.

I just dont get it. Is that the netmask and is there a table for it.

Now , I have locked myself out of the router. ETH1 still shows an address I put in , even after a hard reset with the switch next to the ETH1 port. I hit the … button on Win Box and it shows an address that I cannot connect to, I tried to change IP for it, and must have put in the wrong / command …

Is there a way to ENTIRELY blankout this RB493 and start from scratch? With a way for me to connect to it through ETH1 ? Or after a complete blank reset ( I do not know how to do this) , do you have touse the serial port, and if so, what baud rate?

BTW, is there a config file I can download to make this exactly like a Linksys 8 port Router right out of the box?? I certainly have wasted more money in time trying to make this RB493 like a store bought router than to have just bought one in first place.

Where can I download a preset CFG file to make this a normal router? Is that available?

Also,

the rb493 I have is in a metal box with ETH2 -9 on the front and ETH1 and sereial on the side.

I did something wrong, and now I cannot connect to the router with winbox anymore.

In winbox click on “…” - does the router still show up?
If so click on it’s MAC-ID (not the IP address) and you will be able to connect and reset the configuration (see my first post).

Is that the netmask and is there a table for it.

Yes, it’s pretty simple:

32 = 1
31 = 2
30 = 4
29 = 8
28 = 16
27 = 32
26 = 64
25 = 128
24 = 256

That is the number of IPs in a subnet. Substract 2 to get the actual number of usable host IPs.
Converting this to the 255.255.255.0 format isn’t to difficult either:
First check on how often the 8 fits into CIDR-mask (e.g. 3 times for 24).
Each 8 makes a “255” block.
So for /24 that would be 3x 8 + 0 = 255.255.255.0
Now take a more difficult one like /27: 3x 8 + 3 = 255.255.255.x
For the x just take this chain: 128,64,32,16,8,4,2,1
and add the remainder from the left (e.g. 3 = 128 + 64 +32) and you end up with 255.255.255.224

ooooor just use http://www.subnet-calculator.com/cidr.php :slight_smile:

and if so, what baud rate?

Only the highest possible (115-something) will work.

BTW, is there a config file I can download to make this exactly like a Linksys 8 port Router right out of the box?

I don’t know of any.

ETH1 has only one address, .

So you have one public ip and need NAT?

That’s easy:

/ip firewall filter add chain=srcnat out-interface=ether1 action=masq

Thanks for the education.

Saved , and archived.


Now on to my router , I had no idea that you could click onthe mac addy, I WAS clicking on the address. Again, thank you.

Back at it, this newbie will learn .

Mike

I Tried th elast line of code you posted for me.

I got this back from the terminal:

[admin@MikroTik 1] > /ip firewall filter add chain=srcnat out-interface=ether1 a
ction=masq
syntax error (line 1 column 66)

any ideas?

I cannot get past square 2.

I quess what I want is for ETH2 - 9 to DHCP an address in the 192.168.50.100 - 150 range.

So Far I have not been able to do this. No matter what I try , eth2-9 do not dish out addy’s. I always end up with a 169.xxx.xxx.xx address.


I have tried the lines of code you listed, but something is not working.

In the first line of code you put in …

What dns? the dns of the public IP on eth1??? (I still have not got that to work either).

Where does the DHCP server reside? On a port that is not used? On the public port? Or the port you want to serve DHCP?

This is so incredibly complicated for such a simple setup ,I am overwhelmed and really doubting that I am going to be able to understand it.

A set of code for setting up eth2-9 to dhcp address’ in 192.168.50.100-150 range.

I know what I want, but do not understand how it happens. I quess I just don’t belong here .

Sounds like maybe you do belong here. Everybody starts somewhere. Just take it a step at a time.

Can you show me
/ip address print
/ip dns print
/ip route print

There are the basics. Once these are set correctly, you should have no problem with your localnet dhcp server. Is you wan interface a static ip or dhcp client?

I cannot connect to it anymore.

I at first use the … button, and get a mac address. I can no longer get the … button to show anything. I was throwing other lines of code at it from the WIKI and must have completely locked it up.


I would love to give you the prints from it. But, I have fried it.

Where can I send this MikroTik to have it programmed as a store bought router?

one static IP on the ETH1 port , I have all the info, IP, Gateway, DNS, Netmask.

ETH2 -9 DHCP on an interior of 192.168.50.1 with 192.168.50.1 being the gateway to the Public IP. Addy’s 100-150 dished out on eth2-9 with full internet access on the public IP on ETH1.

I.E. a store bought off the shelf 8 port router . Where can I send it , or trade it for a Linksys 8 port router. LOL. I am fried. I know these routers are supposed to be the next best thing to sliced bread, but at this point I would take end piece of a stale loaf.

Sometimes it seems that way. Do you have a null modem serial cable? If not, what interface are you trying? Ether1 is normally assigned 192.168.88.1/24 by default. If you didn’t remove it, maybe you can connect to ether1. Or is that what you are trying?

I had assigned another IP to ether 1 and then screwed it up so badly that I can no longer connect to it, it seems.

I have a serial cable. But, when I connect to it, with HyperTerminal , I get the sign on , power up text, loading this and that, but I cannot seem to get it to respond to anything I type?

What terminal emulator do I use? VT100j

Is there a way completely clear it out WITHOUT connecting to it??

Hey ABeepMike. Don’t feel alone. I am a pro at locking myself out of my routers.
With HyperTerminal, I have never had to set the terminal mode. Whatever is default works for me. The settings are 115200-8-n-1 just to be sure.
Does it give you a prompt? Like
[admin@MikroTik] >

i get MiroTik 1 Login:

MikroTik 1 is what i named it in previous attempts.

LOL. But I cannot get it to respond to anything I type. LOL.

Did you set the flow control on HyperTerminal to “hardware”? And my terminal mode is VT100.

i will try that.

It took the password entry at login, correct? Of course it does not echo that.