Re: Requesting new IP address RH 9

From: Matthew Saltzman (mjs_at_ces.clemson.edu)
Date: 01/11/04

  • Next message: Roger Beever: "Re: How to switch between gnome and kde?"
    To: RedHat List <redhat-list@redhat.com>
    Date: Sat, 10 Jan 2004 18:10:09 -0500 (EST)
    
    

    On Fri, 9 Jan 2004, John Nichel wrote:

    > Hi,
    >
    > I'm trying to get one of my RH boxes to request a new IP address from
    > the upstream DHCP server, but I've run into a snag. I've tried
    > restarting the network, and using ifdown/ifup for the particular network
    > card, but I keep getting the same IP. I seem to remember a command in
    > RH 7.x like 'dhcpcd', but it doesn't seem to be installed with RH 9, and
    > I can't find a package for it. I've googled, but can't find anything

    The DHCP client package in RH9 is dhclient-3.0pl2-6.14. If that's
    installed, you should only need to run redhat-config-network and check
    that you want to get IP settings using DHCP.

    > that I haven't already tried to give me a NEW ip address (I don't want
    > to get the same one).

    As others have pointed out, if you were getting your IP from DHCP before,
    you probably won't get a new address when you restart the interface. If
    you had a static address before, you *should* get a new address when you
    DHCP for it. The only reason I can think of that that wouldn't happen
    would be if you actually were using a DHCP address (maybe copied from a
    working DCHP on the Windows side of a dual boot) but were storing it
    statically because you hadn't figured out how to DHCP on the Linux side.

    There is a way to force-relinquish a DHCP lease (read the dhclient man
    page), but I don't think that will guarantee that you don't get the same
    IP on the next request.

    -- 
    		Matthew Saltzman
    Clemson University Math Sciences
    mjs AT clemson DOT edu
    http://www.math.clemson.edu/~mjs
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Roger Beever: "Re: How to switch between gnome and kde?"

    Relevant Pages

    • Re: DHCP for multiple subnets (was: Re: Routing and bandwidth problem)
      ... >> The DHCP server shouldn't care what interface the request came in on, ... >> rather it looks at the source network of the request. ... > for the DHCP server? ...
      (Fedora)
    • Re: Recommendation for a wireless router in a small business environme
      ... It's not "passing on the request". ... Rather the DHCP client lease broadcast ... I used to use that on an old LinkSys router until a hardware ... Also that DLink product is a router which he ...
      (microsoft.public.windows.server.general)
    • Re: Wireless router losing Internet connection (DHCP problem)
      ... I've now faxed a support request to Hawking (for ... an existing lease. ... On basic cable modem service, Comcast will only hand out one client IP, so ... it won't hand out a second DHCP lease while a first lease is still active. ...
      (alt.internet.wireless)
    • Re: iptables has amnesia :-)
      ... lease was renewed. ... This goes back to the DHCP specification that says that the ... It's been a year or so since I was working on debugging DHCP clients in other systems, but the way it is supposed to work is that for a renewal, the client should request it's current address.... ...
      (Fedora)
    • Re: DEC workstation and DHCP
      ... I think the solution is to change my dhcp client and to use ... > It sounds as though the DHCP request you are broadcasting doesn't reach the ... > server, or the reply doesn't get back. ...
      (comp.sys.dec)