Problem after Upate from 2.8.5 to 4.90

Hi from Germany,

i try since many hours to update from my old MikroTik 2.8.5 to the RB750 with 4.90.
I know i can not use the backup-file from the older version and i try to complete new configure the 4.90 version.

My Scenario:
I have 2 SDSL-Modems with fixed IPs (4 and 16 IPs) and a ADSL-Modem with dynmaic IP.

Internet over the ADSL works fine on ehther1.
On ether2 and ether3 i have the other modems with fixed IPs. In Statistics i can see traffic comes. But i ave tried the last hours to route the traffic from the public IP to the private LAN (192.168.x.x).

On 2.8.5 i have this correctly configured, but this was six oder seven years and i try this here with winbox. But i’m to stupid.

Can me please everyone help me?

Thanks
Best regards from Germany
Andy

First, there is no such version of ROS 4.90, but i guess it is a typo.
As for the backup, see the below topic, it could help you:
http://forum.mikrotik.com/t/backup-with-wireless-card-configuration/43296/1

Hi Toni,

thank you for your answer and link. I have tried with my second RB750, no chance.
The Script-Files from 2.8.5 and 4.9 are very diffrent.
The problem starts in line 5.

[admin@MikroTik] > import backup2.rsc
Opening script file backup2.rsc

Script file loaded successfullyexpected end of command (line 5 column 35)
[admin@MikroTik] >

I can try to “repair” but i think, i have no chance. And my backup-script have over 900 Lines.

Gives no convert-tools for older script from MikroTik?!?

Best Regards
Andy

I can not test or even recall how a 2.9.x export looks like. But I do remember
once using the export of a setup in 2.9.x in a routerboard with a version at that time
not yet stable of 3.x and it went fine.
You should edit the export file using notepad and change the mac-addresses accordingly (if you haven’t done it).

Hi,

i have no fixed MAC-Addresses in my backup-script.

Here a sample…
This is the script-file version 2.8.5 (only the first lines for adpaters)

aug/19/2010 13:57:55 by RouterOS 2.8.5

software id = 5KB8-B9N

/ interface ethernet
set ether1 name=“ether1” mtu=1500 arp=enabled disable-running-check=yes
auto-negotiation=yes full-duplex=yes long-cable=no speed=100Mbps
disabled=no
set ether2 name=“ether2” mtu=1500 arp=enabled disable-running-check=yes
auto-negotiation=yes full-duplex=yes long-cable=no speed=100Mbps
disabled=no

And this is the script-file in version 4.9 (only the first lines too)

#| ether1 is renamed ether1-gateway, rest of interfaces are switched
#| IP address 192.168.88.1/24 is on switch
#| DHCP client is on ether1-gateway
#| DHCP server is on switch, with address pool 192.168.88.10-192.168.88.254
#| masquerade on ether1-gateway
:global action

these commands are executed after installation or configuration reset

