Community discussions

MikroTik App
 
minfrin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Sat May 09, 2009 2:20 am

When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 12:13 am

Hi all,

After making an attempt to add a dhcp-server on a wifi interface, as below, the dhcp-server is flagged as "invalid":

Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 I server1 ether3 dhcp-eth3 3d yes
1 I dhcp-public wlan-g-public public-pool 1h yes

Is there a way to find a reason string anywhere or error message to give a hint as to why the entry is invalid?

I tried /log print to see if anything was logged, but nothing showed up.

Regards,
Graham
--
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 12:27 am

do you have an IP address on that wifi?
 
minfrin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Sat May 09, 2009 2:20 am

Re: When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 12:48 am

Yes:

3 172.16.250.3/23 172.16.250.3 172.16.250.3 wlan-g-public

It doesn't answer why no reason is given for the error. Is there is way to get some kind of human readable error message out of this?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 2:03 am

no (sure, yes - you can write to support :) ). try to set 'src-address' for your dhcp server

by the way, your server on ether3 is also invalid...
 
minfrin
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Sat May 09, 2009 2:20 am

Re: When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 2:21 am

What I am really trying to do is try set up a hotspot, it is not clear from the documentation whether you need to configure a dhcp server to be used by a hotspot, or whether the hotspot does this on its own.

The attempt to create a hotspot using the hotspot setup wizard also results in a hotspot that is listed as "invalid", again with no error message, hint or clue as to what the problem might be. I can see nothing obvious in the config that looks wrong, but then as this is the first hotspot I am trying to set up, that doesn't mean much. Without error messages, new users are left marooned.

The hotspot config looks like this:

Flags: X - disabled, I - invalid, S - HTTPS
0 I name="hotspot1" interface=wlan-g-public address-pool=hs-pool-1 profile=hotspot-public idle-timeout=5m
keepalive-timeout=none addresses-per-mac=2

The interface looks like this:

Flags: X - disabled, R - running, D - dynamic, S - slave
0 name="wlan-g-public" mtu=1500 type="wlan"

I understand the interface only lists itself as "running" after a single user has connected, could this be related?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: When an "invalid" flag appears, how do I find the reason?

Sun May 10, 2009 6:00 am

yes, if the interface isnt running then it will be invalid. same with the dhcp server.

Sam

Who is online

Users browsing this forum: smirgo and 78 guests