IPADDR/PREFIXLEN
Hi hackers! I found one NetworkManager problem in openSUSE but it's related also to other distributions. # If using a static configuration you have to set an IP address and a netmask # or prefix length. The following examples are equivalent: # 1) IPADDR=192.168.1.1 #NETMASK=255.255.255.0 # 2) IPADDR=192.168.1.1 #PREFIXLEN=24 # NETMASK will be ignored # 3) IPADDR=192.168.1.1/24 # NETMASK and PREFIXLEN will be ignored Above are 3 possibilities how to write static network configurations into ifcfg-(device) files. But NetworkManager understads only first one. src/backends/NetworkManagerSuSE.c lines 661-688 I checked also other distributin sources and the same problem is everywhere. Before I start to play with it I want to ask - anybody solved it yet? Or I need to start from scratch? Thanks, Michal -- Best Regards, Michal Zugec Software developer - SuSE CR, s.r.o.e-mail: [EMAIL PROTECTED] Lihovarska 1060/12 tel: +420 284 028 960 190 00 Praha 9 fax: +420 296 542 374 Czech Republichttp://www.suse.cz/ ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[Fwd: Re: connect to two different networks]
I replied this message, but failed to cc this list. Forwarded. --- Begin Message --- The gnome network admin tool, (at least in Ubuntu) allows you to disable network manager from handling one network interface. Using that, you can allow network-manager to manage one of the interfaces, then manually configure the second interface. Its important that they are in different subnets though, otherwise things don't quite work. - Fanen Ahua - fortune: IBM Advanced Systems Group -- a bunch of mindless jerks, who'll be first against the wall when the revolution comes... -- with regrets to D. Adams On Mon, 2007-11-26 at 14:34 +, Pedro Freire wrote: > Hello list, > > I am using FC6 and NetworkManager 0.6.4-5 > > My laptop has an ethernet card and wifi. I am trying to connect > simultaneously to the wired and wireless nets, each one with different > subnets. > However, I don't know how to do this. As soon as I connect the cable, > NetworkManager disconnects the wireless net and tries to connect via > wired. I want the wired net to have a fixed IP address ('cause there is > no dhcp server on that subnet - by the way, it's a physically distinct net). > > Any help ? > > Thanks, > > Pedro > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list signature.asc Description: This is a digitally signed message part --- End Message --- ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Debugging with Network Manager
On Mon, Nov 26, 2007 at 10:45:02AM -0500, Dan Williams wrote: > Nov 23 08:13:33 tiger NetworkManager: Activation (ath0/wireless): > disconnected during association, asking for new key.+ > > It looks like the driver is telling wpa_supplicant that it's > disconnected from the AP during the association. That is usually > because the AP disassociated you because your authentication credentials > are wrong, hence why NM asks for a new key. How far away are you from > the AP? Can you run 'iwevent ath0' during the association and reply > with what you get? Well, now I'm 800 miles away, but I was sitting right next to the AP when trying to connect. Again, I was authenticating with an iBook using the same credentials -- and I was sometimes able to connect on this Gutsy laptop, too. So, it doesn't seem like the credentials were really wrong. It's an older Linksys 802.11b only AP, so it's entirely possible that the problem is related to the AP. There were other APs in the area, although at much weaker signal. At the farthest distance in the house from the AP I did notice another AP on the same channel so I forced the AP to use a different channel -- but without any improvement. In the past with my old laptop with a prism based wireless card I had no problem connecting. When I upgraded to this thinkpad with Atheros and Network Manager I was not able to connect to my home AP because essid was set to not broadcast. So, when I was at the other location I was sure that essid was enabled. Anyway, since there's so many variables involved it would be very helpful to learn how to debug the individual steps that Network Manager goes through to connect -- so that maybe I could run those manually and figure out at what point the connection is failing. Thanks for the response! -- Bill Moseley [EMAIL PROTECTED] ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: mdns problem
On Mon, 2007-11-26 at 16:00 +0100, Beso wrote: > everytime i try autogen on the svn version i get this error: > > . > . > . > checking for /etc/redhat-release... no > checking for /etc/SuSE-release... no > checking for /etc/fedora-release... no > checking for /etc/gentoo-release... yes > checking for /etc/debian_version... no > checking for /etc/arch-release... no > checking for /etc/slackware-version... no > checking for /etc/frugalware-release... no > configure: error: invalid mdns implementation specified > (mdnsresponder) > > i don't know what the problem could be and how to fix it. > any hint?! Looks like a configure problem with the Gentoo specific bits. Try adding --with-mdns-provider=avahi to the autogen line. Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: connect to two different networks
On Mon, 2007-11-26 at 14:34 +, Pedro Freire wrote: > Hello list, > > I am using FC6 and NetworkManager 0.6.4-5 > > My laptop has an ethernet card and wifi. I am trying to connect > simultaneously to the wired and wireless nets, each one with different > subnets. > However, I don't know how to do this. As soon as I connect the cable, > NetworkManager disconnects the wireless net and tries to connect via > wired. I want the wired net to have a fixed IP address ('cause there is > no dhcp server on that subnet - by the way, it's a physically distinct net). > > Any help ? This isn't yet possible at this time, and won't be with NetworkManager 0.6.x. The architecture to support multiple active devices just isn't there. It's a planned feature of 0.7 though. Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Debugging with Network Manager
On Fri, 2007-11-23 at 09:07 -0800, Bill Moseley wrote: > I'm running Ubuntu Gutsy on a T60p Thinkpad. > > I'm at a location with wireless. I can sometimes connect -- other > times it will attempt to connect for a number of minutes then finally > ask for the pass phrase as if it connected by the stored pass phrase > is no longer valid. I enter the correct pass phrase and then it asks > for the phrase again. Nov 23 08:13:33 tiger NetworkManager: Activation (ath0/wireless): disconnected during association, asking for new key.+ It looks like the driver is telling wpa_supplicant that it's disconnected from the AP during the association. That is usually because the AP disassociated you because your authentication credentials are wrong, hence why NM asks for a new key. How far away are you from the AP? Can you run 'iwevent ath0' during the association and reply with what you get? Dan > And other times the AP will not show up in nm-applet but scanning with > iwlist will show the AP. > > It's been a frustrating experience because I also have a iBook running > OS X and wireless is working perfectly. > > What I'd like is to be more effective in debugging problems. Are > there any docs or howtos available that explain steps in debugging > wireless issues with Network Manager? For those of you very familiar with > Network Manager what steps would you use to debug failing wireless? > > Here's some logs from earlier today: > > [lots of NM debugging trimmed] > > Nov 23 08:11:51 tiger NetworkManager: ath0: Device is fully-supported > using driver 'ath_pci'.+ > Nov 23 08:11:51 tiger NetworkManager: nm_device_init(): waiting for > device's worker thread to start+ > Nov 23 08:11:51 tiger NetworkManager: nm_device_init(): device's > worker thread started, continuing.+ > Nov 23 08:11:51 tiger NetworkManager: Now managing wireless (802.11) > device 'ath0'.+ > Nov 23 08:11:51 tiger NetworkManager: Deactivating device ath0.+ > Nov 23 08:11:51 tiger NetworkManager: [1195834311.189296] > nm_hal_device_added(): New device added (hal udi is > '/org/freedesktop/Hal/devices/net_00_1a_6b_68_b3_ad').+ > Nov 23 08:11:51 tiger NetworkManager: eth0: Device is fully-supported > using driver 'e1000'.+ > Nov 23 08:11:51 tiger NetworkManager: nm_device_init(): waiting for > device's worker thread to start+ > Nov 23 08:11:51 tiger NetworkManager: nm_device_init(): device's > worker thread started, continuing.+ > Nov 23 08:11:51 tiger NetworkManager: Now managing wired Ethernet > (802.3) device 'eth0'.+ > Nov 23 08:11:51 tiger NetworkManager: Deactivating device eth0.+ > Nov 23 08:11:51 tiger kernel: [ 26.652000] NET: Registered protocol family > 10 > Nov 23 08:11:51 tiger kernel: [ 26.652000] lo: Disabled Privacy Extensions > Nov 23 08:11:51 tiger kernel: [ 26.652000] ADDRCONF(NETDEV_UP): eth0: link > is not ready > > [more ] > > Nov 23 08:12:46 tiger NetworkManager: Updating allowed wireless > network lists.+ > Nov 23 08:12:46 tiger NetworkManager: SWITCH: no current connection, > found better connection 'ath0'.+ > Nov 23 08:12:46 tiger dhcdbd: message_handler: message handler not found > under /com/redhat/dhcp/ath0 for sub-path ath0.dbus.get.reason > Nov 23 08:12:46 tiger NetworkManager: Will activate connection > 'ath0/whmlan'.+ > Nov 23 08:12:46 tiger NetworkManager: Device ath0 activation > scheduled...+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) started...+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Prepare) scheduled...+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Prepare) started...+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 2 of 5 > (Device Configure) scheduled...+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Prepare) complete.+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 2 of 5 > (Device Configure) starting...+ > Nov 23 08:12:46 tiger NetworkManager: Old device 'ath0' activating, > won't change.+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0/wireless): > access point 'whmlan' is encrypted, but NO valid key exists. New key needed.+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) New wireless > user key requested for network 'whmlan'.+ > Nov 23 08:12:46 tiger NetworkManager: Activation (ath0) Stage 2 of 5 > (Device Configure) complete.+ > Nov 23 08:12:50 tiger NetworkManager: Activation (ath0) New wireless > user key for network 'whmlan' received.+ > Nov 23 08:12:50 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Prepare) scheduled...+ > Nov 23 08:12:50 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Prepare) started...+ > Nov 23 08:12:50 tiger NetworkManager: Activation (ath0) Stage 2 of 5 > (Device Configure) scheduled...+ > Nov 23 08:12:50 tiger NetworkManager: Activation (ath0) Stage 1 of 5 > (Device Pr
Re: connect to two different networks
I have found the only way to do this is to stop NetworkManager. But even with NetworkManager stopped dhcpd keeps running in the background and resets my wireless device after a minute or so. So I added the following at the end of the script that sets up networking in this situation; it repeats relevant bits of the setup and kills itself after 5 minutes. Klutzy but it works. #!/bin/sh /sbin/service NetworkManager stop ... delay=300 sta=ath0 KEY=abcdefabcdefabcdefabcdef64 ESSID=private ... # Kill the following after $delay seconds ( sleep $delay ; killall $0 ) & # Keep restarting ath0 until dhcpd has finished trying to do things # with it. while true; do sleep 2 /sbin/ifconfig ath0|grep $IP || ( /sbin/iwconfig $sta essid $ESSID key $KEY ; /sbin/ifconfig $sta $IP up ) /sbin/route|grep 192.168.1.1 || (/sbin/ifconfig $sta $IP up; /sbin/route add default gw 192.168.1.1 $sta) done On Mon, 26 Nov 2007, Pedro Freire wrote: > > Hello list, > > I am using FC6 and NetworkManager 0.6.4-5 > > My laptop has an ethernet card and wifi. I am trying to connect > simultaneously to the wired and wireless nets, each one with different > subnets. > However, I don't know how to do this. As soon as I connect the cable, > NetworkManager disconnects the wireless net and tries to connect via > wired. I want the wired net to have a fixed IP address ('cause there is > no dhcp server on that subnet - by the way, it's a physically distinct net). > > Any help ? > > Thanks, > > Pedro > ___ > NetworkManager-list mailing list > NetworkManager-list@gnome.org > http://mail.gnome.org/mailman/listinfo/networkmanager-list > ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
mdns problem
everytime i try autogen on the svn version i get this error: . . . checking for /etc/redhat-release... no checking for /etc/SuSE-release... no checking for /etc/fedora-release... no checking for /etc/gentoo-release... yes checking for /etc/debian_version... no checking for /etc/arch-release... no checking for /etc/slackware-version... no checking for /etc/frugalware-release... no configure: error: invalid mdns implementation specified (mdnsresponder) i don't know what the problem could be and how to fix it. any hint?! ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
connect to two different networks
Hello list, I am using FC6 and NetworkManager 0.6.4-5 My laptop has an ethernet card and wifi. I am trying to connect simultaneously to the wired and wireless nets, each one with different subnets. However, I don't know how to do this. As soon as I connect the cable, NetworkManager disconnects the wireless net and tries to connect via wired. I want the wired net to have a fixed IP address ('cause there is no dhcp server on that subnet - by the way, it's a physically distinct net). Any help ? Thanks, Pedro ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: svn vs ftp
On 26/11/2007, vikram b <[EMAIL PROTECTED]> wrote: > Hi, > There seems to be huge diff between svn version and the FTP site > (http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/0.6/) > > is svn version a unstable one ? Still Is there any info on what are the > motives and scope of changes from 0.6.5 to current SVN version ? Yes they are quite different. People are working to get 0.7 ready. Check this semi(?)-official todo: http://live.gnome.org/NetworkManagerToDo Rui ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
svn vs ftp
Hi, There seems to be huge diff between svn version and the FTP site (http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/0.6/) is svn version a unstable one ? Still Is there any info on what are the motives and scope of changes from 0.6.5 to current SVN version ? e.g. I could see libnm-glib is added and lot many new files in libnm-utils. As i am new to NM , pardon my ignorance because of joining this forum late. I have svn version 3083 SVN info dump .. Last Changed Date: 2007-11-14 02:33:37 +0530 (Wed, 14 Nov 2007) Properties Last Updated: 2007-11-15 14:56:46 +0530 (Thu, 15 Nov 2007) regards Vikram ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list