Re: [SLE] eth0 now eth1 WTF? Network woes....The saga....[Long]



someone else wrote and sent me the link sometime ago but i forgot the url
but here is a snip of the text that person wrote:

I'm told that this problem only shows up under certain circumstances and
that it's not specific to SuSE 9.3. I don't know - I've only ever
s een it on SuSE 9.3, but hey... Anyway, For
the archives, here's the finished workaround for using shorewall with SuSE
9.3 I've been told abo ut another approach,
but frankly, this works - so I don't plan to fix it.

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

(Alternatively, you can put it in S05network, as the next to the last line
in case $action='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


-RP- (salo -23c)

On 1/23/06, Per Jessen <per@xxxxxxxxxxxx> wrote:
>
> Al Active wrote:
>
> > which NIC MAC goes to which device. Since SuSE 9.3 it has changed, in
> > that the OS picks the MAC and device no. at random.
>
> AFACT, in SUSE 10.0 the default is now to use persistent names. Check
> your /etc/sysconfig/network/config -
>
> #
> # Forces all interfaces eth* ath* wlan* and ra* to be persistent
> # via udev.
> # See /usr/share/doc/package/sysconfig/README.Persistent_Interface_Names
> # for details.
> #
> FORCE_PERSISTENT_NAMES=yes
>
> Also have a look at:
>
> /usr/share/doc/packages/sysconfig/README.Persistent_Interface_Names
>
>
>
> /Per Jessen, Zürich (-4.25 °C)
>
> --
> http://www.spamchek.com/ - managed anti-spam and anti-virus solution.
> Let us analyse your spam- and virus-threat - up to 2 months for free.
>
>
> --
> Check the headers for your unsubscription address
> For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
> Also check the archives at http://lists.suse.com
> Please read the FAQs: suse-linux-e-faq@xxxxxxxx
>
>
>


--
Regards
-RP-
___________________________

If computers were made in heaven,
would they be perfect?
___________________________


Relevant Pages

  • Re: [SLE] eth0 and eth1 trading places on every boot.
    ... It's a bit long and since it's not the one SuSE recommends, ... echo -n "Stabilizing eth interface names" ... route add default eth0 ... Please note - Due to the intense volume of spam, we have installed site-wide spam ...
    (SuSE)
  • Re: New to Linux. Im not impressed :(
    ... > Normally I am a Mac person but I picked up a Pentium 4 system in order to ... > So I install Suse 9.3 Professional which I purchased at Borders Bookstore ... Does anyone test this linux software before they package it? ... It also sucks up memory and grinds the system to a halt. ...
    (comp.os.linux.misc)
  • Re: New to Linux. Im not impressed :(
    ... > Normally I am a Mac person but I picked up a Pentium 4 system in order to ... > So I install Suse 9.3 Professional which I purchased at Borders Bookstore ... Does anyone test this linux software before they package it? ... It also sucks up memory and grinds the system to a halt. ...
    (alt.os.linux.suse)
  • Re: New to Linux. Im not impressed :(
    ... > Normally I am a Mac person but I picked up a Pentium 4 system in order to ... > So I install Suse 9.3 Professional which I purchased at Borders Bookstore ... Does anyone test this linux software before they package it? ... It also sucks up memory and grinds the system to a halt. ...
    (alt.os.linux)
  • Gentoo LiveCD + 3Com509B + dhcpcd = zilch?
    ... an older SuSE for a long time, and YaST Online Update no longer works. ... eth0" exits immediately, only printing "eth0: ... I used 3C5X9CFG.EXE to set the card back to PnP. ...
    (comp.os.linux.hardware)