cancel
Showing results for 
Search instead for 
Did you mean: 

random interfaces on boot

SOLVED
Go to solution
Oscar Erbetta
Occasional Visitor

random interfaces on boot

Hi all,

the problem i have is that i want to create a bonding configuration but my network interfaces appear randomly everytime on boot (on a RHE 5.2), i have 4 eth... and everytime on boot, every NIC appear with a new eth name

i think it can be configured every NIC to an especific eth name interface so it doesn't changes on boot,

thanks for the help
7 REPLIES
Steven McCoy
Valued Contributor
Solution

Re: random interfaces on boot

Hi Oscar,

All you need to do is add the 'HWADDR' parameter (MAC definition) to your '/etc/sysconfig/network-scripts/ifcfg-eth*' files (where 'eth*' = eth0, eth1, eth2, eth3):

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:02:66:F2:F8:D4
IPADDR=209.8.20.13
NETMASK=255.255.255.0
ONBOOT=yes
Ivan Ferreira
Honored Contributor

Re: random interfaces on boot

You can also use udev rules. For example:

# cat /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:30:48:92:9f:68", NAME="eth0"
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Oscar Erbetta
Occasional Visitor

Re: random interfaces on boot

thanks for the replies!
Steven McCoy
Valued Contributor

Re: random interfaces on boot

Please don't forget to assign points ;)
Oscar Erbetta
Occasional Visitor

Re: random interfaces on boot

please, can you guide me how to assign points?
thanks
Steven McCoy
Valued Contributor

Re: random interfaces on boot

Sure, to the right of each person's name (after the date) there should be a Drop-Down menu that lets you assign the number of points to each post. You can assign 0 - 10 per post. Once you have assigned them, click the 'Assign Points' button at the bottom of the page.

Hope this helps! :)
Oscar Erbetta
Occasional Visitor

Re: random interfaces on boot

thank you very much!