:if ($action = “apply”) do={
/interface set ether1 name=ether1-gateway
/interface set ether2 name=ether2-local-master
/interface set ether3 name=ether3-local-slave
/interface set ether4 name=ether4-local-slave
/interface set ether5 name=ether5-local-slave

/interface ethernet set ether3-local-slave master-port=ether2-local-master
/interface ethernet set ether4-local-slave master-port=ether2-local-master
/interface ethernet set ether5-local-slave master-port=ether2-local-master

I hope the support can help me. It is very angry. I have 8 Years working with my 2.8.5.
But last Weekend is crasched the older router and i have a backup-file what not working :open_mouth: :confused: :frowning:

Best regards
Andy
(Sorry for my bad english!)

First, those are not script files. Don’t confuse scripting with normal command line configuration. Scription is something different.

Secoind, your v2.8.5 file is valid for v4.9, what’s the problem exactly?

Good Morning,

i dont know what is the exactly the problem.
Only i knowing the ROS 4.9 reports the error in line 5 col. 35 (set interface). End of line exception, i think to many parameters.

I have send yesterday a Support-Mail with the original Script from 2.8.5 in Attachment.
The Ticket-Number is: Ticket#2011021466000326

Oh God, i hope you can help me and i can run my servers today with few changes.

Best regards
Andy

this doesn’t really help your predicament but I was wondering why your not using 4.16 or even 5.0rc9? I use the rc and find it to be very stable.

where did you get that “script file for 4.9” ? you must do a “system reset” on the RB750 and then run import command for your own file from the older version

I have buy both RB750 Boards august last year and on both is 4.90 installed.
Gives a bug between 4.90 und 5.0rc9 for script-imports?

Best regards
Andy

I hope i have you question correct understand. The “script file for 4.9” is the original script file from my 2.8.5 RouterOS what is crashed last weekend.
I think i have write this yesterday, sorry for my bad english.

What i have make:

  • Old Router 2.8.5 is last weekend crashed
  • New RouterBoard 750 installed
  • First configs for IP, Route etc. but problems with masquerading und route-table.
  • Then here come the idea i can use the old script-file to reconfigure my new RB750
  • I have take my second RB750 and all steps what you have me say (hard-reset, first-config removed, login via MAC-Addrress etc.)

But, if i say “import backup.rsc” then comes:
Script file loaded successfullyexpected end of command (line 5 column 35)

Btw: Gives knowing problems with scripts/import between version 4.9 und 5.0rc9 to update the firmware or better not update?

Best regards
Andy

no, I mean where did you get this file?

#| ether1 is renamed ether1-gateway, rest of interfaces are switched
#| IP address 192.168.88.1/24 is on switch
#| DHCP client is on ether1-gateway
#| DHCP server is on switch, with address pool 192.168.88.10-192.168.88.254
#| masquerade on ether1-gateway
:global action

# these commands are executed after installation or configuration reset
:if ($action = "apply") do={
/interface set ether1 name=ether1-gateway
/interface set ether2 name=ether2-local-master

Hi,

this file is the original script from v4.9 after i reset the RB750 and click in winbox on “Show Script”.
This was only a example to show the betweens the script-syntax from 2.8.5 and 4.9
I have BELIEVE v4.9 can not understand the older version.

If i make all steps with resets and so on i become exactly here the error:

/ interface ethernet
set ether1 name=“ether1” mtu=1500

But the full line is:

/ interface ethernet
set ether1 name=“ether1” mtu=1500 arp=enabled disable-running-check=yes
auto-negotiation=yes full-duplex=yes long-cable=no speed=100Mbps
disabled=no

Best regards
Andy

How come you don’t have mac-address specified? Is that file an export
of the whole configuration while you were still using 2.8?
I would suggest you input manually the values of the mac-address for the new
routerboard into that file and try again an import, like:

aug/19/2010 13:57:55 by RouterOS 2.8.5

software id = 5KB8-B9N

/ interface ethernet
set ether1 name=“ether1” mtu=1500 mac-aaddress=xx:xx:xx:xx:xx:xx arp=enabled disable-running-check=yes \

Hi Toni,

i can try it. I have last minutes try to clean-up the script-file (all my comments removed) but the engine breaks on lines, where the lines/syntax absolut okay.
I think i becomes wrong row-numbers.
Example here in line 65. But other lines okay? DIrect after the command add comes the error again.


Line 61: add address=213.148.xxx.yy1/28 network=213.148.xxx.yy0
Line 62: broadcast=213.148.xxx.yy5 interface=ether1 comment=“” disabled=no
Line 63: add address=213.148.xxx.yy2/28 network=213.148.xxx.yy0
Line 64: broadcast=213.148.xxx.yy5 interface=ether1 comment=“” disabled=no
Line 65: add address=213.148.xxx.yy3/28 network=213.148.xxx.yy0
Line 66: broadcast=213.148.xxx.yy5 interface=ether1 comment=“” disabled=no
Line 67: add address=213.148.xxx.yy4/28 network=213.148.xxx.yy0

In the next step i can try it with mac-address. But i don’t have hope.

Andy

Well, since in the export file you don’t have mac-addresses I suppose it is a corrupted export file.
You can try with manual input of mac-addresses, in case it would not work again, it is better
to reconfigure the router from scratch.

Yes, is think it too. It is to many rows and errors.

Can you me a simple way, how i make a NAT from 212.202.xxx.111 to 192.168.51.111 ?
I have in Firewall/NAT dst-nat entry and the counter runs, but no traffic come to the server.
I have a entry in the routelist and for the IP 192.168.51.111 two rules for SDSL-Line 1 (i have three).

I have try it with this command:

add action=dst-nat chain=dstnat dst-address=212.202.xxx.111/32 to-addresses=192.168.51.111

The counter counts, but no traffic in log-files on the server on 192.168.51.111

Best regards
Andy

I am not sure what you want to achieve. In case you want to simply reach a server
from the outside your rule should be like:

add action=dst-nat chain=dstnat dst-address=212.202.xxx.111 protocol=tcp dst-port=80 to-addresses=192.168.51.111 to ports=80

where port 80 is for example the port on which your server runs (it could be any port or port range).

In case you are trying to assign a Public IP to your inside server, you should use netmap, like:

add action=netmap chain=dstnat dst-address=212.202.xxx.111 to-addresses=192.168.51.111
add action=netmap chain=srcnat src-address=192.168.51.111 to-addresses 212.202.xxx.111

Hi Toni,

thank you. Yes is a public IP for my Webserver here in the private network.
I have try your comands, the counter counts but no traffic on server.
I must what forget, but what?
I have give the ip addresses under /ip addresses for internal LAN and external WAN.
Where is my mistake, what have i forget? search scroll

Andy

In case you would want a Public IP assigned to one of your private IP inside the LAN, you need:

/ip address
add address=212.202.xxx.111/subnet interface=ISP Interface
/ip firewall nat
add action=netmap chain=dstnat dst-address=212.202.xxx.111 to-addresses=192.168.51.111
add action=netmap chain=srcnat src-address=192.168.51.111 to-addresses 212.202.xxx.111

Keep in mind that the netmap rules should be on top of your masquerade rule