Re: DHCP with Static Addresses

From: H.S. (hs.samix_at_gmail.com)
Date: 11/28/05

  • Next message: Edward J. Shornock: "Re: Mutt & 2 accounts"
    To: debian-user@lists.debian.org
    Date:  Sun, 27 Nov 2005 21:53:38 -0500
    
    

    Jim McCloskey wrote:
    > |> o printing to one of the machines running CUPS ... again, I must
    > |> specify the addr of the print server machine
    >
    > This was why I wanted to assign a fixed address to my desktop machine at home---
    > it has a printer on the parallel port and it serves as printserver for all of
    > the other machines that use the home network (laptops mostly).
    >
    > But this very simple solution works here. I just have in /etc/network/interfaces:
    >
    > iface eth0 inet static
    > address 192.168.1.100
    > network 192.168.1.0
    > netmask 255.255.255.0
    > broadcast 192.168.1.255
    > gateway 192.168.1.1
    >
    > and the DHCP server in the Linksys router (a Wireless-B) is happy to always assign
    > the 192.168.1.100 address to the machine in question.

    No, DHCP is doing nothing in this. You have given your machine a fixed
    IP address in your LAN and it works perfectly.

    Here is what I did to give a machine (laptop) a fixed DHCP address:

    In the machine which acts as a router and DHCP server, I have this para
    in /etc/dhcpd.conf for my laptop:
    #added by HS,08May2005, to assign fixed address to the Dell laptop.
    #info from http://www.siliconvalleyccie.com/linux-hn/dchp.htm
    host red {
    hardware ethernet XY:AB:CD:EF:GH:IJ;
    fixed-address 192.168.0.120;
    }

    Where XY:AB:CD:EF:GH:IJ is the mac address of the interface card of the
    laptop and 192.168.0.120 is the IP address I want DHCP server to assign
    to the laptop and "red" is the hostname given to the laptop. The
    hostname is in combination with this line in the dhcpd.conf file:
    option domain-name "myhome.domain";

    which makes red.myhome.domain the complete domain name of the laptop.

    IIRC, I used this method so that the laptop may be configured to always
    look for an address from a DHCP server whether it was at my school or at
    home or anywhere else where a DHCP server was running. Having a fixed IP
    address was not working in that scenario then. Now, I guess, there are
    other more modern methods to make a laptop perfectly mobile in Linux.

    Let me know if you have any more questions.
    ->HS

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Edward J. Shornock: "Re: Mutt & 2 accounts"

    Relevant Pages

    • Re: Laptop DHCP problems
      ... > I have a laptop, I have a DHCP server, in tty12 I display all the log ... In tty12 I see the DHCPREQUEST and the DHCPACK when the laptop ... Especially after updating the NT boxen to 2K, some of the NICs ...
      (alt.os.linux)
    • RE: DHCP problems w/ laptop
      ... the laptop and DHCP server plug into. ... Could also be a sign that the nic for the laptop is going ... But work on the switch first. ... and the lease expires - which is what is typically ...
      (microsoft.public.win2000.networking)
    • netgear wireless dsl + laptop problem
      ... contact with a DHCP server, ... >laptop to the correct settings then I still can not get ... >although I can ping the router, ...
      (microsoft.public.windowsxp.network_web)
    • Re: Home Networking with XP Prof.
      ... >>He's getting an APIPA address so there is no DHCP server found. ... >>set a manual IP address on the laptop or install a DHCP server. ... >>method would be to set up Internet Connection Sharing on the desktop. ... > Internet Connection Sharing service enabled on the desktop? ...
      (microsoft.public.windowsxp.network_web)
    • Re: DHCP configuration
      ... and to serve as DHCP server to my LAN. ... option domain-name "mydomain.org"; ... Brian Richardson ...
      (Fedora)