Community discussions

MikroTik App
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Stranges with default gateway

Thu May 22, 2008 5:11 pm

Hi all.
I've got a problem on some my RB150 with ROS 3.9. On some of them doesn't work Changeip script from Wiki. I've found that it is because default getway on this RB duplicate name of interface (see pictures)
notwork2.jpg
notwork.jpg
[admin@mikrotik1] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 reachable xxx.xxx.xxx.xxx 1 external
reachable external external

On working RB it looks:
work2.jpg
[admin@mikrotik2] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE
0 A S 0.0.0.0/0 unreachable xxx.xxx.xxx.xxx 1
reachable external external

What happend and how to fix this?
You do not have the required permissions to view the files attached to this post.
 
JJCinAZ
Member
Member
Posts: 475
Joined: Fri Oct 22, 2004 8:03 am
Location: Tucson, AZ

Re: Stranges with default gateway

Thu May 22, 2008 5:54 pm

I don't know what's going on with the duplicate names, but just change the script so that it doesn't search the route table and give it a static interface name:
:global ddnsinterface "e1-dsl"
:global ddnssystem ("mt-" . [ /system package get system version ] )

# Define Local Variables
:local int

# Grab the current IP address on that interface.
:global ddnsip [ /ip address get [/ip address find interface=$ddnsinterface ] address ]
 
sergeda
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 78
Joined: Wed Sep 20, 2006 6:03 am

Re: Stranges with default gateway

Thu May 22, 2008 6:24 pm

Thank you JJCinAZ. If I can't figure what happend with duplicate name of interface I'll go the way you suggest.

Who is online

Users browsing this forum: djvabe, kokoboko and 141 guests