nm-tool?

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

nm-tool?

Postby Ron.W » Wed Jun 13, 2007 2:15

Since Sabayon employs "NetworkManager" rather than "ifplugd" I'll stick to it and try the best. It worked nice until now, even using static IP.

But right now Networkmanager all of a sudden decided on its own to remove the necessery DNS entries from my resolve.conf (which were originally entered by Networkmanager itself, some weeks ago) It took me some time to realize what has happened, and manually reenter the lines.

Since my Sabayon uses NM 0.6.4 this problem should be fixed allready: http://www.nabble.com/NM-0.5.1-generate ... 34118.html


1.) How to to force NetworkManager to restore the stolen entries back into resolve.conf? They are still to be found in /etc/net file, sub-section of Wlan-Interface eth0. But NM ignores them happily when restarting the interface.

2.) Refering to "man NetworkManager" there should exist a tool called nm-tool to retrieve the current status of network manager. But in Sabayon I can't find nm-tool, not using "locate nm-tool" and even not using "find -name nm-tool". Finally I tried to emerge, without any success:
emerge -p nm-tool
emerge: there are no ebuilds to satisfy "nm-tool".

Ron.
Ron.W
Simple Hen
 
Posts: 89
Joined: Fri Dec 08, 2006 20:11

Postby WarraWarra » Wed Jun 13, 2007 7:58

Knetwork manager has been having a few off days since 3.4.

I restored mine with "net-setup" as root as it added them there again until restart.

mDNSResponder and avahi is causing a few nasty bumps in the road and can likely also be the cause of this.

Mine started after I emerge -u system the new/latest xorg 1.3.??? installed and this somehow broke knetworkmanager.

This happened 5 times as I tried to figure out what was breaking knetworkmanager.

The xorg 1.3?? server + avahi + mDNSResponder + knetworkmanager is all somehow part of this.

Avahi is blocking mDNSResponder and vice versa and this is blocking a emerge -u system or world.
Removing them = no dhcp ip on startup but allows for updating system / world.

Looks like for some reason knetworkmanager can not work without avahi and mDSNResponder.

I even had to instead of a clean install do the network setup over as is done in gentoo manual for from scratch system and then it worked.
Think it is using dhcpcd to get ip from router and it leaves the resolv.conf there as well as the dns server ip's.

I had to remove knetworkmanager from startup / launching after login as it did not work no more or it blocked something = no ip / connect to wifi network.

Not sure if all this makes sense bit late here but it all has to do with the knetworkmanager .

Hope this helps.
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Postby Ron.W » Tue Jul 10, 2007 18:07

Manny thanks, WarraWarra.

Now I've tried all this, and also re-emerged resolvconf-gentoo. Added the static dns-information for eth0 from /etc/conf.d/net right into the base file within the folder /etc/resolvconf/resolvconf.d/ without any success. (on buglist for networkmanager was written something about networkmanager would respect any entries found there and leave these untouched in the /etc/resolv.conf file. Don't know why, but this doesn't work for me, either. The resolvconf file keeps beeing emptied and overwritten by networkmanager every time a network cable is pluged into eth1, causing to corrupt the internet-connection via eth0 again and again.

