On Wed, Feb 02, 2005 at 08:21:22PM +0100, Norbert Preining wrote:

> On Mit, 02 Feb 2005, Enrico Zini wrote:

> Ok, now I have:
> mapping eth0
>         script guessnet-ifupdown
>         map foobar

You can remove this "map foobar" line: the default is to use every
stanza, so it's not needed anyway. (this is a general suggestion,
though, not necessarily related to this report).

>         map default: fallback
>         map timeout: 3
>         map verbose: true
> iface foobar inet static
>         address         a.b.c.d
>         netmask         255.255.255.0
>         gateway         e.f.g.h
>         broadcast       a.b.c.255
>         dns-search      .....
>         dns-nameservers ......
>         test            peer address e.f.g.h mac 00:00:0c:4a:3e:c8 source 
> a.b.c.d


> and if I run it through
>       cat interfaces | guessnet-ifupdown -v -debug
> I get
>       guessnet: 0 candidates found in input
>       guessnet: Guessnet 0.33 starting...
>       guessnet: Trying MII detection
>       guessnet: 0 candidate profiles
>       guessnet: Trying MII detection
>       guessnet: Initialized test subsystems
>       guessnet: Added "default" test none
>       guessnet: Default test is none
>       guessnet: Started tests
>       No candidates provided: skipping detection
>       none
> and the same when I remove the source ... part.
> So there is still a problem.

Uhm... now I notice there's a problem in how you invoke it.

guessnet-ifupdown doesn't take the file in standard input but it reads
/etc/network/interfaces (and my previous "you supply no data on input,
you get no scan" phrase was wrong, sorry :(

So, try running:
 echo "" | guessnet-ifupdown -v --debug eth0

and see what happens.  You /etc/network/interfaces looks fine to me now,
so it should work.  If it doesn't and you don't mind, you can send it to
me in private and I can try to parse it here.


> But the problem is still the same, see above.

It should be some trivial syntax error in /etc/network/interfaces or in
the guessnet-ifupdown invocation, that I'm too stupid to see now: the
parser is definitely working well for that input.

Also, if you're editing a test interfaces file which is not
/etc/network/interfaces, you need to specify it explicit with '-C', or
guessnet will use /etc/network/interfaces by default.  For example:

 echo "" | guessnet-ifupdown -v --debug -C ~/test/interfaces eth0


Ciao,

Enrico

--
GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to