FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 10-13-2012, 11:46 AM
Frank Murphy
 
Default Purge old eth1, add new nic as eth0

How can I completly remove all remnants of an old eth1
Everytime I go to add a new nic it wants to call it eth1

I will be replacing the old nic with ano identical chipped card,
which it wants to call eth1

I would prefer eth0

F17 using system-config-network
I have through s-c-n removed all hardware nic,
also removeed ~/network-scripts/ifcfg-eth*
Keeps coming back,

Where else do I look.
--
Regards,
Frank
"Jack of all, fubars"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-13-2012, 11:53 AM
Reindl Harald
 
Default Purge old eth1, add new nic as eth0

Am 13.10.2012 13:46, schrieb Frank Murphy:
> How can I completly remove all remnants of an old eth1
> Everytime I go to add a new nic it wants to call it eth1
>
> I will be replacing the old nic with ano identical chipped card,
> which it wants to call eth1
>
> I would prefer eth0
>
> F17 using system-config-network
> I have through s-c-n removed all hardware nic,
> also removeed ~/network-scripts/ifcfg-eth*
> Keeps coming back
>
> Where else do I look

/etc/udev/rules.d/70-persistent-net.rules this is the only
place which matters for manual NIC-naming and ifcfg_eth*
scripts should NOT contain MAC-addresses to leave the
udev-rule the only point to assign

you need to reboot or restat udev

cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="3c:d9:2c:65:95:9f", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:a6:91:e4", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x168c:0x0024 (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="fc:75:12:5e:cf:e5", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-13-2012, 12:56 PM
Frank Murphy
 
Default Purge old eth1, add new nic as eth0

On 13/10/12 12:53, Reindl Harald wrote:



cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="3c:d9:2c:65:95:9f", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


Where do I find some of this info to put in the udev rule.
It's not being auto-generated.

using lshw I get:

*-network:0
description: Ethernet interface
product: RTL-8169 Gigabit Ethernet
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: rename2
version: 10
serial: 00:22:3f:f1:f2:d8
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list rom ethernet
physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes
driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.0.6
latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII
speed=1Gbit/s
resources: irq:16 ioport:e800(size=256)
memory:febffc00-febffcff memory:febc0000-febdffff

*-network:1
description: Ethernet interface
product: RTL-8169 Gigabit Ethernet
vendor: Realtek Semiconductor Co., Ltd.
physical id: 1
bus info: pci@0000:05:01.0
logical name: eth1
version: 10
serial: 64:70:02:00:43:c2
size: 1Gbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 66MHz
capabilities: pm bus_master cap_list rom ethernet
physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes
driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.0.149
latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII
speed=1Gbit/s
resources: irq:17 ioport:e400(size=256)
memory:febff800-febff8ff memory:feba0000-febbffff




--
Regards,
Frank
"Jack of all, fubars"
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-13-2012, 01:08 PM
Reindl Harald
 
Default Purge old eth1, add new nic as eth0

Am 13.10.2012 14:56, schrieb Frank Murphy:
> On 13/10/12 12:53, Reindl Harald wrote:
>>
>>
>> cat /etc/udev/rules.d/70-persistent-net.rules
>> # PCI device 0x8086:0x1502 (e1000e)
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="3c:d9:2c:65:95:9f", ATTR{dev_id}=="0x0",
>> ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
>
> Where do I find some of this info to put in the udev rule.
> It's not being auto-generated.

"ifconfig --a" will show you every interface with the MAC address
only the MAC and NAME has to be changed in teh udev-rule

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-13-2012, 04:45 PM
Bill Shirley
 
Default Purge old eth1, add new nic as eth0

Check in /etc/udev/rules.d/70-persistent-net.rules

Bill

On 10/13/2012 7:46 AM, Frank Murphy wrote:

How can I completly remove all remnants of an old eth1
Everytime I go to add a new nic it wants to call it eth1

I will be replacing the old nic with ano identical chipped card,
which it wants to call eth1

