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 ...
- 02-11-2010 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
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-eth0Code:# 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 restartFailed.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]
Then I took further step;
Edited rc.local as follows;
$ cat /etc/rc.d/rc.localCode:#!/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
- 02-11-2010 #2
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.
- 02-11-2010 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
- 02-11-2010 #4
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
- 02-12-2010 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546


Reply With Quote

