Avoid eth renaming. Possible ?
by Pigi_102 from LinuxQuestions.org on (#588SY)
Hi all,
I have a little problem to address, if there is a way.
I run a server on a dedicated headless hardware, with ethernet on usb dongles, and due to some not addressable problems ( if needed I can provide more info on this but prefere to avoid, to focus on main problem ) some times the usb bus get reinitialized and the eth interfaces renamed.
What I see from messages is this:
Code:Jun 7 11:35:48 firewall kernel: [870540.584672] r8152 1-1.1.2:1.0 eth111: renamed from eth0
Jun 7 11:35:48 firewall kernel: [870540.639623] lan78xx 1-1.1.1:1.0 eth109: renamed from eth2
Jun 7 11:35:48 firewall kernel: [870540.689320] r8152 1-1.1.3:1.0 eth110: renamed from eth1
Jun 7 11:35:48 firewall kernel: [870540.749589] r8152 1-1.1.3:1.0 eth2: renamed from eth110
Jun 7 11:35:48 firewall kernel: [870540.799556] r8152 1-1.1.2:1.0 eth1: renamed from eth111
Jun 7 11:35:48 firewall kernel: [870540.849537] lan78xx 1-1.1.1:1.0 eth0: renamed from eth109Obviously, when this happens, the interfaces loose their ip address, and being that in rc.inet1.conf the eth are addressed by their number (IPADDR[0] and so on ) they don't get their correct address.
If they don't get the correct address I can't connect to the server anymore and thus my only chance is to reboot it.
I would like to avoid this renaming, if possible so I could just run a crontab script to reassign the address ( something like /etc/rc.d/rc.inet1_eth0_restart ).
I'm not sure if I've been clear, but I hope you get the idea.
Any hint ?
Thx
Pigi


I have a little problem to address, if there is a way.
I run a server on a dedicated headless hardware, with ethernet on usb dongles, and due to some not addressable problems ( if needed I can provide more info on this but prefere to avoid, to focus on main problem ) some times the usb bus get reinitialized and the eth interfaces renamed.
What I see from messages is this:
Code:Jun 7 11:35:48 firewall kernel: [870540.584672] r8152 1-1.1.2:1.0 eth111: renamed from eth0
Jun 7 11:35:48 firewall kernel: [870540.639623] lan78xx 1-1.1.1:1.0 eth109: renamed from eth2
Jun 7 11:35:48 firewall kernel: [870540.689320] r8152 1-1.1.3:1.0 eth110: renamed from eth1
Jun 7 11:35:48 firewall kernel: [870540.749589] r8152 1-1.1.3:1.0 eth2: renamed from eth110
Jun 7 11:35:48 firewall kernel: [870540.799556] r8152 1-1.1.2:1.0 eth1: renamed from eth111
Jun 7 11:35:48 firewall kernel: [870540.849537] lan78xx 1-1.1.1:1.0 eth0: renamed from eth109Obviously, when this happens, the interfaces loose their ip address, and being that in rc.inet1.conf the eth are addressed by their number (IPADDR[0] and so on ) they don't get their correct address.
If they don't get the correct address I can't connect to the server anymore and thus my only chance is to reboot it.
I would like to avoid this renaming, if possible so I could just run a crontab script to reassign the address ( something like /etc/rc.d/rc.inet1_eth0_restart ).
I'm not sure if I've been clear, but I hope you get the idea.
Any hint ?
Thx
Pigi