Thank You for this info Otto - good stuff to know.

-C

On Sun, 2003-04-06 at 16:58, Otto Halák - TeleLarm wrote:
> Hello again!
> It appeares I found the solution how to assign eth* to NICs.
> 
> In the file /etc/network/interfaces I added one line to eth1 chapter as follows,
> so it looks like:
> auto eth1
> iface eth1 inet static
>     address 192.168.1.254
>     masklen 24
>     broadcast 192.168.1.255
>     pre-up /etc/eth1assign.sh
> 
> This very simple script pre-up /etc/eth1assing.sh contains:
> #!/bin/sh -e
> ip link set eth0 name eth1
> 
> The script changes interface name eth0 of loaded module 3c509 to eth1 before the
> interface is bringed up.
> This ensures that eth1 is assigned to 3c509 card in my case and eth0 is free for
> any other loadable NIC module.
> 
> And after a while cardmgr started my PCMCIA wireless Orinoco with iface name
> eth0.
> 
> At the end I can see the file /etc/network/ifstate contains:
> lo=lo
> eth1=eth1
> eth0=eth0
> 
> I think this solution is more better then the previous. Bering starts really
> very smoothly without any "error" messages now.
> cul de Otto / OK1MH
> 
> > Hello Brett,
> > I tested it with the result as follows:
> > "wvlan_cs.o" driver cannot be listed in /lib/modules.
> > All PCMCIA card drivers are handled by cardmgr (PCMCIA Card Manager) controled
> > by /etc/init.d/pcmcia script. "wvlan_cs.o" driver needs to have previously
> > loaded "pcmcia_core.o", "ds.o" and "i82365.o" drivers located in
> > /lib/modules/pcmcia/ folder.
> >
> > The only solution it appears to load module "3c509" after cardmgr has
> activated
> > PCMCIA card service. So I simply hacked /etc/init.d/pcmcia script as follows:
> >
> > start part:
> > sleep 15 #it takes cardmgr some time to activate PCMCIA card service
> > /sbin/insmod /lib/modules/3c509.o
> > sleep 10 #wait to see if 3c509 loades as eth1
> > /etc/init.d/networking restart  #network was already started before PCMCIA
> card
> > service
> >
> > stop part:
> > ifdown eth1
> > rmmod 3c509
> >
> > This solution is not so clean but works. If anyone has a better idea just let
> us
> > know.
> > Otto
> >
> > > hi,
> > > i think if you edit your modules package and list your
> > > modules in the order you want the cards assigned it
> > > will take care of your problem.
> > > of course be sure to back up the modules package.
> > >
> > > brett
> > >
> > > --- Otto_Halák_-_TeleLarm <[EMAIL PROTECTED]>
> > > wrote:
> > > > Hello all!
> > > >
> > > > Is it possible to assign eth* to a specific NICs?
> > > > I read about PCI card slot positions and MAC and HW
> > > > addresses order for ISA
> > > > cards in this mail-list but I think my case is
> > > > differend.
> > > >
> > > > The problem:
> > > > I use Bering 1.1 with 2 NICs.
> > > > 1.card is Orinoco Silver wireless PCMCIA card in ISA
> > > > adapter used for internet
> > > > connection. I use wireless extensions with wvlan_cs
> > > > driver.
> > > > 2.card is ISA 3C509 with 3c509.o driver loaded as
> > > > module.
> > > >
> > > > eth0 is always assigned to 3C509 card and eth1 to
> > > > wireless card but I need it
> > > > vice versa i.e.
> > > > eth0 to be assigned to Orinoco for Internet
> > > > connection and eth1 for local
> > > > network, as Bering and Shorewall is configured.
> > > >
> > > > Is it possible to change these assignments?
> > > > Thank you for your suggestions.
> > > >
> > > > Otto
> > > > ---------------------------------
> > > > e-mail: [EMAIL PROTECTED]
> > > > web: www.telelarm.cz
> > > > ---------------------------------
> > > >
> > > >
> > > >
> > > >
> > > -------------------------------------------------------
> > > > This SF.net email is sponsored by:
> > > > The Definitive IT and Networking Event. Be There!
> > > > NetWorld+Interop Las Vegas 2003 -- Register today!
> > > >
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> > > >
> > > ------------------------------------------------------------------------
> > > > leaf-user mailing list:
> > > > [EMAIL PROTECTED]
> > > >
> > > https://lists.sourceforge.net/lists/listinfo/leaf-user
> > > > SR FAQ:
> > > http://leaf-project.org/pub/doc/docmanager/docid_1891.html
> > >
> > >
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> > > http://platinum.yahoo.com
> > >
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb: 
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to