Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Network issue, eth0 is renamed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
terree
n00b
n00b


Joined: 26 Oct 2007
Posts: 12

PostPosted: Mon Apr 22, 2013 5:05 am    Post subject: [Solved]Network issue, eth0 is renamed Reply with quote

Hi all,
My network was ok once.
But after emerging the world recently, the network can't be used.

After check my dmesg, I find the suspicious message for my issue:
[ 28.020703] systemd-udevd[16767]: renamed network interface eth0 to enp2s1

Does the udev cause this problem?
Please help me to resolved it.

Hope these info are helpful to find the reason.
1. dmesg
Code:

[   12.383353] 3ware Storage Controller device driver for Linux v1.26.02.003.
[   12.520381] 3ware 9000 Storage Controller device driver for Linux v2.26.02.014.
[   12.656894] Compaq SMART2 Driver (v 2.6.0)
[   12.806578] HP CISS Driver (v 3.6.26)
[   13.244636] Adaptec aacraid driver 1.2-0[29800]-ms
[   13.553864] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
[   13.558548] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
[   13.824303] megasas: 06.504.01.00-rc1 Mon. Oct. 1 17:00:00 PDT 2012
[   13.983009] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 8.04.00.07-k.
[   14.142592] Emulex LightPulse Fibre Channel SCSI driver 8.3.35
[   14.142594] Copyright(c) 2004-2009 Emulex.  All rights reserved.
[   14.450165] aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded
[   14.648356] ACPI: bus type usb registered
[   14.648822] usbcore: registered new interface driver usbfs
[   14.649170] usbcore: registered new interface driver hub
[   14.650060] usbcore: registered new device driver usb
[   14.654783] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.655027] ehci_hcd 0000:02:03.0: EHCI Host Controller
[   14.655038] ehci_hcd 0000:02:03.0: new USB bus registered, assigned bus number 1
[   14.655233] ehci_hcd 0000:02:03.0: cache line size of 64 is not supported
[   14.655240] ehci_hcd 0000:02:03.0: irq 17, io mem 0xd8910000
[   14.682198] ehci_hcd 0000:02:03.0: USB 2.0 started, EHCI 1.00
[   14.682257] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   14.682259] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   14.682260] usb usb1: Product: EHCI Host Controller
[   14.682262] usb usb1: Manufacturer: Linux 3.7.10-gentoo ehci_hcd
[   14.682263] usb usb1: SerialNumber: 0000:02:03.0
[   14.682618] hub 1-0:1.0: USB hub found
[   14.682622] hub 1-0:1.0: 6 ports detected
[   14.858065] Initializing USB Mass Storage driver...
[   14.858167] usbcore: registered new interface driver usb-storage
[   14.858167] USB Mass Storage support registered.
[   15.012037] uhci_hcd: USB Universal Host Controller Interface driver
[   15.012162] uhci_hcd 0000:02:00.0: UHCI Host Controller
[   15.012181] uhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[   15.012479] uhci_hcd 0000:02:00.0: irq 18, io base 0x00002080
[   15.012621] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[   15.012623] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   15.012625] usb usb2: Product: UHCI Host Controller
[   15.012626] usb usb2: Manufacturer: Linux 3.7.10-gentoo uhci_hcd
[   15.012628] usb usb2: SerialNumber: 0000:02:00.0
[   15.013657] hub 2-0:1.0: USB hub found
[   15.013661] hub 2-0:1.0: 2 ports detected
[   15.175185] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   15.348487] usbcore: registered new interface driver usbhid
[   15.348489] usbhid: USB HID core driver
[   18.364737] device-mapper: uevent: version 1.0.3
[   18.364954] device-mapper: ioctl: 4.23.0-ioctl (2012-07-25) initialised: dm-devel@redhat.com
[   19.613993] md: raid0 personality registered for level 0
[   19.796765] md: raid1 personality registered for level 1
[   20.016006] async_tx: api initialized (async)
[   20.191959] raid6: sse2x1    4926 MB/s
[   20.361955] raid6: sse2x2    6396 MB/s
[   20.531965] raid6: sse2x4    8575 MB/s
[   20.531967] raid6: using algorithm sse2x4 (8575 MB/s)
[   20.531968] raid6: using ssse3x2 recovery algorithm
[   20.624016] xor: automatically using best checksumming function:
[   20.721952]    generic_sse: 11113.200 MB/sec
[   20.738052] md: raid6 personality registered for level 6
[   20.738054] md: raid5 personality registered for level 5
[   20.738055] md: raid4 personality registered for level 4
[   20.936352] md: raid10 personality registered for level 10
[   21.121734] md: linear personality registered for level -1
[   21.308932] md: multipath personality registered for level -4
[   21.529921] JFS: nTxBlock = 8192, nTxLock = 65536
[   21.776319] RPC: Registered named UNIX socket transport module.
[   21.776321] RPC: Registered udp transport module.
[   21.776322] RPC: Registered tcp transport module.
[   21.776322] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.998755] fuse init (API version 7.20)
[   22.196418] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   22.196419] e1000: Copyright (c) 1999-2006 Intel Corporation.
[   22.196553] e1000 0000:02:01.0: setting latency timer to 64
[   22.576800] e1000 0000:02:01.0 eth0: (PCI:66MHz:32-bit) 00:0c:29:b8:13:a3
[   22.576808] e1000 0000:02:01.0 eth0: Intel(R) PRO/1000 Network Connection
[   22.994396] Loading iSCSI transport class v2.0-870.
[   24.305459] EXT3-fs (sda3): error: couldn't mount because of unsupported optional features (240)
[   24.305666] EXT2-fs (sda3): error: couldn't mount because of unsupported optional features (240)
[   24.329327] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[   26.745943] systemd-udevd[16746]: starting version 200
[   27.265093] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[   27.265221] ACPI: Power Button [PWRF]
[   27.280518] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
[   27.280627] ACPI: AC Adapter [ACAD] (on-line)
[   27.446067] agpgart-intel 0000:00:00.0: Intel 440BX Chipset
[   27.447478] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0x0
[   27.540585] ACPI Warning: 0x0000000000001040-0x0000000000001047 SystemIO conflicts with Region \_SB_.PCI0.PWR_.SMB_ 1 (20120913/utaddress-251)
[   27.540593] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[   27.762605] microcode: CPU0 sig=0x1067a, pf=0x1, revision=0xa0b
[   27.817847] microcode: CPU1 sig=0x1067a, pf=0x1, revision=0xa0b
[   27.818458] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[   28.013875] input: PC Speaker as /devices/platform/pcspkr/input/input3
[   28.020703] systemd-udevd[16767]: renamed network interface eth0 to enp2s1
[   28.259583] Floppy drive(s): fd0 is 1.44M
[   28.271578] FDC 0 is a post-1991 82077
[   28.439394] parport_pc 00:08: reported by Plug and Play ACPI
[   28.439602] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[   28.525680] ppdev: user-space parallel port driver
[   31.030869] EXT4-fs (sda3): re-mounted. Opts: (null)
[   31.389229] Adding 1048572k swap on /dev/sda2.  Priority:-1 extents:1 across:1048572k


2. rc.log
Code:


rc shutdown logging started at Mon Apr 22 19:11:21 2013

 * Caching service dependencies ...
 [ ok ]
 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Bringing down interface lo
 *   Removing addresses
 *     ::1
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to sync clocks
 [ !! ]
 * ERROR: hwclock failed to stop

rc shutdown logging stopped at Mon Apr 22 19:11:24 2013


rc shutdown logging started at Mon Apr 22 19:11:21 2013

 * Caching service dependencies ...
 [ ok ]
 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Bringing down interface lo
 *   Removing addresses
 *     ::1
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to sync clocks
 [ !! ]
 * ERROR: hwclock failed to stop

rc shutdown logging stopped at Mon Apr 22 19:11:24 2013


rc sysinit logging started at Mon Apr 22 19:12:29 2013


   OpenRC 0.11.8 is starting up Gentoo Linux (x86_64)

 * /proc is already mounted
rm: cannot remove ‘/run/openrc’: Read-only file system
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Using /dev mounted from kernel ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting config filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Generating a rule to create a /dev/root symlink ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]

rc sysinit logging stopped at Mon Apr 22 19:12:29 2013


rc boot logging started at Mon Apr 22 19:12:29 2013

 * Setting system clock using the hardware clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to set the system clock
 [ !! ]
 * Autoloaded 0 module(s)
 * Checking local filesystems  ...
/dev/sda3: clean, 317030/557056 files, 1597919/2227968 blocks
/dev/sda1: clean, 36/32768 files, 4390/131072 blocks
 [ ok ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Cleaning /var/run ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting hostname to localhost ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 * Activating additional swap space ...
 [ ok ]
 * setting up tmpfiles.d entries ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Mon Apr 22 19:12:32 2013


rc default logging started at Mon Apr 22 19:12:33 2013

 * Bringing up interface eth0
 *   ERROR: interface eth0 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start netmount as net.eth0 would not start
 * ERROR: cannot start samba as net.eth0 would not start
 * Starting syslog-ng ...
 [ ok ]
 * ERROR: cannot start sshd as net.eth0 would not start
 * Starting vixie-cron ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Mon Apr 22 19:12:34 2013


rc shutdown logging started at Mon Apr 22 19:19:20 2013

 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Bringing down interface lo
 *   Removing addresses
 *     ::1
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to sync clocks
 [ !! ]
 * ERROR: hwclock failed to stop

rc shutdown logging stopped at Mon Apr 22 19:19:23 2013


rc shutdown logging started at Mon Apr 22 19:19:20 2013

 * Stopping local
 [ ok ]
 * Stopping vixie-cron ...
 [ ok ]
 * Saving random seed ...
 [ ok ]
 * Deactivating additional swap space ...
 [ ok ]
 * Stopping syslog-ng ...
 [ ok ]
 * Bringing down interface lo
 *   Removing addresses
 *     ::1
 * Unmounting loop devices
 * Unmounting filesystems
 * Deactivating swap devices ...
 [ ok ]
 * Stopping udev ...
 [ ok ]
 * Setting hardware clock using the system clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to sync clocks
 [ !! ]
 * ERROR: hwclock failed to stop

rc shutdown logging stopped at Mon Apr 22 19:19:23 2013


rc sysinit logging started at Mon Apr 22 19:42:27 2013


   OpenRC 0.11.8 is starting up Gentoo Linux (x86_64)

 * /proc is already mounted
rm: cannot remove ‘/run/openrc’: Read-only file system
 * Mounting /run ...
 * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Using /dev mounted from kernel ...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting config filesystem ...
 [ ok ]
 * Mounting cgroup filesystem ...
 [ ok ]
 * Starting udev ...
 [ ok ]
 * Generating a rule to create a /dev/root symlink ...
 [ ok ]
 * Populating /dev with existing devices through uevents ...
 [ ok ]
 * Waiting for uevents to be processed ...
 [ ok ]

rc sysinit logging stopped at Mon Apr 22 19:42:27 2013


rc boot logging started at Mon Apr 22 19:42:27 2013

 * Setting system clock using the hardware clock [UTC] ...
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
 * Failed to set the system clock
 [ !! ]
 * Autoloaded 0 module(s)
 * Checking local filesystems  ...
/dev/sda3: clean, 317030/557056 files, 1597931/2227968 blocks
/dev/sda1: clean, 36/32768 files, 4390/131072 blocks
 [ ok ]
 * Remounting root filesystem read/write ...
 [ ok ]
 * Remounting filesystems ...
 [ ok ]
 * Updating /etc/mtab ...
 [ ok ]
 * Activating swap devices ...
 [ ok ]
 * Mounting local filesystems ...
 [ ok ]
 * Configuring kernel parameters ...
 [ ok ]
 * Creating user login records ...
 [ ok ]
 * Cleaning /var/run ...
 [ ok ]
 * Wiping /tmp directory ...
 [ ok ]
 * Setting hostname to localhost ...
 [ ok ]
 * Setting terminal encoding [UTF-8] ...
 [ ok ]
 * Setting keyboard mode [UTF-8] ...
 [ ok ]
 * Loading key mappings [us] ...
 [ ok ]
 * Bringing up interface lo
 *   127.0.0.1/8 ...
 [ ok ]
 *   Adding routes
 *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 * Activating additional swap space ...
 [ ok ]
 * setting up tmpfiles.d entries ...
 [ ok ]
 * Initializing random number generator ...
 [ ok ]

rc boot logging stopped at Mon Apr 22 19:42:32 2013


rc default logging started at Mon Apr 22 19:42:32 2013

 * Bringing up interface eth0
 *   ERROR: interface eth0 does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.eth0 failed to start
 * ERROR: cannot start netmount as net.eth0 would not start
 * ERROR: cannot start samba as net.eth0 would not start
 * Starting syslog-ng ...
 [ ok ]
 * ERROR: cannot start sshd as net.eth0 would not start
 * Starting vixie-cron ...
 [ ok ]
 * Starting local
 [ ok ]

rc default logging stopped at Mon Apr 22 19:42:33 2013


3 uname -a
Code:

Linux localhost 3.7.10-gentoo #1 SMP Thu Apr 11 21:02:09 CST 2013 x86_64 Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00Ghz GenuineIntel GNU/Linux
[/profile]


Last edited by terree on Mon Apr 22, 2013 5:52 am; edited 1 time in total
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Mon Apr 22, 2013 5:14 am    Post subject: Reply with quote

eth0 is a kernel name, and udev renamed it based on PCI geographical location to enp2s1. You forgot to rename the /etc/init.d/net.eth0 symlink to /etc/init.d/net.enp2s1 and perhaps you have put eth0 elsewhere too, like iptables?

https://wiki.gentoo.org/wiki/Udev/upgrade
Back to top
View user's profile Send private message
terree
n00b
n00b


Joined: 26 Oct 2007
Posts: 12

PostPosted: Mon Apr 22, 2013 5:51 am    Post subject: Reply with quote

ssuominen wrote:
eth0 is a kernel name, and udev renamed it based on PCI geographical location to enp2s1. You forgot to rename the /etc/init.d/net.eth0 symlink to /etc/init.d/net.enp2s1 and perhaps you have put eth0 elsewhere too, like iptables?

https://wiki.gentoo.org/wiki/Udev/upgrade


Thank you very much!
It works.
Maybe I should study something about udev later.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Mon Apr 22, 2013 8:45 am    Post subject: Reply with quote

Moved from Networking & Security to Duplicate Threads, please see predictable network interface names.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum