LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-22-2008, 06:21 PM   #1
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Rep: Reputation: 15
Fedora 9: Problems after removing Network Manager


I'm trying to set a static IP address in Fedora 9. After Network Manager kept getting in my way, I removed it (yum remove networkmanager). I prefer using the command line.

The weird problem I'm having is that every time I reboot my computer, the interface of my network card increments by 1. So, eth0 becomes eth1, eth2, eth3, and so on. Needless to say this is rather annoying. And I'm now up to eth24:

# /sbin/ifconfig -a

eth24 Link encap:Ethernet HWaddr 00:00:6C:7F:FB:4F
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::200:6cff:fe7f:fb4f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4455 errors:0 dropped:0 overruns:0 frame:0
TX packets:2587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2483446 (2.3 MiB) TX bytes:414372 (404.6 KiB)
Interrupt:23 Base address:0xa000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2734 errors:0 dropped:0 overruns:0 frame:0
TX packets:2734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:149296 (145.7 KiB) TX bytes:149296 (145.7 KiB)


I'm able to get onto the internet only by renaming ifcfg-eth0 to something like ifcfg-eth24 and changing the DEVICE=eth0 line. My ifcfg-eth0 is as follows:

# nVidia Corporation MCP61 Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:00:6c:b2:9f:79
ONBOOT=yes
TYPE=Ethernet
IPADDR=192.168.1.10
NETWORK=192.168.1.0
NETMASK=255.255.255.0
BROADCAST=192.168.1.255
GATEWAY=192.168.1.5
NM_CONTROLLED=no



So what's going on here?
 
Old 09-22-2008, 06:22 PM   #2
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
BTW, forgot to mention that I disabled networkmanager in chkconfig and enabled network. So I didn't miss that step.
 
Old 09-22-2008, 06:58 PM   #3
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Oh and I've set BOOTPROTO=static. Somewhere along the way that must have been set to none with the tinkering I was doing.
 
Old 09-22-2008, 07:10 PM   #4
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Still googling this. Apparently this has something to do with the persistent net rules in /etc/udev. I'm looking at /etc/udev/rules.d/70-persistent-net.rules and am a bit baffled. It seems to be finding a different MAC address for my NIC on each reboot. Not going to post all 24 entries, but enough so you get an idea:


# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# nVidia Corporation MCP61 Ethernet (rule written by anaconda)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:b2:9f:79", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:e8:2f:4d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:8e:02:80", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:a0:29:8e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:d5:f2:be", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:6b:42:e2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"

# PCI device 0x10de:0x03ef (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:6c:3e:24:41", ATTR{type}=="1", KERNEL=="eth*", NAME="eth6
 
Old 09-22-2008, 07:38 PM   #5
jdw52
LQ Newbie
 
Registered: Aug 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Ok...I've implemented an ugly hack to fix what seems to be a bug.

In /etc/udev/rules.d, I renamed 75-persistent-net-generator.rules to keep it from getting read. I then edited 70-persistent-net.rules to remove the eth1, eth2 lines. After a reboot my interface is now at eth0 and I don't seem to have any problems getting out to the internet. This will probably bite me when I go to add a second NIC someday having completely forgotten having done this.

If someone familiar with this problem could explain what's going on and perhaps propose a more elegant solution, I'd appreciate it. I admit my enthusiasm goes out the window when I learn it's a bug, not a learning situation and I have a ton of work that needs to get done.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with the network manager ddonnie Linux - Newbie 3 09-03-2008 06:59 AM
Exclude PPC6800 phone from Network Manager - Fedora 9 paulhoop Linux - Networking 1 08-26-2008 08:08 AM
Network Manager Problems Pauli Linux - Software 0 01-17-2008 10:45 PM
Network Manager in Fedora 8 Mukundan Linux - Newbie 2 12-11-2007 12:56 AM
Fedora 7 Network Manager 3rdKey Fedora 3 06-27-2007 09:18 PM


All times are GMT -5. The time now is 05:27 AM.

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