I would prefer eth0

F17 using system-config-network
I have through s-c-n removed all hardware nic,
also removeed ~/network-scripts/ifcfg-eth*
Keeps coming back,

Where else do I look.


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-15-2012, 05:02 PM
JD
 
Default Purge old eth1, add new nic as eth0

On 10/13/2012 05:53 AM, Reindl Harald wrote:


Am 13.10.2012 13:46, schrieb Frank Murphy:

How can I completly remove all remnants of an old eth1
Everytime I go to add a new nic it wants to call it eth1

I will be replacing the old nic with ano identical chipped card,
which it wants to call eth1

I would prefer eth0

F17 using system-config-network
I have through s-c-n removed all hardware nic,
also removeed ~/network-scripts/ifcfg-eth*
Keeps coming back

Where else do I look

/etc/udev/rules.d/70-persistent-net.rules this is the only
place which matters for manual NIC-naming and ifcfg_eth*
scripts should NOT contain MAC-addresses to leave the
udev-rule the only point to assign

you need to reboot or restat udev

cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="3c:d9:2c:65:95:9f", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:a6:91:e4", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x168c:0x0024 (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="fc:75:12:5e:cf:e5", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"




On my system, log in var log messages shows
/var/log/messages-20120930:Sep 26 08:43:22 localhost kernel: [ 5.935732]
eth0: SiS 900 PCI Fast Ethernet at 0xd800, IRQ 19, 00:03:0d:15:2b:9e
/var/log/messages-20121007:Oct 4 18:18:39 localhost
system-config-network[27851]: rm
//etc/sysconfig/networking/profiles/default/ifcfg-eth0


But in /etc/udev/rules.d/70-persistent-net.rules
I have
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:03:0d:13:0b:0e", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


So, ifconfig returns no info about eth0, or any eth# device.



--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 
Old 10-15-2012, 06:35 PM
Bill Shirley
 
Default Purge old eth1, add new nic as eth0

On 10/15/2012 1:02 PM, JD wrote:


On 10/13/2012 05:53 AM, Reindl Harald wrote:


Am 13.10.2012 13:46, schrieb Frank Murphy:

How can I completly remove all remnants of an old eth1
Everytime I go to add a new nic it wants to call it eth1

I will be replacing the old nic with ano identical chipped card,
which it wants to call eth1

I would prefer eth0

F17 using system-config-network
I have through s-c-n removed all hardware nic,
also removeed ~/network-scripts/ifcfg-eth*
Keeps coming back

Where else do I look

/etc/udev/rules.d/70-persistent-net.rules this is the only
place which matters for manual NIC-naming and ifcfg_eth*
scripts should NOT contain MAC-addresses to leave the
udev-rule the only point to assign

you need to reboot or restat udev

cat /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x1502 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="3c:d9:2c:65:95:9f", ATTR{dev_id}=="0x0",

ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x10d3 (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:1b:21:a6:91:e4", ATTR{dev_id}=="0x0",

ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x168c:0x0024 (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="fc:75:12:5e:cf:e5", ATTR{dev_id}=="0x0",

ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"




On my system, log in var log messages shows
/var/log/messages-20120930:Sep 26 08:43:22 localhost kernel: [
5.935732] eth0: SiS 900 PCI Fast Ethernet at 0xd800, IRQ 19,
00:03:0d:15:2b:9e
/var/log/messages-20121007:Oct 4 18:18:39 localhost
system-config-network[27851]: rm
//etc/sysconfig/networking/profiles/default/ifcfg-eth0


But in /etc/udev/rules.d/70-persistent-net.rules
I have
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:03:0d:13:0b:0e", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


So, ifconfig returns no info about eth0, or any eth# device.




In your log file, the MAC address is 00:03:0d:15:2b:9e.
The udev rule looks for MAC address 00:03:0d:13:0b:0e.
No match, no action.

Bill

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
 

Thread Tools




All times are GMT. The time now is 07:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org