Re: setting dhcp client id option

2009-02-11 Thread Roy Marples
On Wed, 2009-02-11 at 16:25 -0500, Dan Williams wrote:
> On Wed, 2009-02-11 at 23:07 +0200, Eldar, Dori wrote:
> > Is there a way to configure NetworkManager to send dhcp-client-id dhcp
> > option, such that it is set to the interface  mac address?
> > Using MAC address as the  dhcp client id is typical for windows
> > systems.
> > I know I can set it manually either through the nm-connection-editor
> > or using the dhclient.conf,  but am looking for a dynamic way that can
> > work on a LiveCD.

If you configure NetworkManager to use dhcpcd instead of dhclient you
can do this.
=dhcpcd-4.0.5 does not and requires the clientid directive
in /etc/dhcpcd.conf. Simply add the word clientid on a line by itself :)

> 
> We could just always send the MAC address unless the user customizes it;
> I'm not sure what the side-effects of that might be.  At the moment,
> there's not a good method of doing this automatically with either
> dhclient or NetworkManager :(

The side effect is that depending on the DHCP server you may get a
different lease. With ISC dhcpd, you get a different lease without a
clientid and with a clientid of the MAC address. With dnsmasq you get
the same lease.

Another thing to remember is that BOOTP servers don't understand a
clientid.

I firmly believe that DHCP clients shout NOT send a clientid by default
so they can take over from kernel DHCP clients and they historically
never have sent one. Also also believe that sending a clientid based on
the MAC address should be an easy configureable option ;)

Thanks

Roy


signature.asc
Description: This is a digitally signed message part
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: vpnc plugin: order of resolv.conf entries when using Mobile Broadband vs. (W)LAN

2009-02-11 Thread Alexander Sack
On Fri, Feb 06, 2009 at 01:01:59PM -0500, Dan Williams wrote:
> On Thu, 2009-02-05 at 21:57 +0100, Marc Luethi wrote:
> > Nonetheless, even with these versions of network-manager packages, I had
> > the same issue with the sequence of the name-server entries
> > in /etc/resolv.conf as described in the first post.
> 
> asac/mbiebl?  thoughts on this problem?

Marc, when the sequence is messed up, what files do you have in 
/etc/resolvconf/run/interface/ ?

Also the contents of those files would be good to see.

Thanks,

 - Alexander

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: setting dhcp client id option

2009-02-11 Thread Dan Williams
On Wed, 2009-02-11 at 23:07 +0200, Eldar, Dori wrote:
> Is there a way to configure NetworkManager to send dhcp-client-id dhcp
> option, such that it is set to the interface  mac address?
> Using MAC address as the  dhcp client id is typical for windows
> systems.
> I know I can set it manually either through the nm-connection-editor
> or using the dhclient.conf,  but am looking for a dynamic way that can
> work on a LiveCD.

We could just always send the MAC address unless the user customizes it;
I'm not sure what the side-effects of that might be.  At the moment,
there's not a good method of doing this automatically with either
dhclient or NetworkManager :(

Dan

> Thanks Dori 
>  
> -
> Intel Israel (74) Limited
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> ___
> 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


setting dhcp client id option

2009-02-11 Thread Eldar, Dori
Is there a way to configure NetworkManager to send dhcp-client-id dhcp option, 
such that it is set to the interface  mac address?
Using MAC address as the  dhcp client id is typical for windows systems.
I know I can set it manually either through the nm-connection-editor or using 
the dhclient.conf,  but am looking for a dynamic way that can work on a LiveCD.

Thanks Dori

-
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Simplifying the Connections Editor

2009-02-11 Thread Fanen Ahua



On Tue, 2009-02-10 at 13:46 -0500, Dan Williams wrote:
> On Tue, 2009-02-10 at 19:28 +0100, Fanen Ahua wrote:
> > Someone called me up today asking me how to configure a manual IP
> > address in Ubuntu 8.10. 
> > 
> > He was most likely intimidated by the naming of the tabs in the
> > connection editor dialog.
> > 
> > Won't it be better to make the "IPv4 Settings" tab the first thing, and
> > rename it to something more familiar, "Settings" perhaps? 
> > 
> > This makes sense because nearly everytime I use the dialog, I only
> > change the connection name, and input the IP details, and the only tab I
> > use is the "IPv4 Setings" tab, where i choose the manual method, and
> > input the DNS servers.
> 
> So when we add the IPv6 tab, then what? :)
> 
Then, we can safely assume (at least for a few years afterwards) that if
you want to configure IPv6, then you know what it means :)

In any case, I think making the IPv4 tab the first one will eliminate
confusion.
> dan
> 
> 


signature.asc
Description: This is a digitally signed message part
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Fw: Connection breaks frequently with Connection Sharing (3G to WLAN)

2009-02-11 Thread Juhani Jaakola

I tried connection sharing using a different WLAN adapter and with an 
additional laptop which uses the shared connection.

I bought ZyXEL AG-220 WLAN adapter (ID 0586:3412) which uses zd1211rw driver. I 
plugged it in to the same PC which has the WL54H card - because it is a PCI 
card I did not take it out. This machine has the following versions:

kernel-2.6.27.12-170.2.5.fc10.i686
NetworkManager-0.7.0-1.git20090102.fc10.i386
dnsmasq-2.45-1.fc10.i386
wpa_supplicant-0.6.4-2.fc10.i386

