LinuxQuestions.org
Help answer threads with 0 replies.
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 11-23-2011, 08:45 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
could not find eth1 at system-config-network


My box is scientific linux 6.1 x64.

I could not find eth1 at system-config-network as you can see at attachment.

But ifconfig has ip and firefox browses webpages.

Code:
[root@RedLeoWebDev Documents]# ifconfig
eth1      Link encap:Ethernet  HWaddr 08:00:27:3A:F7:6C  
         inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0
         inet6 addr: fe80::a00:27ff:fe3a:f76c/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:652491 errors:0 dropped:0 overruns:0 frame:0
         TX packets:202708 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:590783907 (563.4 MiB)  TX bytes:14016284 (13.3 MiB)

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:64 errors:0 dropped:0 overruns:0 frame:0
         TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:3840 (3.7 KiB)  TX bytes:3840 (3.7 KiB)
Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	Q6ECL.jpg
Views:	17
Size:	78.5 KB
ID:	8464  
 
Old 11-23-2011, 08:48 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Quote:
cat /etc/sysconfig/network-scripts/ifcfg-eth0

cat /etc/sysconfig/network-scripts/ifcfg-eth1
Give output on these.

My guess is that you installed something or did something that changed a udev rule with eth1 is really eth0. I've had this problem befor.

Last edited by jmc1987; 11-23-2011 at 08:57 PM.
 
Old 11-23-2011, 09:18 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
jmc1987/ Here is.

Quote:
[root@RedLeoWebDev Documents]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=08:00:273:08B
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
[root@RedLeoWebDev Documents]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
cat: /etc/sysconfig/network-scripts/ifcfg-eth1: No such file or directory
 
Old 11-23-2011, 09:34 PM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by windstory View Post
jmc1987/ Here is.
Yea I think its a udev rule can you pst your directory

$ls /etc/udev/rules.d

if you have a file called
Quote:
70-persistent-net.rules
make a backup of it then edit the file. Delete the first line where subsystem starts (it should have eth0 in it) and edit the 2nd line with eth1 in and and rename eth1 to eth0.
 
Old 11-23-2011, 09:54 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
The results are here.

Quote:
[root@RedLeoWebDev Documents]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
cat: /etc/sysconfig/network-scripts/ifcfg-eth1: No such file or directory
[root@RedLeoWebDev Documents]# ls /etc/udev/rules.d
40-hplip.rules 60-pcmcia.rules 70-persistent-net.rules 97-bluetooth-serial.rules
56-hpmud_support.rules 60-raw.rules 90-alsa.rules 98-kexec.rules
60-fprint-autosuspend.rules 60-vboxadd.rules 90-hal.rules 99-fuse.rules
60-openct.rules 70-persistent-cd.rules 91-drm-modeset.rules
Quote:
[root@RedLeoWebDev Documents]# whereis 70-persistent-net.rules
70-persistent-net:
 
Old 11-23-2011, 10:16 PM   #6
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
post
Quote:
cat /etc/udev/rules.d/70-persistent-net.rules
 
Old 11-23-2011, 10:28 PM   #7
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Here is.

Quote:
[root@RedLeoWebDev Documents]# cat /etc/udev/rules.d/70-persistent-net.rules
# 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, and change only the value of the NAME= key.

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:d3:08:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:3a:f7:6c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
 
Old 11-23-2011, 10:37 PM   #8
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Code:
# 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, and change only the value of the NAME= key.


# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:3a:f7:6c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
override 70-persistent-net.rules with the content in the code tags and it should fix your problem be sure to make a backup befor editing. Then reboot


Now what I did, I deleted this line
Quote:
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:d3:08:db", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
and on the 2nd line I change NAME="eth1" to NAME="eth0".
 
Old 11-23-2011, 11:08 PM   #9
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
I edited "/etc/udev/rules.d/70-persistent-net.rule" as this.

Quote:
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:3a:f7:6c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
And after rebooting, the eth0 is same at "system-config-network" as attached photo.
http://www.linuxquestions.org/questi...1&d=1322098557
 
Old 11-23-2011, 11:16 PM   #10
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
NAME="eth1"

Quote:
Originally Posted by windstory View Post
I edited "/etc/udev/rules.d/70-persistent-net.rule" as this.



And after rebooting, the eth0 is same at "system-config-network" as attached photo.
http://www.linuxquestions.org/questi...1&d=1322098557
Your thumbnail is to small to read. But I am assuming using that tool it only list eth0 but ifconfig list eth1. Thats because eth1 is really eth0 and udev is confusing it.

When you edited 70-persistent-net.rule you got everything right but NAME="eth1" should be NAME="eth0"

then when you do a $ifconfig you will see eth1 is now eth0 its correct name.
 
Old 11-23-2011, 11:43 PM   #11
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Thanks for your kind and detailed guide.

Quote:
[root@RedLeoWebDev Documents]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:3A:F7:6C
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe3a:f76c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3274 errors:0 dropped:0 overruns:0 frame:0
TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:221202 (216.0 KiB) TX bytes:22202 (21.6 KiB)

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:44 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2640 (2.5 KiB) TX bytes:2640 (2.5 KiB)
It solved!
 
Old 11-24-2011, 12:07 AM   #12
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Anything to help. Infact I figured this out because I have vbox install and I use conky which displays system info on the side and my network for eth0 and it kept showing no data was streaming when I knew it was so I did a $ifconfig and figured my network interface name kept chaing from eth1-eth10 for some reason and couldn't figure out then I realize when I created and deleted a vps it would cause it to change. So the investigation begin and thats what I came to.

Glad to fix your problem.
 
  


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
system-config-network aby Linux - Desktop 5 12-08-2010 09:04 AM
Find the config file of a network interface helptonewbie Programming 4 11-08-2007 05:51 AM
CMake Error: Cannot find wx-config anywhere on the system. corso64 Linux - Software 0 10-04-2004 05:21 PM
current network config. - how to find out ? Qucho Debian 3 04-27-2004 04:35 AM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:26 AM.

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