Re: Automatic eth0 lost, and using DHCP send-hostname
On Sun, 2008-07-27 at 20:17 +0100, The Holy ettlz wrote: > On Sun, 2008-07-27 at 14:42 -0400, Dan Williams wrote: > > What's the output of: > > > > ps aux | grep dhclient > > root 886 0.0 0.0 4044 660 pts/0R+ 19:58 0:00 grep > dhclient > root 26497 0.0 0.0 2384 1044 ?S19:29 > 0:00 /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-client.action > -pf /var/run/dhclient-eth0.pid -lf /var/run/dhclient-eth0.lease > -cf /var/run/nm-dhclient-eth0.conf eth0 > > > while you're connected using NetworkManager? Are there any _more_ lines > > in /etc/dhclient-eth0.conf than what was in nm-dhclient-eth0.conf? > > Ah, sorry, Dan, seems I botched something... I had the > old /etc/dhclient-eth0.conf lying around when I used NM and > nm-dhclient-eth0.conf was > > # Created by NetworkManager > # Merged from /etc/dhclient-eth0.conf > > send host-name "rhapsody"; > > /etc/dhclient-eth0.conf is *just* the last line above. > Now I've removed /etc/dhclient-eth0.conf, nm-dhclient-eth0.conf is just > ># Created by NetworkManager > > In either case, the host name doesn't get set. I've also tried > restarting NM, nm-applet nm-system-settings to see if I can get the > "System eth0" entry back, but it's now just "Auto eth0", even though I > have the relevant files in /etc/sysconfig/... If you 'service NetworkManager stop' and also 'killall -TERM nm-system-settings', then run (as root): /usr/sbin/nm-system-settings --debug --plugins=ifcfg-fedora what's the output? Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Automatic eth0 lost, and using DHCP send-hostname
On Sun, 2008-07-27 at 14:42 -0400, Dan Williams wrote: > What's the output of: > > ps aux | grep dhclient root 886 0.0 0.0 4044 660 pts/0R+ 19:58 0:00 grep dhclient root 26497 0.0 0.0 2384 1044 ?S19:29 0:00 /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-client.action -pf /var/run/dhclient-eth0.pid -lf /var/run/dhclient-eth0.lease -cf /var/run/nm-dhclient-eth0.conf eth0 > while you're connected using NetworkManager? Are there any _more_ lines > in /etc/dhclient-eth0.conf than what was in nm-dhclient-eth0.conf? Ah, sorry, Dan, seems I botched something... I had the old /etc/dhclient-eth0.conf lying around when I used NM and nm-dhclient-eth0.conf was # Created by NetworkManager # Merged from /etc/dhclient-eth0.conf send host-name "rhapsody"; /etc/dhclient-eth0.conf is *just* the last line above. Now I've removed /etc/dhclient-eth0.conf, nm-dhclient-eth0.conf is just # Created by NetworkManager In either case, the host name doesn't get set. I've also tried restarting NM, nm-applet nm-system-settings to see if I can get the "System eth0" entry back, but it's now just "Auto eth0", even though I have the relevant files in /etc/sysconfig/... Thanks, James -- The Holy ettlz [EMAIL PROTECTED] PGP key ID: 03F94B5D --- 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: Automatic eth0 lost, and using DHCP send-hostname
On Sun, 2008-07-27 at 19:36 +0100, The Holy ettlz wrote: > Hi, > > > > 2. I can't seem to get the DHCP send-hostname feature to work. > > > > It only works for system connections at the moment, but if you have > > DHCP_HOSTNAME in your ifcfg file, it should pick that up and send it. > > Verify this by dumping /var/run/nm-dhclient-eth0.conf and seeing what > > options are in it. > > I've just been playing with this one at the moment in F8. I've got > >DHCP_HOSTNAME=rhapsody > > in both /etc/sysconfig/networking/devices/ifcfg-eth0 > and /etc/sysconfig/network-scripts/ifcfg-eth0 > > nm-applet on F8 now shows just "Auto eth0", but I'll leave that for the > time-being... anyway, with NetworkManager nm-dhclient-eth0.conf contains > > send host-name "rhapsody"; > > BUT I don't think the client is actually sending this --- I captured the > packets with Wireshark and it's not in any of the DHCP request's > options. > > When I ran /sbin/dhclient eth0 -cf /etc/dhclient-eth0.conf (which > contains the same lines as nm-dhclient-eth0.conf above), the hostname > request is part of the request packet, and the name resolves OK. What's the output of: ps aux | grep dhclient while you're connected using NetworkManager? Are there any _more_ lines in /etc/dhclient-eth0.conf than what was in nm-dhclient-eth0.conf? Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Automatic eth0 lost, and using DHCP send-hostname
Hi, > > 2. I can't seem to get the DHCP send-hostname feature to work. > > It only works for system connections at the moment, but if you have > DHCP_HOSTNAME in your ifcfg file, it should pick that up and send it. > Verify this by dumping /var/run/nm-dhclient-eth0.conf and seeing what > options are in it. I've just been playing with this one at the moment in F8. I've got DHCP_HOSTNAME=rhapsody in both /etc/sysconfig/networking/devices/ifcfg-eth0 and /etc/sysconfig/network-scripts/ifcfg-eth0 nm-applet on F8 now shows just "Auto eth0", but I'll leave that for the time-being... anyway, with NetworkManager nm-dhclient-eth0.conf contains send host-name "rhapsody"; BUT I don't think the client is actually sending this --- I captured the packets with Wireshark and it's not in any of the DHCP request's options. When I ran /sbin/dhclient eth0 -cf /etc/dhclient-eth0.conf (which contains the same lines as nm-dhclient-eth0.conf above), the hostname request is part of the request packet, and the name resolves OK. Regards, James. -- The Holy ettlz [EMAIL PROTECTED] PGP key ID: 03F94B5D --- 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: Automatic eth0 lost, and using DHCP send-hostname
On Sat, 2008-07-26 at 12:45 +0100, The Holy ettlz wrote: > Hello, > > Just giving NetworkManager-0.7.0-0.11.svn3846.fc{89} a spin. A couple of > things: > > 1. My F8 machine has only "System eth0" (no auto), > and my F9 machine has only "Auto eth0". > > I've purged /system/networking/connections in gconf, and restarted > nm-applet, but I can't get the "missing" connections back. Shouldn't > there be both? And how can I choose which one I want to auto-connect? Your F8 machine has a /etc/sysconfig/network-scripts/ifcfg-eth0 file then. The system settings service will create automatic wired connections for those devices that don't have any existing system connection found. So on your F9 machine, you do not have any ifcfg files and thus the automatic connection is created. > Actually, it seems that if I enable eth0 on boot on the F8 machine with > s-c-n, it will autoconnect "System eth0"... this doesn't *seem* to be > required on F9, since it only presents "Auto eth0". Maybe the s-c-n > checkbox should be relabeled "Connect automatically whenever link > available" or something? s-c-n operates on ifcfg files, which are "connections" in NM terminology. Thu > 2. I can't seem to get the DHCP send-hostname feature to work. It only works for system connections at the moment, but if you have DHCP_HOSTNAME in your ifcfg file, it should pick that up and send it. Verify this by dumping /var/run/nm-dhclient-eth0.conf and seeing what options are in it. > I've set it using s-c-n, but in F9 (choosing "Auto eth0") the machine > gets bound to a dynamically-assigned name, *not* the DHCP_HOSTNAME I > configured in ifcfg-. I still need the > old /etc/dhclient*.conf for it to work. Likewise in F8 (choosing "System > eth0"), although I've not been able to get it working even > with /etc/dhclient*.conf in place. > > What have I done wrong? On your F9 box, could you stop NetworkManager, 'killall -TERM nm-system-settings', and the provide the output of the following command? You can Ctl+C it after about 10 seconds or so. /usr/sbin/nm-system-settings --debug --plugins=ifcfg-fedora Thanks! Dan ___ NetworkManager-list mailing list NetworkManager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Automatic eth0 lost, and using DHCP send-hostname
Hello, Just giving NetworkManager-0.7.0-0.11.svn3846.fc{89} a spin. A couple of things: 1. My F8 machine has only "System eth0" (no auto), and my F9 machine has only "Auto eth0". I've purged /system/networking/connections in gconf, and restarted nm-applet, but I can't get the "missing" connections back. Shouldn't there be both? And how can I choose which one I want to auto-connect? Actually, it seems that if I enable eth0 on boot on the F8 machine with s-c-n, it will autoconnect "System eth0"... this doesn't *seem* to be required on F9, since it only presents "Auto eth0". Maybe the s-c-n checkbox should be relabeled "Connect automatically whenever link available" or something? 2. I can't seem to get the DHCP send-hostname feature to work. I've set it using s-c-n, but in F9 (choosing "Auto eth0") the machine gets bound to a dynamically-assigned name, *not* the DHCP_HOSTNAME I configured in ifcfg-. I still need the old /etc/dhclient*.conf for it to work. Likewise in F8 (choosing "System eth0"), although I've not been able to get it working even with /etc/dhclient*.conf in place. What have I done wrong? Thanks, James. -- The Holy ettlz [EMAIL PROTECTED] PGP key ID: 03F94B5D --- 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