So, what I did finally was (thanks to some hints I've read anywhere here in the forum):

kill -9 $(NetworkManager)
rc-update del NetworkManager


which solved this particular problem, and caused a news one: eth0 isn't restarted any longer after resume from suspend2ram. I had manually to reactivate it every time by typing into a root-console /etc/init.d/net.eth0 restart in order to restore connectivity. From reading some manpages I learned this can be automated by adding the following lines for restoring the services to the file /etc/powersave/sleep.

SUSPEND2DISK_RESTART_SERVICES="slmodemd irda upsd apcupsd net.eth0 net.eth1"
SUSPEND2RAM_RESTART_SERVICES="slmodemd irda upsd apcupsd net.eth0 net.eth1"
STANDBY_RESTART_SERVICES="slmodemd irda upsd apcupsd net.eth0 net.eth1"

note that slmodemd irda upsd apcupsd is the default, but gets overwritten by any entry in the sleep file other than "", so you'll have to list it explicitly when changing the line from "" to "net.eth0 net.eth1".

So this part works now satisfactorily, but I think, my sabayon will not be able to connect to dhcp ap's anymore, which would be a great drawback since eth0 is a wlan device and needs static IP and dns for one single accesspoint only...

Any suggestions?

Greetings
Ron.
Ron.W
Simple Hen
 
Posts: 89
Joined: Fri Dec 08, 2006 20:11

Postby WarraWarra » Wed Jul 11, 2007 0:47

Code: Select all
So this part works now satisfactorily, but I think, my sabayon will not be able to connect to dhcp ip's anymore, which would be a great drawback since eth0 is a wlan device and needs static IP and dns for one single accesspoint only...


If the router / modem is setup to have the same ip for your wireless connection then no problem.

Generally how it works:
If you have a router running dhcp then the connecting device should automatically get a ip from the router and for internet access the /etc/resolfv.conf file for dns server ip's to tell it where to get to the website you are looking for.
Example:
(numbers to name directory) 255.255.255.255 = http://www.apple.com

So as long as your router / modem has a working ip / connection to the internet all is well provided you can get the wireless / lan cable to get a ip from the router / modem for your computer.
IE:
internet to modem to wifi router to pc+wireless card.
or
internet to wifi modem to pc+wireless card.

To run a server on a changing isp ip use dyndns.org service. (Internet connection only.)
( not talking about wireless router to wifi pc connection )
IE: today your isp ip is 195.202.65.15 and tomorow your ip is 195.202.34.78 then the server ip is still same virtual myserver.dyndns.org and still gets to your computer even if going to starbuck and using their wifi hotspot connection = same server running and can still be seen by friends.

Like forwarding your post to a new place if away for a holiday. Same person temp new adress.

Hope this helps.
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Postby Ron.W » Wed Jul 11, 2007 20:25

Hello WarraWarra,

WarraWarra wrote:If the router / modem is setup to have the same ip for your wireless connection then no problem.

Well, this depends. Most probably not. These are differnt networks providing different IP ranges.

I had do chuck out networkmanager, since it kept deleting the gateway info for eth0 every time eth1 was pluged. So there isn't an active manager for dhcp present any longer, If I don't bark up the wrong tree.

So it'll work fine as long as I stick to the one and single dhcpless AP which I have explicitly configured in /etc/conf.d/net and /etc/resolvconf/resolv.conf.d/base (and not to forget: /etc/wpa_supplicant/wpa_supplicant.conf) files for eth0.

Now, when trying to connect to another AP which is actually providing dhcp (e.g. at academy, library or company) then I'll not get an IP for connection any longer, since networkmanager isn't present to configure my network settings automatically according to the values retrieved from dhcp server. I'll have to restart this service manually every time from now on, and stop it again, when I need to connect to the dhcpless AP. This is my point.

Generally how it works:
If you have a router running dhcp then the connecting device should automatically get a ip from the router and for internet access the /etc/resolfv.conf file for dns server ip's to tell it where to get to the website you are looking for.
Example:
(numbers to name directory) 255.255.255.255 = http://www.apple.com

So as long as your router / modem has a working ip / connection to the internet all is well provided you can get the wireless / lan cable to get a ip from the router / modem for your computer.
IE:
internet to modem to wifi router to pc+wireless card.
or
internet to wifi modem to pc+wireless card.

To run a server on a changing isp ip use dyndns.org service. (Internet connection only.)
( not talking about wireless router to wifi pc connection )
IE: today your isp ip is 195.202.65.15 and tomorow your ip is 195.202.34.78 then the server ip is still same virtual myserver.dyndns.org and still gets to your computer even if going to starbuck and using their wifi hotspot connection = same server running and can still be seen by friends.

Like forwarding your post to a new place if away for a holiday. Same person temp new adress.

Hope this helps.


Thanks WarraWarra. Nice explanation. But even if I was a silly Windows user most of my life I do actually know in detail how all this stuff works and how to use dns, dhcp, dyndns, openvpn, even unix-style qos (which outperforms windows-style qos by far), etc... :lol: :lol:

The problem is simple: NetworkManager doesn't get any dhcp information from that specific AP (since this AP doesn't provide any) and therefore clears the manually given values for static IP configuration form resolv.conf, regardless whether these are needed, just in the moment it updates this file (which happens at least when you plug something to any network device, in my case eth1) And I am not experienced enough with linux to persuade networkmanager to respect the manually given values for this specific connection. At least without loosing the power to connect to any dhcp AP at all by chucking NM out completely.

Greetings
Ron.
Ron.W
Simple Hen
 
Posts: 89
Joined: Fri Dec 08, 2006 20:11

Postby WarraWarra » Wed Jul 11, 2007 20:52

Sry it was 3am here when I posted LOL insomnia.

No worries mate.

If knetworkmanager is dead then manual config or net-setup is the alternative way to go.

rc-update:
You can do the "rc-update add net.wlan0 default" and if there is dhcp or something similar it will start at boot provided the module to get the wifi card working is also loading at boot /etc/modules.autload.d/kernel-2.6
be it bcm43xx or ndiswrapper this should get it up next time you boot.

Think you have to run net-setup + add ndiswrapper or ipw3945 / module for wifi to kernel-2.6 then reboot and see how it runs LOL. net-setup for wifi is important for this to work / make config file or something.

Nice to see someone that knows their stuff joining SL. It is difficult to know when someone has a clue as to where the pc power button is or even if they are a nuclear scientist .
:oops:

Gentoo network config how-to for rc-update etc .
http://www.gentoo.org/doc/en/handbook/h ... art1_chap3

kernel-2.6 thingy is here on this page as well might be a bit lower.

You might even be able to use madwifi or any of the other wifi config programs out there if you frequently roam AP's if not just use rc-update from gentoo link + module autoload , changes when you restart.

Use kuroo and search for wifi then it should list a several options for wifi config app's.

Hope this helps.
User avatar
WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest