Community discussions

MikroTik App
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Mon Mar 01, 2010 9:37 pm

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.
 
dog
Member Candidate
Member Candidate
Posts: 186
Joined: Wed Aug 12, 2009 3:37 pm
Location: Germany

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Mon Mar 01, 2010 11:12 pm

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. :)
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 12:57 am

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.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 1:14 am

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.
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 4:33 pm

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.
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 5:27 pm

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?
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 5:34 pm

Also,

the rb493 I have is in a metal box with ETH2 -9 on the front and ETH1 and sereial on the side.
 
dog
Member Candidate
Member Candidate
Posts: 186
Joined: Wed Aug 12, 2009 3:37 pm
Location: Germany

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Tue Mar 02, 2010 6:24 pm

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 :)
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
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 9:16 pm

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
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 9:44 pm

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?
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 10:21 pm

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 <insert your dns here> ......

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 .
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 10:37 pm

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?
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:01 pm

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.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:06 pm

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?
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:11 pm

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??
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:18 pm

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] >
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:26 pm

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.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:27 pm

Did you set the flow control on HyperTerminal to "hardware"? And my terminal mode is VT100.
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:29 pm

i will try that.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:35 pm

It took the password entry at login, correct? Of course it does not echo that.
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:39 pm

I dont know if it takes the password. nothing happens , no echo, no screen change, nothing.


Hard reset to defaults....is that something that can be done with the reset switch on the side or pulling a battery, or setting a jumper?
 
dog
Member Candidate
Member Candidate
Posts: 186
Joined: Wed Aug 12, 2009 3:37 pm
Location: Germany

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:40 pm

The router should also have a hardware reset button between serial and ether1.
Just hold it down for 30 seconds and the configuration will be reset.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Wed Mar 03, 2010 11:46 pm

The hardware reset I do not use. But when it boots, it should give you a
MikroTik login:
Enter your user name (admin is default). Then
Password:
Enter the password.
Then you should end up at a large MikroTik logo and a prompt.
[admin@MikroTik] > _
The cursor will be blinking hopefully.
 
ABeepMike
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Tue Nov 10, 2009 10:37 pm

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Thu Mar 04, 2010 2:12 am

Had to take a break.

I tried the reset button, it does not reset, still comes back with the name I gave it.

After booting and loading I get:

MiroTik 1 Login:

No blinking cursor. No Response from any keyboard command. No echo. If I carefully type in the logon : admin and then the password I had set each with a line feed /carraige return it still does nothing.

I will keep trying, but boy, If someone had made up , easily mod'd config files for these, I would be all over it.

But, first things first again, I gotta get talking to it again.


VT100 emulation , 8 n 1, hardware flow, what am i missing? I can see it/watch it boot in HyperTerminal , ......

Is the hard reset supposed to wipe it out, or just reset certain config parameters?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Thu Mar 04, 2010 11:24 am

I did a search on the reset button. One user says you must hold it down for 30 seconds to get it to work. I do not know about the serial port echo challenge. Maybe a defective unit? Maybe a defective null modem cable?

The RB750 now comes with a basic setup rather than blank. And the capability of uploading one of a few "standard" setups is a good idea.

ADD: The reset should go back to factory settings. Your router will go back to MikroTik as the identity and the password will be blank.
 
dog
Member Candidate
Member Candidate
Posts: 186
Joined: Wed Aug 12, 2009 3:37 pm
Location: Germany

Re: Lost Newbie help w/RB493 basic Internet DHCP Router Setup

Thu Mar 04, 2010 6:49 pm

You can also try to press a key in the "Press any key for boot menu" phase while start up.
Then press "b" (boot order) and "1" (boot once from network).
You can then reset the router using NetInstall.

Who is online

Users browsing this forum: Amazon [Bot] and 39 guests