Jump to content

artlk

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by artlk

  1. where i need to set idle n option in centos server pls explain and if it pppo is drop after timer then link is down but what happend when link is up then this timer how works i am get little bit confuse

  2. you mean to say that if ppp0 is time out after 3 min then i have to run my script right but one thing i like to share when i disconnect phone line from modem then if i checked link status by /sbin/adsl-status it shows ppp0 is connected and after 2 min if i checked status then it shows error as "link is attached to ppp0 but ppp0 is down " in that case if i set gateway as 10.10.1.169 then it set but it automatically removed again

  3. If you don't have an idle timeout, then your ppp0 connection will stay active. Which is what you have now. If you have an idle timeout set for 3 minutes, then if nothing happens for 3 minutes, the connection will then drop and your system will work how you want it.

     

    So you need to do this.

  4. I expect it won't do it automatically, because it seems you do not have a ppp0 idle timeout. Your simulation with pulling the telephone cable shows that this is the case. So you need to set some kind of idle timeout for ppp0, and then perhaps that will fix your problem.

  5. Hi

     

    you are right but when i make /sbin/ifdown ppp0(here link is connected to adsl modem) then the server take default gateway 10.10.1.169 and net start in centos server but what do you think if i dont remove telephone line from modem and if real condition occur i.e net is down from bsnl then in that case default gateway 10.10.1.169 is set automatically or not

  6. As I said, just removing the telephone line, CentOS still thinks the ppp0 connection is active, and it's not responding, and so this is your problem. Ideally ppp0 should disconnect when there is no longer an internet connection. I don't have such a setup to be able to tell you what to do. You need some kind of timeout for ppp0 when it's not in use, or when no traffic is able to go across the link. This would then initiate an ifdown and you would have the default route via your Windows machine.

     

    Maybe this google search for an idle timeout will help give you the info you need:

     

    https://www.google.co.uk/?gws_rd=ssl#q=linux+ppp0+idle+timeout

  7. Thanks for reply

     

    i try to achieve that if my internet from centos server is down then i have to take internet from another window pc on which net is connected .

    as i told i have centos on which 2 nic card one etho connected to eth0 and bsnl isp line connected to eth1 via adsl modem.

    set default gateway ip 10.10.1.169 (this is ip of window pc on which net is connected) in /etc/sysconfig/network file when i make /sbin/ifdown ppp0(ppp0 is bsnl link when bsnl link is working) then the server take default gateway 10.10.1.169 and net start in centos server but when

    i remove telepone line from modem then default gateway ip 10.10.1.169 is not set ,if i manually set default gateway to 10.10.1.169 it set checked by route -n but after 3-4 min it is remove automatically pls suggest what is wrong and what i have to do

  8. Hi

     

    i have 2 nic connected to centos server etho to lan and eth1 to bsnl isp

    and set default gateway ip 10.10.1.169 in /etc/sysconfig/network file when i make /sbin/ifdown ppp0 then the server take default gateway 10.10.1.169 but when

    i remove telepone line from modem then default gateway ip 10.10.1.169 is not set , pls suggest what is wrong and what i have to do

×
×
  • Create New...