Skip to contentSkip to conversation

NIC renaming does not rename /proc/sys/net/ipv4 Was: Re: NICs trading places ?

DISCUSSION Andi Kleen 1 participant 1 message Mar 29, 2003 5 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20030328221037.GB25846@suse.de.suse.lists.linux.kernel.suse.lists.linux.kernel

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#5 lore raw
Quoted 5 lines · Wichert Akkerman
Quoted 2 lines

Just rename at early boot before IP is set up. That is what i usually do - set up /etc/mactab and run it very early at boot.

How does that solve the problem of /proc/sys/net/*/conf/* not being renamed?

They are only set up when the inet device structure is created. That happens at the first ifconfig/ip, not on driver init.

As for non ethernet devices - if you find a reliably way to identify/number them then the same principle can be used for them too.

-Andi