Find the answer to your Linux question:
Results 1 to 5 of 5
Hi folks, Fedora 12 64bit What will be the correct steps changing dynamic IP to static IP on F12 console, instead of on Gnome running; System -> Administration -> Network ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,763

    Change dynamic ip to static ip


    Hi folks,


    Fedora 12 64bit


    What will be the correct steps changing dynamic IP to static IP on F12 console, instead of on Gnome running;

    System -> Administration -> Network -> Edit, etc.
    ???


    I made following test;

    Edited ifcfg-eth0

    $ cat /etc/sysconfig/network-scripts/ifcfg-eth0
    Code:
    # Attansic Technology Corp. Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller
    DEVICE=eth0
    BOOTPROTO=static
    IPADDR=192.168.0.200
    NETMASK=255.255.255.0
    PEERDNS=yes
    TYPE=Ethernet
    HWADDR=00:26:18:44:B6:1A
    ONBOOT=yes

    # /etc/init.d/network restart
    Code:
    Shutting down interface eth0:                              [  OK  ]
    Shutting down loopback interface:                          [  OK  ]
    Bringing up loopback interface:                            [  OK  ]
    Bringing up interface eth0:                                [  OK  ]
    Bringing up interface eth0.origin_20100211:  
    Determining IP information for eth0...dhclient(25343) is already running - exiting. 
    
    This version of ISC DHCP is based on the release available
    on ftp.isc.org.  Features have been added and other changes
    have been made to the base software release in order to make
    it work better with this distribution.
    
    Please report for this software via the Red Hat Bugzilla site:
        http://bugzilla.redhat.com
    
    exiting.
     failed.
                                                               [FAILED]
    Failed.


    Then I took further step;

    Edited rc.local as follows;

    $ cat /etc/rc.d/rc.local
    Code:
    #!/bin/sh
    #
    # This script will be executed *after* all the other init scripts.
    # You can put your own initialization stuff in here if you don't
    # want to do the full Sys V style init stuff.
    
    touch /var/lock/subsys/local
    ifconfig eth0 192.168.0.200
    netmask 255.255.255.0
    route add default gw 192.168.0.1

    Rebooted PC. Then it worked.


    Please advise. TIA


    B.R.
    satimis

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    your error is in there, seems pretty obvious that it is trying to load the backed up file
    Code:
    Bringing up interface eth0.origin_20100211:  
    Determining IP information for eth0...dhclient(25343) is already running - exiting.

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,763
    Quote Originally Posted by coopstah13 View Post
    your error is in there, seems pretty obvious that it is trying to load the backed up file
    Code:
    Bringing up interface eth0.origin_20100211:  
    Determining IP information for eth0...dhclient(25343) is already running - exiting.
    Hi coopstah13,

    Thanks for your advice.

    Even after removing that backup file it still can't work without the file rc.local.

    B.R.
    satimis

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    mine works just fine, it is like yours, only thing I don't have is about peerdns, not sure what that is, try taking it out

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,763
    Quote Originally Posted by coopstah13 View Post
    mine works just fine, it is like yours, only thing I don't have is about peerdns, not sure what that is, try taking it out
    Hi coopstah13,

    peerdns was added later. Before adding it networking also failed.

    Now I did it through GUI to save time and effort.

    Thanks for your help.

    B.R.
    satimis

Posting Permissions

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