LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SuSE 9.3 Pro boots NICs alias "randomly" each boot (http://www.linuxquestions.org/questions/linux-hardware-18/suse-9-3-pro-boots-nics-alias-randomly-each-boot-460927/)

HellSpawn 07-04-2006 10:50 AM

SuSE 9.3 Pro boots NICs alias "randomly" each boot
 
Hi!!

We have a SuSE 9.3 RAS server with 3 NICs:

lspci:
Quote:

0000:01:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:01:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:01:08.0 Ethernet controller: Intel Corporation 82562EZ 10/100 Ethernet Controller (rev 02)
Sometimes when the RAS is rebooted the aliases (eth0, eth1, eth2) change, so my iptables scripts won't work...

The static configuration we need is:

eth0
Quote:

cat ifcfg-eth-id-00:0f:fe:ad:b7:d2
BOOTPROTO='static'
BROADCAST='10.3.1.255'
IPADDR='10.3.1.5'
MTU=''
NAME='GVC/BCM Advanced 82562EZ 10/100 Ethernet Controller'
NETMASK='255.255.255.0'
NETWORK='10.3.1.0'
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.mp9M4MUVQE7'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:08.0'
PREFIXLEN=''
eth1:
Quote:

cat ifcfg-eth-id-00:40:33:e2:8e:13
BOOTPROTO='static'
BROADCAST='192.168.2.255'
IPADDR='192.168.2.1'
MTU=''
NAME='Addtron RTL-8139/8139C/8139C+'
NETMASK='255.255.255.0'
NETWORK='192.168.2.0'
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='JNkJ.oGUQQrIFG8E'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:01.0'
eth2
Quote:

cat ifcfg-eth-id-00:ee:b1:00:34:67
BOOTPROTO='dhcp'
MTU=''
NAME='Realtek RT8139'
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='JNkJ.IQxIdIhhuH7'
USERCONTROL='no'
_nm_name='bus-pci-0000:01:02.0'
Is there a way to force the aliases of each NIC at boot-time, so my iptable script fits every time?

Thanks for your atention...


All times are GMT -5. The time now is 01:46 AM.