LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 02-22-2007, 11:54 AM   #1
linuxuser00
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Rep: Reputation: 0
IP info won't save


I'm using RedHat 7.2. Currently this is what my ifcfg-eth0 file looks like...

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.45.15
NETMASK=255.255.255.0
NETWORK=192.168.45.0
BROADCAST=192.168.45.255
ONBOOT=yes


Here's my dilema. The information in the file saves, but, when the system boots up and I run "ifconfig eth0" nothing is there. I have to manually enter in the information even though it's in the ifcfg-eth0 file. Thoughts? Suggestions?

Thanks,

linuxuser00
 
Old 02-22-2007, 12:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
are you actually starting the network services on boot? does "/etc/init.d/network restart" work? if so, run "chkconfig --levels 35 network on" to make it start on boot. note that the ONBOOT option is only relevant for that interface, not networking as a whole.
 
Old 02-22-2007, 01:43 PM   #3
linuxuser00
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
are you actually starting the network services on boot? does "/etc/init.d/network restart" work? if so, run "chkconfig --levels 35 network on" to make it start on boot. note that the ONBOOT option is only relevant for that interface, not networking as a whole.
I tried "/etc/init.d/network" and it failed. Gave me lots of error messages. Here are a few:

ERROR: Can't change MAC: interface up or not permission: Device or resource busy
/etc/init.d/network: network-functions: command not found
/etc/init.d/network: check_device_down: command not found
Current MAC: 00:0C:33:ED:21:AB...this is eth0
Faked MAC: 00:0C:33:ED:21:AB
MACs are the same!!


When I reboot the system the Current MAC and Faked MAC are different. The Current MAC address listed doesn't match any of the interfaces. The Faked MAC address listed is for eth0. I also noticed right after the "Faked MAC" line I got the following error message:

/etc/rc3.d/S10network: network-functions: command not found

I'm not sure what to do and, if you haven't already guessed, I don't have a lot of experience w/Linux.

Not sure if this has anything to do with this. In the /etc/init.d/network file I found the following line:

cd /etc/sysconfig/network-scripts
/usr/local/bin/macchanger -m 00:0C:33:ED:21:AB eth0
.network functions


thanks again for your help
 
Old 02-22-2007, 02:48 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
are you runnign this as root? never seen macchanger before...

btw, you do realise that redhat 7.2 is VERY VERY old now, and you shoudl install somethign less than 7 years old if possible?
 
Old 02-22-2007, 04:10 PM   #5
linuxuser00
LQ Newbie
 
Registered: Dec 2006
Posts: 10

Original Poster
Rep: Reputation: 0
yes, I know 7.2 is old and yes, i'm running this as root. do you have any suggestions other than upgrading?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
save info in dated files va1damar Linux - Newbie 1 10-30-2006 11:50 AM
info problem "info: dir: No such file or directory" EAD Linux - Software 0 03-22-2006 02:16 PM
memry slot info and used slot info arunka Programming 5 02-09-2006 09:17 AM
Convert an info file(bash.info.gz) to a single html file Darwish Linux - Software 2 09-24-2005 06:51 AM
/etc/hosts won't save my info... nuzzy Linux - Networking 2 05-01-2003 07:36 PM


All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration