Find the answer to your Linux question:
Results 1 to 4 of 4
I'm a Linux newbie. I've had Debian installed for a while now with MLDonkey and NFS to share a folder. It's perfect as my P2P download server, except that every ...
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    2

    Changing local IP address driving me crazy

    I'm a Linux newbie. I've had Debian installed for a while now with MLDonkey and NFS to share a folder. It's perfect as my P2P download server, except that every time my router restarts, the local IP addresses of both my Debian box and my iBook change.

    Whenever this happens, I have to modify the exports file for NFS and change the remote access string for MLDonkey to get my convenient remote access and control for my downloads running smoothly again. I don't know of any other way to recover from a router restart than this.

    How can I keep this problem from happening? Any solution is fine: automatic reconfiguration when the IP changes, or locking the IP somehow, or even changing the whole system around.

  2. #2
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    If your Debian computer is always switched on, can you simply use a static IP address instead of using DHCP from your router?

    e.g. this will set the IP info you would normally get from DHCP
    Code:
    ifconfig eth0 192.168.1.5 netmask 255.255.255.0
    route add default gw 192.168.1.1
    Of course change the IP's relevant to your environment
    Registered Linux user #389109
    My Semi-Linux Blog

  3. #3
    Just Joined!
    Join Date
    Jan 2005
    Location
    Topeka, KS, USA
    Posts
    88
    Unfortunately, I'm not a network guru, but I would think that Debian is sophisticated enough to remember this as long as you use static configuration. Also, there might be a way that the router can be reconfigured to give your devices a set address based on their MAC.

  4. #4
    Just Joined!
    Join Date
    Nov 2005
    Posts
    2
    Thanks a lot, stokes, that seems to have worked perfectly!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •