Re: [Cooker] internet connection on bootup
Buchan Milne [EMAIL PROTECTED] writes: http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm this stuff seems to use the ETHTOOL_GLINK code to detect if link down/up from the ETHTOOL kernel interface. Last time we tried to use that stuff it had numerous problems with some network cards that has been not converted to the ethtools interface. Maybe things changed since then but i am not sure of the safeness of this code for all network cards.
Re: [Cooker] internet connection on bootup
Le Thu, 09 Jan 2003 02:31:56 -0500, Chmouel Boudjnah a écrit : Buchan Milne [EMAIL PROTECTED] writes: http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm this stuff seems to use the ETHTOOL_GLINK code to detect if link down/up from the ETHTOOL kernel interface. Small correction : it uses ethtool interface if available, otherwise, it tries mii-tool old interface.. -- Frédéric Crozat MandrakeSoft
Re: [Cooker] internet connection on bootup
Frederic Crozat [EMAIL PROTECTED] writes: Small correction : it uses ethtool interface if available, otherwise, it tries mii-tool old interface.. does it mean '0 error case' of detection when link is down ?
Re: [Cooker] internet connection on bootup
On 9 Jan 2003, Chmouel Boudjnah wrote: Buchan Milne [EMAIL PROTECTED] writes: http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm this stuff seems to use the ETHTOOL_GLINK code to detect if link down/up from the ETHTOOL kernel interface. According to the readme: - Supports the Linux SIOCETHTOOL (newer, aka ethtool API), SIOCGMIIREG (older, aka mii-diag/mii-tool API) and SIOCDEVPRIVATE (oldest, aka mii-tool API) ioctl()s for getting link status. So, AFAIK (ianakh) all drivers *should* support it, but don't. Last time we tried to use that stuff it had numerous problems with some network cards that has been not converted to the ethtools interface. Well, maybe it's time to find out which drivers don't support it, and try and get the maintainer to fix it? Maybe things changed since then but i am not sure of the safeness of this code for all network cards. Well, someone's got to try it, so we might as well try and collect the evidence, and if it works for a significant number (specifically laptop cards) then it may be worth spending more effort on. Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] internet connection on bootup
Le Sun, 12 Jan 2003 17:09:30 +0100, Chmouel Boudjnah a écrit : Frederic Crozat [EMAIL PROTECTED] writes: Small correction : it uses ethtool interface if available, otherwise, it tries mii-tool old interface.. does it mean '0 error case' of detection when link is down ? I don't know :(( There are even some network cards which don't work correctly with mii-tool, and of course, I have one at home : 3C905B fails to autonegociate and always report cable link is down.. This caused RH to disable mii-tool check in network initscript when using DHCP for RH 8.0 and with Mdk 9.0, we can't use DHCP with this card without patching ifup :(( -- Frédéric Crozat MandrakeSoft
Re: [Cooker] internet connection on bootup
Frederic Crozat [EMAIL PROTECTED] writes: There are even some network cards which don't work correctly with mii-tool, and of course, I have one at home : 3C905B fails to autonegociate and always report cable link is down.. This caused RH to yeah that's what i mean, it doen't work all the time and may cause more problems that i solves. disable mii-tool check in network initscript when using DHCP for RH 8.0 and with Mdk 9.0, we can't use DHCP with this card without patching ifup which mean ? i will be glad to look at this if you fill me a nice bugzilla bug ;-) Cheers, Chmouel.
Re: [Cooker] internet connection on bootup
Frederic Crozat wrote: There are even some network cards which don't work correctly with mii-tool, and of course, I have one at home : 3C905B fails to autonegociate and always report cable link is down.. This caused RH to disable mii-tool check in network initscript when using DHCP for RH 8.0 and with Mdk 9.0, we can't use DHCP with this card without patching ifup :(( Is ifup patched in Mandrake 9.1 beta 1 ISO? Because I also have 3C905B TX-NM PCI NIC which is conected to LevelOne router and it also reports that it is unable to get DHCP info and I should check cables. I checked all that and cabling is OK. The same card also works just fine in Windows XP Pro SP1. I also filled bug about this: https://qa.mandrakesoft.com/show_bug.cgi?id=781 -- Live long and prosper!
Re: [Cooker] internet connection on bootup
On Sun, 12 Jan 2003, Frederic Crozat wrote: Le Sun, 12 Jan 2003 17:09:30 +0100, Chmouel Boudjnah a écrit : Frederic Crozat [EMAIL PROTECTED] writes: Small correction : it uses ethtool interface if available, otherwise, it tries mii-tool old interface.. does it mean '0 error case' of detection when link is down ? I don't know :(( There are even some network cards which don't work correctly with mii-tool, and of course, I have one at home : 3C905B fails to autonegociate and always report cable link is down.. Is it possible to fix it, and if so how much effort would it be (assuming we have enough people to test most of the drivers)? On 3c589_cs: $ mii-tool SIOCGMIIPHY on eth0 failed: Operation not supported no MII interfaces found $ ifstatus -v eth0 SIOCETHTOOL failed (Operation not supported) SIOGGMIIPHY failed (Operation not supported) SIOCDEVPRIVATE failed (Operation not supported) On ne2k-pci: [root@bgmilne bgmilne]# mii-tool eth0 SIOCGMIIPHY on 'eth0' failed: Operation not supported [root@bgmilne bgmilne]# ifstatus -v eth0 eth0: SIOCETHTOOL failed (Operation not supported) SIOGGMIIPHY failed (Operation not supported) SIOCDEVPRIVATE failed (Operation not supported) On 8139too: [bgmilne:~]# mii-tool eth0 eth0: negotiated 100baseTx-FD, link ok [bgmilne:~]# ifstatus -v eth0 eth0: SIOCETHTOOL: link beat detected SIOCGMIIPHY: link beat detected SIOCDEVPRIVATE: link beat detected This caused RH to disable mii-tool check in network initscript when using DHCP for RH 8.0 and with Mdk 9.0, we can't use DHCP with this card without patching ifup :(( But surely if mii-tool works on a card, then use it to determine whether or not to dhcp, if not, dhcp anyway? Or is it not that simple? Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] internet connection on bootup
Buchan Milne [EMAIL PROTECTED] writes: But surely if mii-tool works on a card, then use it to determine whether the problem is the database that the one who work and the one who doen't and grep on the kernel drivers will not work, we did real world testing.
Re: [Cooker] internet connection on bootup
On 12 Jan 2003, Chmouel Boudjnah wrote: Buchan Milne [EMAIL PROTECTED] writes: But surely if mii-tool works on a card, then use it to determine whether the problem is the database that the one who work and the one who doen't and grep on the kernel drivers will not work, we did real world testing. I don't quite follow, but are you telling me 1)It's impossible (aka the hardware doesn't support it in all cases) 2)It's impossible, the working of the interfaces isn't deterministic on whether the kernel implements the interfaces of not 3)It's too much work But, as far as I can see, if it does work on a significant number of cards, and one knows when it isn't working, it should be possible to use it when it is working? Should I continue work on ifplugd and see how it works in the 3 cases: 1)ifstatus doesn't work 2)ifstatus does work can cable connected 3)ifstatus does work and cable disconnected ? Or should we just give up and say it's not feasible to run Mandrake on laptops except if the users has root and knows what he's doing? Unfortunately Windows handles this aspect quite well (even if their 'autoconfiguration address' thing is non-standards-compliant, it does work to disconnect a laptop from the lan, and connect it via loopback to another one, and everything *just* works, well, as well as windows normally works ;-)). Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] internet connection on bootup
On Sun, 12 Jan 2003, Jure Repinc wrote: Frederic Crozat wrote: There are even some network cards which don't work correctly with mii-tool, and of course, I have one at home : 3C905B fails to autonegociate and always report cable link is down.. This caused RH to disable mii-tool check in network initscript when using DHCP for RH 8.0 and with Mdk 9.0, we can't use DHCP with this card without patching ifup :(( Actually, I wonder now (after thinking about it a bit) whether ifplugd would make this simpler. Maybe drakconnect should check if ifstatus works for the card, in which case it should be configured ONBOOT=no, and ifplugd should be setup, which will bring the card up if a cable is connected. If ifstatus doesn't work, then the card should use ONBOOT=yes if the user so enables it. A gui feedback such as This card supports cable detection that goes hand-in-hand with disabling a 'start at boot' checkbox in drakconnect would make it all quite neat/tidy. Is ifup patched in Mandrake 9.1 beta 1 ISO? Because I also have 3C905B TX-NM PCI NIC which is conected to LevelOne router and it also reports that it is unable to get DHCP info and I should check cables. I checked all that and cabling is OK. The same card also works just fine in Windows XP Pro SP1. I also filled bug about this: https://qa.mandrakesoft.com/show_bug.cgi?id=781 Just for completeness, you may want to add output of: # ifstatus -v (after installing http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm) # mii-tool -v for you network interface (ie mii-tool -v eth0; ifstatus -v eth0) Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] internet connection on bootup
Buchan Milne wrote: On 9 Jan 2003, Chmouel Boudjnah wrote: Buchan Milne [EMAIL PROTECTED] writes: http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm this stuff seems to use the ETHTOOL_GLINK code to detect if link down/up from the ETHTOOL kernel interface. According to the readme: - Supports the Linux SIOCETHTOOL (newer, aka ethtool API), SIOCGMIIREG (older, aka mii-diag/mii-tool API) and SIOCDEVPRIVATE (oldest, aka mii-tool API) ioctl()s for getting link status. So, AFAIK (ianakh) all drivers *should* support it, but don't. Last time we tried to use that stuff it had numerous problems with some network cards that has been not converted to the ethtools interface. Well, maybe it's time to find out which drivers don't support it, and try and get the maintainer to fix it? Maybe things changed since then but i am not sure of the safeness of this code for all network cards. Well, someone's got to try it, so we might as well try and collect the evidence, and if it works for a significant number (specifically laptop cards) then it may be worth spending more effort on. Buchan well, with one of my pcmcia cards I didn't test it ( 3c589d ) since you did say in original post that you have found it doesn't work with 3c589 cards. going to be a bit to test on the other (dlink DFE-680TX cardbus ) for some reason can't get my laptop to accept the cardbus for it so have to get that fixed to test it. Jaqui
Re: [Cooker] internet connection on bootup
Buchan Milne wrote: Is ifup patched in Mandrake 9.1 beta 1 ISO? Because I also have 3C905B TX-NM PCI NIC which is conected to LevelOne router and it also reports that it is unable to get DHCP info and I should check cables. I checked all that and cabling is OK. The same card also works just fine in Windows XP Pro SP1. I also filled bug about this: https://qa.mandrakesoft.com/show_bug.cgi?id=781 Just for completeness, you may want to add output of: # ifstatus -v (after installing http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm) # mii-tool -v for you network interface (ie mii-tool -v eth0; ifstatus -v eth0) Buchan This is the output (I will add it to bug report): [root@NCC-1701-D root]# ifstatus -v eth0 eth0: SIOCETHTOOL failed (Operation not supported) SIOCGMIIPHY: unplugged SIOCDEVPRIVATE: unplugged [root@NCC-1701-D root]# mii-tool -v eth0 eth0: 10 Mbit, half duplex, no link product info: vendor 30:00:30, model 0 rev 0 basic mode: software reset, loopback, 10 Mbit, half duplex basic status: no link capabilities: 100baseT4 100baseTx-FD advertising: -- Live long and prosper!
Re: [Cooker] internet connection on bootup
On Sat, 4 Jan 2003, Guillaume Rousse wrote: You must use chkconfig --del network to permanently prevent network at boot. Then use service network start/stop manually to launch/shutdown the network. However, this is not the perfect solution, as you still need loopback for most applications. My personal solution is to have a network profile with loopback only for when i'm roaming, and to switch between different profiles with symlinks. Guillaume, can you try this rpm please (in progress, ignore %post error): http://ranger.dnsalias.com/mandrake/cooker/ifplugd-0.11-1mdk.i586.rpm (SRPM available there too). Just send me the output of 'ifstatus -v' with the cards and drivers you use. It works on the on-board rtl8139 in my uni desktop, but not on the 3c589_cs in my laptop, or the ne2k-pci in my home desktop. Anyone else is also free to try this, and also report, but either keep it on the list, and only drivers that haven't been tested, or attach to bug 780 (maybe I should make a new one?): https://qa.mandrakesoft.com/show_bug.cgi?id=780 Regards, Buchan -- |Registered Linux User #182071-| Buchan MilneMechanical Engineer, Network Manager Cellphone * Work+27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 04 January 2003 14:01, Guillaume Rousse wrote: Le Samedi 4 Janvier 2003 18:30, Sascha Noyes a écrit : However, this is not the perfect solution, as you still need loopback for most applications. My personal solution is to have a network profile with loopback only for when i'm roaming, and to switch between different profiles with symlinks. Could you give a short synopsis of how you create a netword profile, and how you switch between different profiles with symlinks? Or maybe point me in the way of some documentation? Sure. Identify all files involved in a given network configuration, which means basically: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/hosts /etc/resolv.conf And potentially others: /etc/exports /etc/rcx.d etc... Just rename them to name.foo, where name is original file name, and foo is your profile name. Then use attached script to switch from a given profile to another. draknet also had limited support for different network profiles, but i don't know current state. Thank you very much. I'll look at implementing this rather soon. - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+GLzTgzJdfX+cTW8RAv2/AKCUboXchuOJW3PHNA6ErObhbCRElwCfetio zqmLBn1TYf4OY9Vpgww7HFY= =o8JE -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
Le Lundi 30 Décembre 2002 12:36, Sascha Noyes a écrit : Hi, Yes, the box is a laptop. It is sometimes connected to a broadband gateway which gives out an IP address via DHCP, but sometimes not. If it is disconnected everything (as Brook Humphrey noted) runs extremely slowly. I did: chkconfig --level 2345 network off, but this only turned off networking on the next boot. You must use chkconfig --del network to permanently prevent network at boot. Then use service network start/stop manually to launch/shutdown the network. However, this is not the perfect solution, as you still need loopback for most applications. My personal solution is to have a network profile with loopback only for when i'm roaming, and to switch between different profiles with symlinks. -- When you finally buy enough memory, you will not have enough disk space. -- Murphy's Computer Laws n°3
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 04 January 2003 12:24, Guillaume Rousse wrote: Le Lundi 30 Décembre 2002 12:36, Sascha Noyes a écrit : Hi, Yes, the box is a laptop. It is sometimes connected to a broadband gateway which gives out an IP address via DHCP, but sometimes not. If it is disconnected everything (as Brook Humphrey noted) runs extremely slowly. I did: chkconfig --level 2345 network off, but this only turned off networking on the next boot. You must use chkconfig --del network to permanently prevent network at boot. Then use service network start/stop manually to launch/shutdown the network. However, this is not the perfect solution, as you still need loopback for most applications. My personal solution is to have a network profile with loopback only for when i'm roaming, and to switch between different profiles with symlinks. Could you give a short synopsis of how you create a netword profile, and how you switch between different profiles with symlinks? Or maybe point me in the way of some documentation? Thank you very much, Sascha - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+FxpHgzJdfX+cTW8RAuFVAJ0eNeYEzNGoM0f0b5fifo4513/mWwCeJ+8X 7xQhfGJQPQ3rWny5C+7yNqo= =UcqP -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
Le Samedi 4 Janvier 2003 18:30, Sascha Noyes a écrit : However, this is not the perfect solution, as you still need loopback for most applications. My personal solution is to have a network profile with loopback only for when i'm roaming, and to switch between different profiles with symlinks. Could you give a short synopsis of how you create a netword profile, and how you switch between different profiles with symlinks? Or maybe point me in the way of some documentation? Sure. Identify all files involved in a given network configuration, which means basically: /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/hosts /etc/resolv.conf And potentially others: /etc/exports /etc/rcx.d etc... Just rename them to name.foo, where name is original file name, and foo is your profile name. Then use attached script to switch from a given profile to another. draknet also had limited support for different network profiles, but i don't know current state. -- No matter how good of a deal you get on computer components, the price will always drop immediately after the purchase. -- Murphy's Computer Laws n°7 switch-network-profile Description: application/shellscript
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 30 December 2002 09:05 pm, David Walser wrote: How did you configure it? According to the DNS-HOWTO, how you configure forwarding can make a difference. I was able to solve some slowness when the connection is down by running BIND here. Ah yes I know this would be coming. I used the default mandrake settings. You know if we don't try the default then how do we really know if it is a problem the mandrake settings or no. Really I have spent many hours doing firewalls be hand and I happen to be one of those that really prefer good GUI tools to do the job when they are available. So I went to mcc and made sure the network was setup properly then I used the connection sharing wizard. It all seems to work extremely well accept for when your connection is down. I guess maybe after using mandrake since 5.3 I'm getting a little lazy with the wizards but really this is exactly the same thing any normal user of today would do and well they will experience the same problems. It's not like it was when I started when I had to tweak everything to get it just right. now I will say any of you that simply unplug your ethernet cable on your connection sharing box will see exactly what it does. Furthermore if I can be of any help let me know I do not mind being a giny pig to get this problem corrected for the next release. - -- -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- Brook Humphrey Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107 http://www.webmedic.net, [EMAIL PROTECTED], [EMAIL PROTECTED] Holiness unto the Lord -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+EacZnT1TkA6FgPgRAgHQAJ4yKeLXwed0RpUVD18/1P0eF0B5XACbBJaw 8Ciu1a++sAPOKKUKGF4yKgI= =vnvO -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Unfortunately, this did not really solve my problems :-( For a while the connection seemed fine - except that it would still stall the start of any program if disconnected - but then after a couple of reboots I could not start any desktop environment, because of some connection issues IIRC. Oh well, back to the standard setup. If/when Deno implements the voting not only for RPMs but also for features, etc. in MandrakeClub I will suggest an improvement of normal functioning in Mandrake-Linux when no connection is present. I'm sure one of the clever people at Mandrake will come up with a good hack! Sascha Noyes On Monday 30 December 2002 22:14, Jason Bowman wrote: On Monday 30 December 2002 09:29 am , Sascha Noyes wrote: OK, I set that variable to 20 seconds. However, the real problem is still not solved. Now, instead of waiting for 60 seconds, I can wait 20 seconds for any program to start when I am not connected. The only solution that I got it! I was looking in the network server startup script but... anyway... Here is what I think you should do. Edit your /etc/sysconfig/network-scripts/ifcfg-ethX file to contain: ONBOOT=no Next take whatever manual dhcp command you would execute (for me this is 'dhclient eth0') and put this at the end of rc.local with an ampersand after it so it doesn't block. dhclient eth0 Note that rc.local is executed after all other scripts so you might want to move this somewhere else if it does not run early enough for you... Later, Jason B. - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+EpHxgzJdfX+cTW8RAmwqAJ93cGVWveIzZywvwaeql9kcb2wZ+wCgi/ec qfWxlLzRRgX4FmNUn1y/7i0= =vCCr -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Yes, the box is a laptop. It is sometimes connected to a broadband gateway which gives out an IP address via DHCP, but sometimes not. If it is disconnected everything (as Brook Humphrey noted) runs extremely slowly. I did: chkconfig --level 2345 network off, but this only turned off networking on the next boot. I have observed in gkrellm that when i physically disconnect the machine while it is up, after a while it will start trying to send 60 bytes of information every second for 3 seconds and then do a 2 second pause before resuming. Presumably it is querying the gateway. However it just doesn't give up. Ideally it would give up after a couple of tries. I checked /etc/sysconfig/network-scripts/ifcfg-ethX, but it only contains the following 4 lines: DEVICE=eth0 BOOTPROTO=dhcp NETMASK=255.255.255.0 ONBOOT=yes I'll check out the -t option for dhcpd. Where is the config file specifying how dhcpd should be started at boot? Thanks, Sascha On Sunday 29 December 2002 11:59 pm, James Sparenberg wrote: Sascha, I'm guessing that you have a box that is sometimes connected sometimes not.. like a laptop. If so a dirty fix would be simply doing chkconfig --level 2345 network off which would then mean a manual start when you do want it to go. Or is this a DHCP timeout? if so passing the -t option (from the man dhcpcd manpage) allows you to set the time it will try to get a lease. I believe but have never tried it this would be set in /etc/sysconfig/network-scripts/ifcfg-ethX where X is your NIC. James On Sun, 2002-12-29 at 11:41, Sascha Noyes wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there some way to shorten the time that bootup spends on trying to connect to the internet if there is eg. no physical connection. Maybe someone can point me to the Mandrake script that handles this. If enough people think this is useful, I'll put an enhancement proposal on bugzilla for specifying the time bootup should spend on connecting to the internet in MCC. Thanks, Sascha Noyes - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+D0/vgzJdfX+cTW8RAn0IAJ4j6ymyX8nZi/VD3KQkH7vWRXBzWgCfbP55 poO4vKe/3EGT9kV6Lx3nph0= =9ieL -END PGP SIGNATURE- - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+EC+8gzJdfX+cTW8RAnKlAKCnvTAX4HD7zGcS0bBVn+NRpFKTXgCdEgfb oxSg6yw2c3FFal5cu/xAXek= =hQ5a -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
--- Sascha Noyes [EMAIL PROTECTED] wrote: I'll check out the -t option for dhcpd. Where is the config file specifying how dhcpd should be started at boot? dhcpcd you mean, but you need to set the variable: DHCP_TIMEOUT in /etc/sysconfig/network to whatever you want the timeout to be, see dhcpcd's manpage for more info. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 30 December 2002 01:10 pm, David Walser wrote: --- Sascha Noyes [EMAIL PROTECTED] wrote: I'll check out the -t option for dhcpd. Where is the config file specifying how dhcpd should be started at boot? dhcpcd you mean, but you need to set the variable: DHCP_TIMEOUT in /etc/sysconfig/network to whatever you want the timeout to be, see dhcpcd's manpage for more info. OK, I set that variable to 20 seconds. However, the real problem is still not solved. Now, instead of waiting for 60 seconds, I can wait 20 seconds for _any_ program to start when I am not connected. The only solution that I can think of now would be a manual intervention (eg. open MCC, type root password, goto system, goto services, stop network). Ideally I would like my machine to function normally after a network disconnect without manual intervention. Is there no way to specify that dhcpcd should not be invoked unless there is an action carried out that expressedly needs to send/fetch data over the network? Sascha - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+EFhdgzJdfX+cTW8RAkWuAJ9C+hmnbXwFs6V3JZPhZHUiw++ctACfa5eb /xlxkEegxEDWBMIQyo9SWbA= =ynxr -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
--- Sascha Noyes [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 30 December 2002 01:10 pm, David Walser wrote: --- Sascha Noyes [EMAIL PROTECTED] wrote: I'll check out the -t option for dhcpd. Where is the config file specifying how dhcpd should be started at boot? dhcpcd you mean, but you need to set the variable: DHCP_TIMEOUT in /etc/sysconfig/network to whatever you want the timeout to be, see dhcpcd's manpage for more info. OK, I set that variable to 20 seconds. However, the real problem is still not solved. Now, instead of waiting for 60 seconds, I can wait 20 seconds for _any_ program to start when I am not connected. The only solution that I can think of now would be a manual intervention (eg. open MCC, type root password, goto system, goto services, stop network). Ideally I would like my machine to function normally after a network disconnect without manual intervention. Is there no way to specify that dhcpcd should not be invoked unless there is an action carried out that expressedly needs to send/fetch data over the network? From what someone said earlier, maybe it's trying to do host lookups. Maybe the problem would be worked around if you ran your own nameserver locally. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
Re: [Cooker] internet connection on bootup
On Monday 30 December 2002 09:29 am, Sascha Noyes wrote: OK, I set that variable to 20 seconds. However, the real problem is still not solved. Now, instead of waiting for 60 seconds, I can wait 20 seconds for _any_ program to start when I am not connected. The only solution that I got it! I was looking in the network server startup script but... anyway... Here is what I think you should do. Edit your /etc/sysconfig/network-scripts/ifcfg-ethX file to contain: ONBOOT=no Next take whatever manual dhcp command you would execute (for me this is 'dhclient eth0') and put this at the end of rc.local with an ampersand after it so it doesn't block. dhclient eth0 Note that rc.local is executed after all other scripts so you might want to move this somewhere else if it does not run early enough for you... Later, Jason B.
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 30 December 2002 05:14 pm, David Walser wrote: From what someone said earlier, maybe it's trying to do host lookups. Maybe the problem would be worked around if you ran your own nameserver locally. Definitely not. In my case I am running a name server for my connection sharing and when the cable modem was down it would still cause severe slowness on all linux boxes on the network actually. I never looked into it more than this because I never had the time but I can say that not having a local name server is not the problem. - -- -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- Brook Humphrey Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107 http://www.webmedic.net, [EMAIL PROTECTED], [EMAIL PROTECTED] Holiness unto the Lord -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+ERXPnT1TkA6FgPgRAr3SAJ9QqM8Jn6j5znY5F0tKQIuW5hN1JgCePTZx bcB8Xbm8kfWxq+Sj5QkayrA= =/PPu -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
--- Brook Humphrey [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 30 December 2002 05:14 pm, David Walser wrote: From what someone said earlier, maybe it's trying to do host lookups. Maybe the problem would be worked around if you ran your own nameserver locally. Definitely not. In my case I am running a name server for my connection sharing and when the cable modem was down it would still cause severe slowness on all linux boxes on the network actually. I never looked into it more than this because I never had the time but I can say that not having a local name server is not the problem. How did you configure it? According to the DNS-HOWTO, how you configure forwarding can make a difference. I was able to solve some slowness when the connection is down by running BIND here. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
[Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there some way to shorten the time that bootup spends on trying to connect to the internet if there is eg. no physical connection. Maybe someone can point me to the Mandrake script that handles this. If enough people think this is useful, I'll put an enhancement proposal on bugzilla for specifying the time bootup should spend on connecting to the internet in MCC. Thanks, Sascha Noyes - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+D0/vgzJdfX+cTW8RAn0IAJ4j6ymyX8nZi/VD3KQkH7vWRXBzWgCfbP55 poO4vKe/3EGT9kV6Lx3nph0= =9ieL -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 29 December 2002 11:41 am, Sascha Noyes wrote: Is there some way to shorten the time that bootup spends on trying to connect to the internet if there is eg. no physical connection. Maybe someone can point me to the Mandrake script that handles this. If enough people think this is useful, I'll put an enhancement proposal on bugzilla for specifying the time bootup should spend on connecting to the internet in MCC. Thanks, Sascha Noyes -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc yes it would be usefull. Also some of us with a bad connection when a connection cant be made everything run's extremely slow. My cable company was really bad for a while and my linux system would just take forever to do anything. Even if the connection came back I would have to reboot my system for it to run normally again. - -- -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- Brook Humphrey Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107 http://www.webmedic.net, [EMAIL PROTECTED], [EMAIL PROTECTED] Holiness unto the Lord -~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+D80unT1TkA6FgPgRAvXxAKCIlcegZ34HKVoNQrK2XQyCFEHlhgCdGo9l 5ke5x74W0NxhJM3/qip0jrI= =aBlp -END PGP SIGNATURE-
Re: [Cooker] internet connection on bootup
Sascha, I'm guessing that you have a box that is sometimes connected sometimes not.. like a laptop. If so a dirty fix would be simply doing chkconfig --level 2345 network off which would then mean a manual start when you do want it to go. Or is this a DHCP timeout? if so passing the -t option (from the man dhcpcd manpage) allows you to set the time it will try to get a lease. I believe but have never tried it this would be set in /etc/sysconfig/network-scripts/ifcfg-ethX where X is your NIC. James On Sun, 2002-12-29 at 11:41, Sascha Noyes wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there some way to shorten the time that bootup spends on trying to connect to the internet if there is eg. no physical connection. Maybe someone can point me to the Mandrake script that handles this. If enough people think this is useful, I'll put an enhancement proposal on bugzilla for specifying the time bootup should spend on connecting to the internet in MCC. Thanks, Sascha Noyes - -- Please encrypt all correspondence. PGP key available from: http://individual.utoronto.ca/noyes/snoyes.asc - -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+D0/vgzJdfX+cTW8RAn0IAJ4j6ymyX8nZi/VD3KQkH7vWRXBzWgCfbP55 poO4vKe/3EGT9kV6Lx3nph0= =9ieL -END PGP SIGNATURE-