Community discussions

MikroTik App

Search found 17 matches

by jandres
Mon Sep 16, 2019 11:07 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

The problem is after switchrole. When active reboots, always B becomes active router. The sequence is as follows: Router B(active) - switchrole - router A (standby) reboots - router B reboots also after a 60s delay - router A is online again at first as active - router B is online a little bit time ...
by jandres
Mon Sep 16, 2019 8:30 am
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Actually, can you do "/interface vrrp print" on both? Did you keep that vrrp priority change that you temporarily added? They should both be 100 and it should be reset by ha_startup, ha-mikrotik does not support different VRRP priorities - it has no preference for A vs B and cannot curren...
by jandres
Fri Sep 13, 2019 9:37 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Hi nathan1

This solution can work on the Chr version?
Yes, i tried it on chr image 6.41 and it was working fine, now i'm trying to run it on ccr1036 and i'm having some issues with the script.
by jandres
Fri Sep 13, 2019 9:35 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

$HASwitchRole now is working. Router A becomes active after run that command, but when router B reboots, router A change its role to standby and always router B becomes active router [admin@MikroTik_HA_A_STANDBY] > log print 00:25:28 system,info router rebooted 00:25:28 health,warning PSU2 entered s...
by jandres
Fri Sep 13, 2019 9:10 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Ftp was enabled when i put that code [admin@MikroTik_HA_A_STANDBY] > :if ([:len [/file find where name="HA_run-after-hastartup.rsc"]] > 0) do={ {... /import HA_run-after-hastartup.rsc {... } [admin@MikroTik_HA_A_STANDBY] > /delay 5 [admin@MikroTik_HA_A_STANDBY] > #We need FTP to do our HA ...
by jandres
Fri Sep 13, 2019 8:59 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

The result of $HAPushStandby, router A (standby) reboots [admin@MikroTik_HA_B_ACTIVE] > $HAPushStandby mkdirCode: :foreach k in=[/file find type!="directory"] do={ :local xferfile [/file get $k name]; if ([:pick "$xferfile" 0 3] != "HA_") do={ :put "removing $ xfer...
by jandres
Fri Sep 13, 2019 8:49 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

$HAPushBackup seems to do nothing.
If i run on active (router B), i can see at log file how user ha has logged in and out, but if i run $HAPushBackup on standby (router A), i can't see any log on active (router B)
by jandres
Fri Sep 13, 2019 8:32 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

No errors shown again and ftp is enabled [admin@MikroTik_HA_A_STANDBY] > :if ([:len [/file find where name="HA_run-after-hastartup.rsc"]] > 0) do={ {... /import HA_run-after-hastartup.rsc {... } [admin@MikroTik_HA_A_STANDBY] > /delay 5 [admin@MikroTik_HA_A_STANDBY] > #We need FTP to do our...
by jandres
Fri Sep 13, 2019 8:07 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

All commands run on router A as standby system resource print [admin@MikroTik_HA_A_STANDBY] > /system resource print uptime: 1h44m47s version: 6.44.5 (long-term) build-time: Jul/04/2019 10:32:21 factory-software: 6.43.10 free-memory: 3673.3MiB total-memory: 3968.0MiB cpu: tilegx cpu-count: 36 cpu-fr...
by jandres
Fri Sep 13, 2019 7:19 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Thanks again Nathan1. The init script from github is the same, i haven't added or removed any line. Yes you're right, this is router A active. This is the same with router A when it becomes standby itself after bootstrap of router B I've doing some tests, and if i enable ftp server on router A and i...
by jandres
Fri Sep 13, 2019 6:19 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

/log print [admin@MikroTik_HA_A_ACTIVE] > /log print 00:25:28 system,info router rebooted 00:25:28 health,warning PSU2 entered state FAIL 00:25:33 interface,info ether8 link up (speed 100M, full duplex) 00:25:33 interface,info ether1 link up (speed 100M, full duplex) 00:26:02 system,info,account use...
by jandres
Fri Sep 13, 2019 4:33 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

[admin@MikroTik_HA_B_ACTIVE] > /tool fetch src-path=HA_boot_log.txt dst-path=testing.txt address=$haAddressOther user=ha password=$haPassword mode=ftp status: failed failure: connection failed [admin@MikroTik_HA_B_ACTIVE] > On router A, ftp server is always disabled. If I enable it manually [admin@...
by jandres
Fri Sep 13, 2019 3:33 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

This is what i get when i try to sync router B at first time [admin@MikroTik_HA_A_ACTIVE] > $HASyncStandby status: finished downloaded: 0KiBC-z pause] total: 0KiB duration: 1s status: finished downloaded: 0KiBC-z pause] duration: 1s MASTER VERSION: ! history=.id=*b3;action=script removed;by=admin;po...
by jandres
Fri Sep 13, 2019 10:22 am
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Thanks for the reply nathan1. Yes, both routers are reset to defaults before bootstraping. I'll try to exec that commend and i'll post it here, I have a look to log file and it seems nothing wrong, maybe the log debug is not set to a detailed level.
by jandres
Thu Sep 12, 2019 9:05 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Hi, I'm testing with a pair of CCR1036 with 6.44.5 software, and it's not working well. At first, i bootstrapped correctly router A, i can see it active but, once router B is synced, after reboot, B becomes active and automatically A becomes in standby mode. Then, if i try to switchrole, i get this ...
by jandres
Thu May 09, 2019 5:49 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

It's a bit complicated to explain and my english is not so good.
I've made some changes to avoid that need, and all it's working fine.
Very great job Nathan1, congratulations
by jandres
Fri May 03, 2019 12:33 pm
Forum: General
Topic: Suggestion: Completely virtual router based on two physical routers
Replies: 186
Views: 57020

Re: Suggestion: Completely virtual router based on two physical routers

Hi nathan1, I'm trying to put vrrp interface HA_VRRP on a bride, but i'm not be able to do this. Is it possible or not? Thanks,