Find the answer to your Linux question:
Results 1 to 4 of 4
I have a problem with internet i can't change the ip....
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Maybe Heaven
    Posts
    15

    How change the ip? with DHCP.



    I have a problem with internet i can't change the ip.

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Could you explain your problem in a bit more detail than that?

    If you're trying to get a different dynamic IP address, one way is to try to force the dhcp server to do so.

    For example, in SuSE the dhcp client is dhcpcd. I believe the command
    Code:
    dhcpcd -k
    should do what you want. It's not entirely clear to me from the man pages, but I think you may need to restart it after doing so. (Make sure one isn't already running first.)

    I think most other distros use dhclient, so if you fall into that category have a look at its man pages.

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    1
    In Debian, the dhcp client (at least mine) is called dhclient. And if your eth0 interface is configured to get the ip automatically by dhcp, you just type

    ifdown eth0 (or the interface you use for it)
    ifup eth0

    and that should change the ip.

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    Maybe Heaven
    Posts
    15
    thanks

Posting Permissions

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