Mailinglist Archive: opensuse (3397 mails)

< Previous Next >
Re: [SLE] eth0 and eth1 trading places on every boot.
  • From: Michael W Cocke <cocke@xxxxxxxxxxxxxx>
  • Date: Thu, 28 Apr 2005 13:02:48 -0400
  • Message-id: <fp52719p395b8cc5enu7k3dpi0nch34br4@xxxxxxx>
On Thu, 28 Apr 2005 11:49:45 -0500, you wrote:

>On Thursday 28 April 2005 11:33 am, Michael W Cocke wrote:
>> Interesting - I've been using Suse on my firewall since 9.1 and I
>> never encountered this problem before, nor did I have it with Redhat
>> before that. Not saying you're not right, but that's a hell of a
>> chain of cooincidences!
>>
>> Anyway, for the record, I figured out what I was missing and it works
>> now. I did it differently.
>>
>> Mike-
>
>Thanks for not sharing your solution. The PERSISTENT_NAME solution is the
>one recommended by SUSE. What did you end up doing?
>
>Stan

It's a bit long and since it's not the one SuSE recommends, I didn't
post it so I could get flamed for a long post.... Go win.

>From my wiki ----

For the archives, here's the finished workaround for using shorewall
with SuSE 9.3


Put the following in /etc/rc.d/S07shorewall, right after
start)
and before
exec /sbin/shorewall -f start

(Mind the word wrap - there are blank lines between each command)


echo "Stabilizing eth interface names" >/var/log/ifaceinit

echo -n "Stabilizing eth interface names"

echo "Before------------------------------" >>/var/log/ifaceinit

/sbin/ifconfig >>/var/log/ifaceinit

/sbin/ifconfig eth0 down >>/var/log/ifaceinit 2>>/var/log/ifaceinit

/sbin/ifconfig eth1 down >>/var/log/ifaceinit 2>>/var/log/ifaceinit

'# remember to insert YOUR MAC ADDRESSES - these are mine!

/sbin/nameif foo0 00:40:05:7A:E0:84 >> /var/log/ifaceinit
2>>/var/log/ifaceinit

/sbin/nameif foo1 00:09:5B:BD:A5:98 >> /var/log/ifaceinit
2>>/var/log/ifaceinit

/sbin/nameif eth0 00:40:05:7A:E0:84 >> /var/log/ifaceinit 2>>
/var/log/ifaceinit

/sbin/nameif eth1 00:09:5B:BD:A5:98 >> /var/log/ifaceinit 2>>
/var/log/ifaceinit

/sbin/ifconfig eth0 up >>/var/log/ifaceinit 2>>/var/log/ifaceinit

/sbin/ifconfig eth1 up >>/var/log/ifaceinit 2>>/var/log/ifaceinit

echo "After----------------------------" >>/var/log/ifaceinit

/sbin/ifconfig>>/var/log/ifaceinit

'# assumes eth0 is your external interface - if it isn't, change this
line!

route add default eth0

'# put this here just to make me happy

echo " - OK"

sleep 10

------------------------------------------------

Mike-

--
Mornings: Evolution in action. Only the grumpy will survive.
--

Please note - Due to the intense volume of spam, we have installed site-wide spam
filters at catherders.com. If email from you bounces, try non-HTML, non-encoded,
non-attachments.

< Previous Next >
Follow Ups