NetworkManager bug / question.

View: New views
2 Messages — Rating Filter:   Alert me  

NetworkManager bug / question.

by Eric-356 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We at Team America discovered a possible known and fixed bug
with NetworkManager,  it kept assigning default gw different
than that which we can clearly see in NetworkManager.

1)
We dug into it and found it was reading /etc/network/interfaces,
and ahah, there was the erroneous default router ip. We fixed
it, then /etc/init.d/NetworkManager restart and it still had the
same wrong IP,  Where was it getting it from?

2)
We found a workaround article, paraphrasing, "stick a file in
/etc/network/if-up.d/ called whateva, and in that file,
  route del gw
  route add default gw 192.168.good.one
What? you mean we stick any file in that directory and it gets
run?  Isn't that a bad Idea?  it's kinda like rc scripts, but those
are organized, S98startItUp runs after S97startItFirst.  How does if-up
deamon know which to run first in the 'run whateva in here' directory?

Thanks
Team AmEricA



--
ubuntu-devel mailing list
ubuntu-devel@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel

Re: NetworkManager bug / question.

by Derek Broughton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eric wrote:

> 2)
> We found a workaround article, paraphrasing, "stick a file in
> /etc/network/if-up.d/ called whateva, and in that file,
>   route del gw
>   route add default gw 192.168.good.one
> What? you mean we stick any file in that directory and it gets
> run?  Isn't that a bad Idea?

Why?  I hope not, because I've been using this for eons!

> it's kinda like rc scripts, but those
> are organized, S98startItUp runs after S97startItFirst.  How does if-up
> deamon know which to run first in the 'run whateva in here' directory?

The same way.  afaik, they both use run-parts, which runs them "in the
lexical sort order of their names".
--
derek


--
ubuntu-devel mailing list
ubuntu-devel@...
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel