Results 1 to 9 of 9

Thread: Static IP in computer lab

  1. #1
    Join Date
    Apr 2007
    Location
    chicago
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Static IP in computer lab

    OK. . .I think I almost have this, but need a little help.

    I am putting the finishing touches on our computer lab for school. One of the areas I am having a little trouble with is static ips. I have ~30 computers running 9.04. Right now, they are DHCP (just the default when I set them up). There is a W2K3 server that assigns a domain of lab.org and DNS of 10.0.***.* I have also found the proper gateway address.

    What I want is for computer #1 to have an IP of 10.0.***.101, computer #2 to have an IP of *.102, etc. This way, with my pub/priv keypairs it will make it easier to manage everything.

    The problem I have is that when I assign *.101 to computer 1, because of the DHCP, the computer that had *.101 is still active and computer 1 doesn't connect to the internet.

    What am I missing? My guess is that it is something quite simple. Usually is with me.

  2. #2
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP in computer lab

    What has the task of assigning the IP addresses?

    That device needs to be able to reserve the IP addresses used for static allocation.
    Once thats done you need to get the computer with allocated static IP to reboot and get another IP that is not in your static IP pool.

    If whatever is doing your DHCP does not have the ability to restrict IPs from being handed out, then you need to reduce your scope where eg DHCP allocates from 10.10.1.2 to 10.10.1.100 and this is defined in your DNS and then 101 to 254 are statics that are used on your static machines.

    If your reduce your scope size you may still need the other computers to reobtain an IP address thats in the pool

    I do however feel I may have misunderstood the requirement
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  3. #3
    Join Date
    Apr 2007
    Location
    chicago
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Static IP in computer lab

    Yes, you did miss what I was asking for, but your informative post really helped me overcome a hurdle along the way - thank you.

    However, I have (for the most part) accomplished my goal! I have one other problem, but will start a new thread so as not to get anything confused.

  4. #4
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP in computer lab

    Hello


    Good to hear,
    Ill watch for your other post, , misread that and comment on it to.

    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  5. #5
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Static IP in computer lab

    Probably too late for inclusion, but a static lease based on MAC address would probably work... assuming the DHCP server is capable.

    Guess I'll look for the next thread.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  6. #6
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP in computer lab

    Good point also Iowan.

    In DHCP3 server and in microshafts DHCP implementation you can assign the mac to an IP to make sure its always given to the same machine, however, would it be right to say that it is still DHCP and not a statically assigned IP address at that point
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  7. #7
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Static IP in computer lab

    Quote Originally Posted by Iowan View Post
    Probably too late for inclusion, but a static lease based on MAC address would probably work... assuming the DHCP server is capable.

    Guess I'll look for the next thread.
    That's similar to what I was thinking. I normally have my main router to assign IP addresses that are associated with a particular MAC address. It might be necessary to do what Windows would call ipconfig /relase and ipconfg /renew if you change the allocation while the machine is connected. (The Ubuntu equivalent eludes my memory at the moment, aaargh!)
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  8. #8
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Static IP in computer lab

    hello

    to release the lease its

    Code:
    sudo dhclient -r
    to renew its

    Code:
    sudo dhclient
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  9. #9
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Static IP in computer lab

    Quote Originally Posted by jonobr View Post
    however, would it be right to say that it is still DHCP and not a statically assigned IP address at that point
    It's managed by DHCP server, so I call it a "lease" although it's also "static". If DHCP server fails, the machine won't get an address. (maybe arguable...). A static lease also benefits by retrieving DNS server info, gateway, etc., from DHCP server... just like other DHCP clients.

    It's also worth mentioning that a static lease address should be outside the DHCP server's address pool.
    Last edited by Iowan; August 12th, 2009 at 11:36 PM.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

Bookmarks

Posting Permissions

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