LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 11-16-2008, 01:04 PM   #1
cdgtcc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
IP configuration issue


Hey guys I'm new here. I have a very interesting problem. I've messed around lightly with Linux for the past few years, I've never ran in to this type of issue though. I just installed Fedora 9, and I statically setup the IP address to use. However, after the system loads, and I login, its using a dynamic IP from my Linksys router. No matter how I set the IP statically, it pulls a dynamic IP. Below is a copy of my ifcfg-eth0 file. I can't see why this would pull a dynamic IP.

Thanks for all the help guys in advance!


# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:17:31:04:35:48
IPADDR=192.168.1.14
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=no
DNS1=192.168.1.1
NM_CONTROLLED=
 
Old 11-16-2008, 01:31 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
sounds like that's NetworkManager taking over through the NMApplet in your system tray in gnome? F8 / F9 didn't really seem to care about making the two systems make any sense, something that's much better in, say, Ubuntu 8.10. So if you're happy without the semi-patronising stuff that NM does to try to be more user friendly and flexible, just disable it.
 
Old 11-16-2008, 01:44 PM   #3
vaderj
LQ Newbie
 
Registered: Jan 2005
Location: fargo
Distribution: Slack man since ver 3
Posts: 9

Rep: Reputation: 0
Network manager give me problems also, and most of these gui workaround tools drive me crazy anyway because they never work like they are supposed to.
What I do on all of my systems is setup a little script that runs last, that closes all the interfaces down, brings whichever one i want up, and sets all the options there.
iwconfig, ifconfig, and route to get everything the way its supposed to be.
 
Old 11-16-2008, 02:57 PM   #4
cdgtcc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I actually didn't install any GUI on this install. This is just a basic install with no GUI. Could network manager still be an issue?
 
Old 11-16-2008, 03:13 PM   #5
vaderj
LQ Newbie
 
Registered: Jan 2005
Location: fargo
Distribution: Slack man since ver 3
Posts: 9

Rep: Reputation: 0
doubtful.
make/put into a script that uses :

ifconfig eth0 down
ifconfig eth0 up 192.168.1.1
route add default gw 192.168.1.1

im asuming that you are not having problems with resolv.conf sticking ... i cant remember what distro, but i had one that reset the resolv.conf every boot and i had to throw an echo nameserver 192.168.1.1 > /etc/resolv.conf into my startup script.
 
Old 11-16-2008, 03:55 PM   #6
cdgtcc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
My resolve.conf file seems fine. Its just no matter what I do the IP doesn't stick. Shouldnt the ifconfig eth0 up command be the IP i want of .14?
 
Old 11-16-2008, 04:10 PM   #7
cdgtcc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I just stopped NetworkManager via webmin, rebooted, now I cant connect to it remotely. I'm at work, Ill have to check it when I get home.
 
Old 11-16-2008, 05:45 PM   #8
vaderj
LQ Newbie
 
Registered: Jan 2005
Location: fargo
Distribution: Slack man since ver 3
Posts: 9

Rep: Reputation: 0
the ifconfig command is what you use to control your network interfaces; the UP and DOWN commands (no caps) are tell ifconfig to startUP or shutDOWN the specified interface. the ipaddress you specify afterwards is the ip that you want that specific interface (network card) to have, so yes, it should be your .14 (192.168.1.14)
ifconfig, route, ping, traceroute are all utilities you should familiarize your self with as a bare minimum if you are going to connect any device to a network, they are all fairly simple
 
Old 11-16-2008, 06:03 PM   #9
cdgtcc
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vaderj View Post
the ifconfig command is what you use to control your network interfaces; the UP and DOWN commands (no caps) are tell ifconfig to startUP or shutDOWN the specified interface. the ipaddress you specify afterwards is the ip that you want that specific interface (network card) to have, so yes, it should be your .14 (192.168.1.14)
ifconfig, route, ping, traceroute are all utilities you should familiarize your self with as a bare minimum if you are going to connect any device to a network, they are all fairly simple
I do understand those commands listed, I was just verifying what was being given to me. However I dont see what those commands have to do with the machine taking a dynamic ip other then ifconfig.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue during the SSL Configuration???? ajeetraina Linux - Server 0 12-19-2007 08:22 AM
performance/configuration issue... ferradura Linux - Kernel 4 05-16-2007 09:34 PM
UPS configuration issue wslyhbb Linux - Hardware 1 11-18-2006 08:47 PM
HTTPD configuration issue rblampain Linux - General 4 08-14-2005 12:19 AM
CUPS Configuration Issue Crashed_Again Linux - Software 3 01-21-2003 04:43 PM


All times are GMT -5. The time now is 08:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration