Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
issues with udev and renaming [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
moonless.knights
n00b
n00b


Joined: 21 Aug 2013
Posts: 2

PostPosted: Thu Aug 22, 2013 12:51 am    Post subject: issues with udev and renaming [solved] Reply with quote

I have emerge enough packages on this box to have it bootable, this is my first pass at emerging. Now when I the system comes up it wants to have wired network to have a name of enp10s0 I want it to be eth0 like my other boxes have. I did some reading and seems to be a straight forward just create a udev rule and reboot. The ATTR{dev_id}=="0x0" may be causing the problem I dont know how this value is figured.



Code:
cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:22:a1:54:43" ATTR{dev_id}=="0x0" ATTR{type}=="1", KERNEL=="enp10s*", NAME="eth0"


only showing the network cards, a wireless and hard line
Code:
lspci -v
09:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)
        Subsystem: Hewlett-Packard Company AR5BHB92-H 802.11abgn Wireless Half-size Mini PCIe Card [AR9280]
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Memory at f1100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 2
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
        Capabilities: [60] Express Legacy Endpoint, MSI 00
        Capabilities: [90] MSI-X: Enable- Count=1 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00

0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
        Subsystem: Hewlett-Packard Company Device 3642
        Flags: bus master, fast devsel, latency 0, IRQ 41
        I/O ports at 2000 [size=256]
        Memory at f1010000 (64-bit, prefetchable) [size=4K]
        Memory at f1000000 (64-bit, prefetchable) [size=64K]
        Expansion ROM at f1020000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [ac] MSI-X: Enable- Count=2 Masked-
        Capabilities: [cc] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 01-00-00-00-00-00-00-00


For some reason that is not working need some suggestions please.

Thanks for taking a look at this.


Last edited by moonless.knights on Fri Aug 23, 2013 3:27 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Advocate
Advocate


Joined: 29 May 2005
Posts: 4560
Location: Saint Amant, Acadiana

PostPosted: Thu Aug 22, 2013 12:57 am    Post subject: Reply with quote

Welcome to the forums!

See this: http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=4&chap=2#doc_chap4

I'm using net.ifnames=0 in kernel command line myself.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
moonless.knights
n00b
n00b


Joined: 21 Aug 2013
Posts: 2

PostPosted: Fri Aug 23, 2013 3:30 am    Post subject: Reply with quote

Thanks JagLover for pointing me in the right direction. I got that to work after reading that page. Thanks again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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