Kernel panic. No init found
Hi debs! I have installed Debian Potato 2.2.19pre9 on my laptop. Everything was well, but I had no APM support. I have tried to recompile the Kernel with make menuconfig make-kpkg kernel_image dpkg -i ../.deb But wenn I have rebooted I have got a message "Kernel panic no init found. You can give at boot the option init= ..." The worst is that I get this message for my old (and correct) Kernel, wenn I boot with on the vmlinuz.old Yes, I have read in the Archives of this List that the solution is to add apm=on on the boot line or add the line append "apm=on" in lilo.conf. It's a pity to read this too late... Can somebody help me and give me the data to put after "init=" ? Why can I not boot from my old kernel? Thank you very much Vincent Laisney (Berlin, and France) -- Sent through GMX FreeMail - http://www.gmx.net
Re: Kernel panic. No init found
Hi Peter, Thank you for your answer. Am Samedi 14 Avril 2001 21:26 schrieb Peter Cordes: > On Sat, Apr 14, 2001 at 09:17:03PM +0200, Vincent Laisney wrote: > > Hi debs! > > > > I have installed Debian Potato 2.2.19pre9 on my laptop. Everything was > > well, but I had no APM support. I have tried to recompile the Kernel with > > > > make menuconfig > > make-kpkg kernel_image > > dpkg -i ../.deb > > > > But wenn I have rebooted I have got a message > > "Kernel panic no init found. You can give at boot the option init= ..." > > What does it say before this? Here are the messages: Partition check: hda: hda1 hda2 # it is correct. my root is hda6 apm VFS. Mounted Root (ext2 filesystem) readonly # is the readonly the problem? Freeing unused Kernel memory: 72k freed Kernel Panic: No init found. Try passing init= option the kernel. > > > The worst is that I get this message for my old (and correct) Kernel, > > wenn I boot with on the vmlinuz.old > > > > Yes, I have read in the Archives of this List that the solution is to add > > apm=on on the boot line or add the line append "apm=on" in lilo.conf. > > It's a pity to read this too late... > > lilo append lines are equivalent to putting the command line options in > yourself. Just boot linux apm=on if you want. > > > Can somebody help me and give me the data to put after "init=" ? > > Why can I not boot from my old kernel? > > Most likely the problem is the it's getting the wrong root directory. > specify root= whatever it should be. I have tried with root=/dev/hda6 and it doesnt cure the problem > It's not too likely the /sbin/init > disappeared, unless something really bad happened. init=/bin/bash is > another thing that can work, but no init= line will help until the kernel > find the correct root filesystem. I have controlled. My /sbin/init is there. Thank you very much for any suggestion. I am working booting now with the rescue disk and the root=/dev/hda6 option and it works fine. Vincent Laisney
Re: hardware profiles?
For the different Hardware on different place, there is a solution with the Scheme's of pcmcia-cs. It's easy with Lilo to boot with "home" or "work". And you put into /etc/pcmcia/networks.opt the options for the different places. I didn't try, but I will need it and I've read the scripts and the doc in man pcmcia and it seems to be OK. Vincent Laisney > On Tue, Apr 24, 2001 at 11:23:51AM +0100, Karl E. Jorgensen wrote: > > > Unfortunately this only works if i REBOOT (shock, horror) when docking. > > > > Does anybody out there have any ideas of how I can maintain my up-time > and > > *still* dock/undock to my hearts content? > > That depends...does docking produce a system event of some kind that could > be scripted to change over from one set of networking params to another? > If > so, I would think it would be possible to have the event trigger a script > which: > > o brings down your pcmcia network (if necessary) > o loads the proper module for your dock's ethernet > o brings up the dock's ethernet connection > > (yes, I know that's probably oversimplifying things - I don't have a > docking > station for my vaio yet, so I'm sortof flying blind here - hopefully this > suggestion might get things moving in the right direction) > > -b3 > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- Sent through GMX FreeMail - http://www.gmx.net
ppp- and dns-problem
Hi, I have a problem for the configuration of ppp (pppd) with a combi-card modem+ethernet. I use either ethenet or a ppp-connection with an ISP. I have tried wvdialconfig for the configuration and i could not resolve the domaines names. I have also tried pppconfig (where it is possible to specify a static-dns-server. But it doesn't work. With netstat -rn I get no default line. I have tried to set up directly a route with route add default gw 62.104.196.134 and I get the following error SIOCADDRT: Network is unreachable The problem is maybe that Linux is trying to use eth0 for finding the dns-serveer but the pcmcia card isn't connected to any network. Can somebody help me? Thanks Vincent Laisney -- Sent through GMX FreeMail - http://www.gmx.net
Re: ppp- and dns-problem
> > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > post the full results of netstat -rn and ifconfig Here are the results netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 0 ppp0 192.168.1.0 192.168.1.200 255.255.255.0 UG0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG0 0 0 eth0 ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:98:14:60:E2 inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:10 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:3 Base address:0x300 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:94 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 ppp0 Link encap:Point-to-Point Protocol inet addr:213.7.64.150 P-t-P:62.104.208.43 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 I have done ifconfig eth0 down to shutdown the ethenet network before using ppp and I got the following (correct) routing table Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 0 ppp0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 0 ppp0 with it dns can work. Thank you for your help
Re: ppp- and dns-problem
> For your netstat -r command to work it must be able to resolve to DNS. > wvdial on't setup your DNS when it starts PPP. You have to make sure your > /etc/resolv.conf file reflects to appropriate DNS info for the connection > you're making. Here's what it should look like: > > # /etc/resolv.conf > domain plstn1.sfba.home.com # optional > search plstn1.sfba.home.com. com. > nameserver 24.1.80.33 > nameserver 24.1.80.33 > My /etc/resolv.conf looks like that # eth0 begin nameserver 213.36.80.1 # eth0 end search clairval.com nameserver 62.104.196.134 Both the nameserver of the ppp-isp and of the network are there even that only one is available for each particular case. Is it correct or does it make the dns-process slowly? Thanks > > I switch out this file for the different networks I work from. > > jc > > On Sat, Apr 28, 2001 at 10:17:21PM +0200, Vincent Laisney wrote: > > Hi, > > I have a problem for the configuration of ppp (pppd) with a combi-card > > modem+ethernet. I use either ethenet or a ppp-connection with an ISP. > > I have tried wvdialconfig for the configuration and i could not resolve > > the > > domaines names. I have also tried pppconfig (where it is possible to > > specify > > a static-dns-server. But it doesn't work. With > > netstat -rn > > I get no default line. > > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > > > The problem is maybe that Linux is trying to use eth0 for finding the > > dns-serveer but the pcmcia card isn't connected to any network. > > > > Can somebody help me? > > > > Thanks > > > > Vincent Laisney
Re: ppp- and dns-problem
Am Sonntag, 29. April 2001 01:27 schrieb Peter Cordes: > On Sat, Apr 28, 2001 at 10:17:21PM +0200, Vincent Laisney wrote: > > Hi, > > I have a problem for the configuration of ppp (pppd) with a combi-card > > modem+ethernet. I use either ethenet or a ppp-connection with an ISP. > > I have tried wvdialconfig for the configuration and i could not resolve > > the > > domaines names. I have also tried pppconfig (where it is possible to > > specify > > a static-dns-server. But it doesn't work. With > > netstat -rn > > I get no default line. > > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > BTW, SIOCADDRT == Socket IO Control: Add Route. (io control = ioctl()) > This error happens if the gateway you are trying to add to the routing > table wasn't already reachable through some other entry in the routing > table. i.e. on an ethernet, if you have eth0 with an IP address of > 10.0.0.15, (netmask 255.0.0.0 (/24)), then your routing table before you > add the default route will be: > Destination Gateway Genmask Flags Metric RefUse > Iface 10.0.0.00.0.0.0 255.0.0.0 U 0 0 > 0 eth0 > > If I ran route add default gw 192.168.0.1, it won't work, because the > kernel doesn't know how to reach that host. That makes it pretty hard to > start sending all our packets through it, doesn't it :) > > After running route add default gw 10.0.0.1, it will be: > 10.0.0.00.0.0.0 255.0.0.0 U 0 00 > eth0 0.0.0.0 10.0.0.10.0.0.0 UG0 0 > 0 eth0 > > If you're using ppp, you should just tell pppd to set a default route. It > has an option to do this, called defaultroute. Just add that to your > /etc/ppp/options, or /etc/ppp/peers/filename. > > If you want to manually add a default route with ppp, the gateway you > specify _must_ be the ppp peer, i.e. the IP that ifconfig ppp0 shows as the > Point-to-point IP. (If you already added a non-default route with the > ppp peer as the gateway, you still have to use the ppp peer as the gateway. > There is no way to ask a host that you can't reach directly to forward a > packet for you, since there is no way to tell the first hop router who to > forward to, other than the final destination. Think about it. Or don't if > this isn't what you were trying to do, since it's not easy to understand > unless you know networking :) > > Also, why were you talking about DNS in the start of your message, then > switched to talking about routing. The route command has nothing at all to > do with DNS. It will use DNS if you give host names instead of IPs, but > that's all. The routing configuration affects whether DNS will work or > not, because the servers you specify in /etc/resolv.conf must be reachable, > but that's all there is in terms of interaction between routing and DNS. Thank you for your very informative answer. I couldn't use the dns (and therefore I couldn't do anything in Internet) because the routing table were false. When the ethenet is not running the ppp works now fine for me (I have posted the result of netstat -rn in a preceding message). I have now now two scheme for pcmcia as following (in /etc/pcmcia/network.opts) case "$ADDRESS" in work,*,*,*) # Transceiver selection, for some cards -- see 'man ifport' IF_PORT="auto" # Use /sbin/pump for BOOTP/DHCP? [y/n] PUMP="n" # Host's IP address, netmask, network address, broadcast address IPADDR="192.168.1.200" NETMASK="255.255.255.0" NETWORK="192.168.1.0" BROADCAST="192.168.1.255" GATEWAY="192.168.1.1" DNS_1="213.36.80.1" ;; home,*,*,*|default,*,*,*) #empty definitions IF_PORT="auto" PUMP="n" IPADDR="" NETMASK="" NETWORK="" BROADCAST="" GATEWAY="" DNS_1="" ;; esac and with the "scheme home", ethernet doesn't run and so I can run ppp without to have to shutdown eth0 with ifconfig eth0 down Vincent Laisney
Re: ppp- and dns-problem
Am Sonntag, 29. April 2001 06:15 schrieb marty: > > Here are the results > > > > netstat -rn > > Kernel IP routing table > > Destination Gateway Genmask Flags MSS Window irtt > > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > >0 ppp0 192.168.1.0 192.168.1.200 255.255.255.0 UG0 0 > >0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 > > 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG > > 0 0 0 eth0 > > that last line is a default route to a gateway on the ethernet... > > adding a defaultroute to the dialup will break the routing, because you > can't have two **default** routes... > > do you have a gateway on the ethernet? I understand now. My problem is that with the combi card I had the ethenet configured even if there was no cabling in ethenet port and therefore no gateway. Now with the scheme everything is working fine. Thanks for your help. Vincent Laisney > > if not, bring eth0 back up then do a: > > route del default eth0 > > then dial up the ppp link and either manually add a default route to the > other end of the link or specify defaultroute in /etc/ppp/options and let > it do it for you... > > > Kernel IP routing table > > Destination Gateway Genmask Flags MSS Window irtt > > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > >0 ppp0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 > >0 ppp0 > > your final route table should look something like this: > > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 >0 eth0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 > 0 ppp0 > > later > marty > > "I can't buy what I want because it's free. Can't be what they want > because I'm me." - Corduroy, Pearl Jam
Re: laptop hangs on Alt+Tab
On Saturday 09 June 2001 21:25, Robert Voigt wrote: > I have a Toshiba Satellite 2595CDT and sometimes when I press Alt+Tab to > switch between windows in KDE it hangs. The window list just stays there > after I let go of Alt+Tab. > Sometimes I'm lucky and I can still switch to the console and reboot > safely, but most of those times all buttons and the mouse are frozen and I > can only press reset. > I don't have this problem on my 2 desktop machines which run the same > version of KDE and KDM, and I had this problem on the laptop with previous > versions of KDE too. So I don't think it's a KDE problem. > Has anyone had the same problem or can anyone tell me where to search? You can also try to shut down the X-Server only with Ctrl-Alt-Backspace. If it function it is better for the file system than a reset. HTH Cheers Vincent (Berlin/France)
Kernel panic. No init found
Hi debs! I have installed Debian Potato 2.2.19pre9 on my laptop. Everything was well, but I had no APM support. I have tried to recompile the Kernel with make menuconfig make-kpkg kernel_image dpkg -i ../.deb But wenn I have rebooted I have got a message "Kernel panic no init found. You can give at boot the option init= ..." The worst is that I get this message for my old (and correct) Kernel, wenn I boot with on the vmlinuz.old Yes, I have read in the Archives of this List that the solution is to add apm=on on the boot line or add the line append "apm=on" in lilo.conf. It's a pity to read this too late... Can somebody help me and give me the data to put after "init=" ? Why can I not boot from my old kernel? Thank you very much Vincent Laisney (Berlin, and France) -- Sent through GMX FreeMail - http://www.gmx.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Kernel panic. No init found
Hi Peter, Thank you for your answer. Am Samedi 14 Avril 2001 21:26 schrieb Peter Cordes: > On Sat, Apr 14, 2001 at 09:17:03PM +0200, Vincent Laisney wrote: > > Hi debs! > > > > I have installed Debian Potato 2.2.19pre9 on my laptop. Everything was > > well, but I had no APM support. I have tried to recompile the Kernel with > > > > make menuconfig > > make-kpkg kernel_image > > dpkg -i ../.deb > > > > But wenn I have rebooted I have got a message > > "Kernel panic no init found. You can give at boot the option init= ..." > > What does it say before this? Here are the messages: Partition check: hda: hda1 hda2 # it is correct. my root is hda6 apm VFS. Mounted Root (ext2 filesystem) readonly # is the readonly the problem? Freeing unused Kernel memory: 72k freed Kernel Panic: No init found. Try passing init= option the kernel. > > > The worst is that I get this message for my old (and correct) Kernel, > > wenn I boot with on the vmlinuz.old > > > > Yes, I have read in the Archives of this List that the solution is to add > > apm=on on the boot line or add the line append "apm=on" in lilo.conf. > > It's a pity to read this too late... > > lilo append lines are equivalent to putting the command line options in > yourself. Just boot linux apm=on if you want. > > > Can somebody help me and give me the data to put after "init=" ? > > Why can I not boot from my old kernel? > > Most likely the problem is the it's getting the wrong root directory. > specify root= whatever it should be. I have tried with root=/dev/hda6 and it doesnt cure the problem > It's not too likely the /sbin/init > disappeared, unless something really bad happened. init=/bin/bash is > another thing that can work, but no init= line will help until the kernel > find the correct root filesystem. I have controlled. My /sbin/init is there. Thank you very much for any suggestion. I am working booting now with the rescue disk and the root=/dev/hda6 option and it works fine. Vincent Laisney -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: hardware profiles?
For the different Hardware on different place, there is a solution with the Scheme's of pcmcia-cs. It's easy with Lilo to boot with "home" or "work". And you put into /etc/pcmcia/networks.opt the options for the different places. I didn't try, but I will need it and I've read the scripts and the doc in man pcmcia and it seems to be OK. Vincent Laisney > On Tue, Apr 24, 2001 at 11:23:51AM +0100, Karl E. Jorgensen wrote: > > > Unfortunately this only works if i REBOOT (shock, horror) when docking. > > > > Does anybody out there have any ideas of how I can maintain my up-time > and > > *still* dock/undock to my hearts content? > > That depends...does docking produce a system event of some kind that could > be scripted to change over from one set of networking params to another? > If > so, I would think it would be possible to have the event trigger a script > which: > > o brings down your pcmcia network (if necessary) > o loads the proper module for your dock's ethernet > o brings up the dock's ethernet connection > > (yes, I know that's probably oversimplifying things - I don't have a > docking > station for my vaio yet, so I'm sortof flying blind here - hopefully this > suggestion might get things moving in the right direction) > > -b3 > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- Sent through GMX FreeMail - http://www.gmx.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ppp- and dns-problem
Hi, I have a problem for the configuration of ppp (pppd) with a combi-card modem+ethernet. I use either ethenet or a ppp-connection with an ISP. I have tried wvdialconfig for the configuration and i could not resolve the domaines names. I have also tried pppconfig (where it is possible to specify a static-dns-server. But it doesn't work. With netstat -rn I get no default line. I have tried to set up directly a route with route add default gw 62.104.196.134 and I get the following error SIOCADDRT: Network is unreachable The problem is maybe that Linux is trying to use eth0 for finding the dns-serveer but the pcmcia card isn't connected to any network. Can somebody help me? Thanks Vincent Laisney -- Sent through GMX FreeMail - http://www.gmx.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ppp- and dns-problem
> > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > post the full results of netstat -rn and ifconfig Here are the results netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 0 ppp0 192.168.1.0 192.168.1.200 255.255.255.0 UG0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG0 0 0 eth0 ifconfig eth0 Link encap:Ethernet HWaddr 00:E0:98:14:60:E2 inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:10 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:3 Base address:0x300 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:94 errors:0 dropped:0 overruns:0 frame:0 TX packets:94 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 ppp0 Link encap:Point-to-Point Protocol inet addr:213.7.64.150 P-t-P:62.104.208.43 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 I have done ifconfig eth0 down to shutdown the ethenet network before using ppp and I got the following (correct) routing table Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 0 ppp0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 0 ppp0 with it dns can work. Thank you for your help -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ppp- and dns-problem
> For your netstat -r command to work it must be able to resolve to DNS. > wvdial on't setup your DNS when it starts PPP. You have to make sure your > /etc/resolv.conf file reflects to appropriate DNS info for the connection > you're making. Here's what it should look like: > > # /etc/resolv.conf > domain plstn1.sfba.home.com # optional > search plstn1.sfba.home.com. com. > nameserver 24.1.80.33 > nameserver 24.1.80.33 > My /etc/resolv.conf looks like that # eth0 begin nameserver 213.36.80.1 # eth0 end search clairval.com nameserver 62.104.196.134 Both the nameserver of the ppp-isp and of the network are there even that only one is available for each particular case. Is it correct or does it make the dns-process slowly? Thanks > > I switch out this file for the different networks I work from. > > jc > > On Sat, Apr 28, 2001 at 10:17:21PM +0200, Vincent Laisney wrote: > > Hi, > > I have a problem for the configuration of ppp (pppd) with a combi-card > > modem+ethernet. I use either ethenet or a ppp-connection with an ISP. > > I have tried wvdialconfig for the configuration and i could not resolve > > the > > domaines names. I have also tried pppconfig (where it is possible to > > specify > > a static-dns-server. But it doesn't work. With > > netstat -rn > > I get no default line. > > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > > > The problem is maybe that Linux is trying to use eth0 for finding the > > dns-serveer but the pcmcia card isn't connected to any network. > > > > Can somebody help me? > > > > Thanks > > > > Vincent Laisney -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ppp- and dns-problem
Am Sonntag, 29. April 2001 01:27 schrieb Peter Cordes: > On Sat, Apr 28, 2001 at 10:17:21PM +0200, Vincent Laisney wrote: > > Hi, > > I have a problem for the configuration of ppp (pppd) with a combi-card > > modem+ethernet. I use either ethenet or a ppp-connection with an ISP. > > I have tried wvdialconfig for the configuration and i could not resolve > > the > > domaines names. I have also tried pppconfig (where it is possible to > > specify > > a static-dns-server. But it doesn't work. With > > netstat -rn > > I get no default line. > > I have tried to set up directly a route with > > > > route add default gw 62.104.196.134 > > > > and I get the following error > > > > SIOCADDRT: Network is unreachable > > BTW, SIOCADDRT == Socket IO Control: Add Route. (io control = ioctl()) > This error happens if the gateway you are trying to add to the routing > table wasn't already reachable through some other entry in the routing > table. i.e. on an ethernet, if you have eth0 with an IP address of > 10.0.0.15, (netmask 255.0.0.0 (/24)), then your routing table before you > add the default route will be: > Destination Gateway Genmask Flags Metric RefUse > Iface 10.0.0.00.0.0.0 255.0.0.0 U 0 0 > 0 eth0 > > If I ran route add default gw 192.168.0.1, it won't work, because the > kernel doesn't know how to reach that host. That makes it pretty hard to > start sending all our packets through it, doesn't it :) > > After running route add default gw 10.0.0.1, it will be: > 10.0.0.00.0.0.0 255.0.0.0 U 0 00 > eth0 0.0.0.0 10.0.0.10.0.0.0 UG0 0 > 0 eth0 > > If you're using ppp, you should just tell pppd to set a default route. It > has an option to do this, called defaultroute. Just add that to your > /etc/ppp/options, or /etc/ppp/peers/filename. > > If you want to manually add a default route with ppp, the gateway you > specify _must_ be the ppp peer, i.e. the IP that ifconfig ppp0 shows as the > Point-to-point IP. (If you already added a non-default route with the > ppp peer as the gateway, you still have to use the ppp peer as the gateway. > There is no way to ask a host that you can't reach directly to forward a > packet for you, since there is no way to tell the first hop router who to > forward to, other than the final destination. Think about it. Or don't if > this isn't what you were trying to do, since it's not easy to understand > unless you know networking :) > > Also, why were you talking about DNS in the start of your message, then > switched to talking about routing. The route command has nothing at all to > do with DNS. It will use DNS if you give host names instead of IPs, but > that's all. The routing configuration affects whether DNS will work or > not, because the servers you specify in /etc/resolv.conf must be reachable, > but that's all there is in terms of interaction between routing and DNS. Thank you for your very informative answer. I couldn't use the dns (and therefore I couldn't do anything in Internet) because the routing table were false. When the ethenet is not running the ppp works now fine for me (I have posted the result of netstat -rn in a preceding message). I have now now two scheme for pcmcia as following (in /etc/pcmcia/network.opts) case "$ADDRESS" in work,*,*,*) # Transceiver selection, for some cards -- see 'man ifport' IF_PORT="auto" # Use /sbin/pump for BOOTP/DHCP? [y/n] PUMP="n" # Host's IP address, netmask, network address, broadcast address IPADDR="192.168.1.200" NETMASK="255.255.255.0" NETWORK="192.168.1.0" BROADCAST="192.168.1.255" GATEWAY="192.168.1.1" DNS_1="213.36.80.1" ;; home,*,*,*|default,*,*,*) #empty definitions IF_PORT="auto" PUMP="n" IPADDR="" NETMASK="" NETWORK="" BROADCAST="" GATEWAY="" DNS_1="" ;; esac and with the "scheme home", ethernet doesn't run and so I can run ppp without to have to shutdown eth0 with ifconfig eth0 down Vincent Laisney -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ppp- and dns-problem
Am Sonntag, 29. April 2001 06:15 schrieb marty: > > Here are the results > > > > netstat -rn > > Kernel IP routing table > > Destination Gateway Genmask Flags MSS Window irtt > > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > >0 ppp0 192.168.1.0 192.168.1.200 255.255.255.0 UG0 0 > >0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 > > 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG > > 0 0 0 eth0 > > that last line is a default route to a gateway on the ethernet... > > adding a defaultroute to the dialup will break the routing, because you > can't have two **default** routes... > > do you have a gateway on the ethernet? I understand now. My problem is that with the combi card I had the ethenet configured even if there was no cabling in ethenet port and therefore no gateway. Now with the scheme everything is working fine. Thanks for your help. Vincent Laisney > > if not, bring eth0 back up then do a: > > route del default eth0 > > then dial up the ppp link and either manually add a default route to the > other end of the link or specify defaultroute in /etc/ppp/options and let > it do it for you... > > > Kernel IP routing table > > Destination Gateway Genmask Flags MSS Window irtt > > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > >0 ppp0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 > >0 ppp0 > > your final route table should look something like this: > > Kernel IP routing table > Destination Gateway Genmask Flags MSS Window irtt > Iface 62.104.208.43 0.0.0.0 255.255.255.255 UH0 0 > 0 ppp0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 >0 eth0 0.0.0.0 62.104.208.43 0.0.0.0 UG0 0 > 0 ppp0 > > later > marty > > "I can't buy what I want because it's free. Can't be what they want > because I'm me." - Corduroy, Pearl Jam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: laptop hangs on Alt+Tab
On Saturday 09 June 2001 21:25, Robert Voigt wrote: > I have a Toshiba Satellite 2595CDT and sometimes when I press Alt+Tab to > switch between windows in KDE it hangs. The window list just stays there > after I let go of Alt+Tab. > Sometimes I'm lucky and I can still switch to the console and reboot > safely, but most of those times all buttons and the mouse are frozen and I > can only press reset. > I don't have this problem on my 2 desktop machines which run the same > version of KDE and KDM, and I had this problem on the laptop with previous > versions of KDE too. So I don't think it's a KDE problem. > Has anyone had the same problem or can anyone tell me where to search? You can also try to shut down the X-Server only with Ctrl-Alt-Backspace. If it function it is better for the file system than a reset. HTH Cheers Vincent (Berlin/France) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]