The ThinkPad has the same problem with zd1211rw as with rt2500pci driver. The 
connection is practically unusable. In the last hour there were 7 DHCPACK 
messages in /var/log/messages. The ThinkPad runs Windows XP Professional, 
Version 2002, SP2.

However, I also have an Acer laptop, which runs Windows XP Home Edition, 
Version 2002, SP3. In the last hour there were 3 DHCPACKs for this laptop - but 
I could use it without problems!

I think that there is a problem of too many DHCPACKs per hour. Other Windows 
laptops seem to suffer from it, but others don't... Perhaps Windows XP SP2 has 
a bug that is corrected in Windows XP SP3?

Regards, JJ

--- Alkuperäinen viesti ---
Aihe: Connection breaks frequently with Connection Sharing (3G to WLAN)
Päiväys: 20.1.2009 17:48
Vastaanottaja:  networkmanager-list@gnome.org
Lähettäjä: Juhani Jaakola [juhani.jaak...@kolumbus.fi]
I have a PC with A-Link WL54H WLAN card (driver rt2500pci) and a USB 3G modem. 
I connect to the Internet via the 3G modem and I want to share that connection 
with other PCs via WLAN. I'm running Fedora 10.

I connected to Internet with "Auto GSM network connection". Then I chose "Create New 
Wireless Network..." to share the 3G connection to other PCs with WLAN. I created a network 
with security NONE. Then I connect to the new ad hoc WLAN network from ThinkPad with Windows XP SP3.

My problem is that the WLAN connection to the ThinkPad breaks very frequently. 
Last hour the connection broke 13 times! This is what I get in 
/var/log/messages:

--- begin of /var/log/messages ---
Jan 20 16:45:29 tik NetworkManager:   (wlan0): supplicant connection state:  
completed -> associated
Jan 20 16:45:29 tik NetworkManager:   (wlan0): supplicant connection state:  
associated -> completed
Jan 20 16:45:32 tik dnsmasq[3661]: DHCPDISCOVER(wlan0) 00:16:6f:05:8e:88 
Jan 20 16:45:32 tik dnsmasq[3661]: DHCPOFFER(wlan0) 10.42.43.10 00:16:6f:05:8e:88 
Jan 20 16:45:32 tik dnsmasq[3661]: Ignoring domain foo-domain.net for DHCP host name otherpc
Jan 20 16:45:32 tik dnsmasq[3661]: DHCPREQUEST(wlan0) 10.42.43.10 00:16:6f:05:8e:88 
Jan 20 16:45:32 tik dnsmasq[3661]: DHCPACK(wlan0) 10.42.43.10 00:16:6f:05:8e:88 otherpc

Jan 20 16:46:53 tik NetworkManager:   (wlan0): supplicant connection state:  
completed -> associated
Jan 20 16:46:53 tik NetworkManager:   (wlan0): supplicant connection state:  
associated -> completed
Jan 20 16:48:18 tik dnsmasq[3661]: DHCPRELEASE(wlan0) 10.42.43.10 00:16:6f:05:8e:88 
Jan 20 16:48:40 tik dnsmasq[3661]: DHCPDISCOVER(wlan0) 00:16:6f:05:8e:88 
Jan 20 16:48:40 tik dnsmasq[3661]: DHCPOFFER(wlan0) 10.42.43.10 00:16:6f:05:8e:88 
Jan 20 16:48:40 tik dnsmasq[3661]: Ignoring domain foo-domain.net for DHCP host name otherpc
Jan 20 16:48:40 tik dnsmasq[3661]: DHCPREQUEST(wlan0) 10.42.43.10 00:16:6f:05:8e:88 
Jan 20 16:48:40 tik dnsmasq[3661]: DHCPACK(wlan0) 10.42.43.10 00:16:6f:05:8e:88 otherpc

--- end of /var/log/messages ---

And /var/log/wpa_supplicant.log contains the following lines repeated many 
times:

--- begin of quote ---
Associated with 02:16:6f:10:ef:33
CTRL-EVENT-CONNECTED - Connection to 02:16:6f:10:ef:33 completed (reauth) [id=0 
id_str=]
--- end of quote ---

ps -ef shows the following arguments for the key processes:

NetworkManager --pid-file=/var/run/NetworkManager/NetworkManager.pid

/usr/sbin/pppd nodetach lock nodefaultroute ttyUSB0 noipdefault usepeerdns 
lcp-echo-failure 0 lcp-echo-interval 0 ipparam 
/org/freedesktop/NetworkManager/PPP/0 plugin 
/usr/lib/pppd/2.4.4/nm-pppd-plugin.so

/usr/sbin/dnsmasq --no-hosts --keep-in-foreground --bind-interfaces --no-poll 
--except-interface=lo --listen-address=10.42.43.1 
--dhcp-range=10.42.43.10,10.42.43.100,60m 
--dhcp-option=option:router,10.42.43.1 --dhcp-lease-max=50 
--pid-file=/var/run/nm-dnsmasq-wlan0.pid

/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f 
/var/log/wpa_supplicant.log

My versions are:

kernel-2.6.27.9-159.fc10.i686
NetworkManager-0.7.0-1.git20090102.fc10.i386
dnsmasq-2.45-1.fc10.i386
wpa_supplicant-0.6.4-2.fc10.i386

___
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