Results 1 to 3 of 3

Thread: Setting static IP on LAN

  1. #1

    Question Setting static IP on LAN


    Currently I have Fedora 10 installed on my machine. This machine is on my LAN which has a few other computers. During the OS install I opted out for a dynamic IP via DHCP but now I want to change the setup and set a static IP for just this particular machine -- all others still use dynamic IPs.

    I've done some reading and I think I can accomplish this by setting an IP address which is outside of my router's DHCP address range. This way all other devices will still get dynamic IPs from the range and this Fedora machine will get a static one with no conflicts.

    My issue is how to get this set using the command line -- I don't want to use the GUI.

  2. #2
    Join Date
    Dec 2004
    I am not quite familir with Fedora's layout but most likely it would be /etc/sysconfig/network.


  3. #3
    The file you want is:
    where "eth0" is most likely the name of your device

    Here are the contents you want to set:
    then this command as root:
    service networking restart
    Quick explanation:
    ONBOOT=yes => Make the interface come up on system boot
    BOOTPROTO=none => don't use any dynamic addressing schemes
    IPADDR => set this to your desired IP address
    NETMASK => set this to your netmask (make sure that it will allow the other machines in your DHCP poll and vis-versa)

    Typically, Fedora will also have a HWADDR=XX:XX:XX:XX:XX:XX line in there too, so you can leave that in there as well, but it probably won't be necessary.

    Hope this helps!
    63,000 bugs in the code, 63,000 bugs,
    ya get 1 whacked with a service pack,
    now there's 63,005 bugs in the code!!

Similar Threads

  1. setting static IP on network with no static IP address from internet provider?
    By solvetek in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 11-16-2011, 07:23 AM
  2. static route
    By aliko in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-30-2002, 01:16 PM
  3. DNS, my domain name, and static IP
    By Rastar in forum Linux - Hardware, Networking & Security
    Replies: 4
    Last Post: 01-04-2002, 12:51 PM
  4. sound static
    By agar in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 12-27-2001, 08:22 PM
  5. Static and DHCP
    By Aaron_Adams in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 11-13-2001, 10:57 PM


Posting Permissions

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