Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

quick inet reset

  • 20-08-2003 5:55am
    #1
    Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭


    My internet connection goes down every night if I have a certain application running when my dynmaic Ip address is reassigned. Unfortunate enough, but not an issue.
    I'm looking for a quick way to reset the connection without either rebooting or re-running the mandrake internet connection wizard, which makes me feel all inadequate as well as taking far too much time.

    ifconfig eth0 down and ifconfig eth0 up don't do the trick.

    Is there something along the lines of release/renew I can type, or even a few commands I can throw into a script to reset the connection quickly?


Comments

  • Registered Users, Registered Users 2 Posts: 2,763 ✭✭✭niallb


    Hi,
    how are you connecting to the internet?
    Who is reassigning your IP?
    What is the application (if you can say)?
    Are you runnning a firewall?
    Do you know which one?

    If you're running mandrake and the interface
    is normally configured for DHCP, you'll find
    that ifdown eth0 and ifup eth0
    will probably be closer to what you are trying to do.

    You shouldn't have to rerun the connection wizard!
    Pass on a few details and we'll get it automated.

    If you're running a firewall, it's just possible that your
    connection is still up but your new IP address is forbidden
    from using it.
    Reinitialising the firewall in this case would be the better way to go.

    Hope that gets you closer,
    NiallB.


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    killall dhcpcd && ifconfig eth0 0.0.0.0 && dhcpcd eth0


  • Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭pickarooney


    Anything that begins will killall has got to be good! Will try it tomorrow morning, assuming it goes down again.

    I don't have a firewall, and I don't quite know how ip addresses are reassigned, but it happens in the dead of night.

    I'm connecting via a cable modem (realtek 8139 ethernet card).
    The application is bittorrent, which is designed in such a way as to hog every last bit of available upload bandwidth. I think it interferes with whatever sorcery retrieves the new IP address each night, so my old IP address is no longer valid and no new one is assigned.

    Easy enough to find out, by running ifconfig at night and again the next morning, see if the address is the same.

    Then just find out what time it goes down and at/cronjob the dhcpcd command.

    Mos' likely.

    Thanks for the hints, lads. :)


  • Closed Accounts Posts: 5,564 ✭✭✭Typedef


    Your cable provider will assign an ip to your ethernet card via dhcp.[1]

    So most likely this ip is being refreshed on you and it's buggering your download.

    I'm thinking there's sfa you can do about that from the client side.

    You should probably start a download just 'after' you get an ip... and then be prepaired for your isp to bugger that ip at a specified time each night. again ==>[1]

    [1]I'm guessing.


  • Closed Accounts Posts: 157 ✭✭BenH


    Originally posted by pickarooney
    Anything that begins will killall has got to be good!

    Bit OT but:

    If oyu think killall is good, try kill -9 "PID" against a remote user :D


  • Advertisement
  • Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭pickarooney


    Originally posted by Typedef
    Your cable provider will assign an ip to your ethernet card via dhcp.[1]

    So most likely this ip is being refreshed on you and it's buggering your download.

    I'm thinking there's sfa you can do about that from the client side.

    You should probably start a download just 'after' you get an ip... and then be prepaired for your isp to bugger that ip at a specified time each night. again ==>[1]

    [1]I'm guessing.

    The downloads will resume themselves like zombies once they get some IP flesh.
    I think.
    They're nice that way.


  • Registered Users, Registered Users 2 Posts: 2,763 ✭✭✭niallb


    As you're using mandrake, you won't find a dhcpcd running.
    Mandrake uses dhclient instead. Careful about running it
    without arguments though. If you're running X, it can lock
    your session up completely.


  • Moderators, Arts Moderators Posts: 35,788 Mod ✭✭✭✭pickarooney


    Originally posted by niallb
    As you're using mandrake, you won't find a dhcpcd running.
    Mandrake uses dhclient instead. Careful about running it
    without arguments though. If you're running X, it can lock
    your session up completely.

    Just found that out ;) ifup worked a treat though :)


Advertisement