Prasanna Krishnamoorthy wrote: > The naming of eth0, eth1, eth2 doesn't always happen in the same order > in linux - if you remove or add another network card the naming might > change unexpectedly. > > I suggest that you setup nameif with desired mactab entries for your > firewall box.
jon wrote: >I'm popping in here without any real digging in to what the original >problem was, but it may be of interest to you that you can control which >NIC comes up as which ethX. > >In a Debian-based distro you can specify which interface is assigned >eth0 or eth1 (etc) by editing the /etc/iftab file. You can tell your >system which interface becomes ethX by MAC address in the iftab file. >I'm not sure how to do this on an RPM or Slack distro, but I'm sure >there is an equivalent file somewhere. Shawn Singh wrote: >Jon & Prasanna, > >Thanks for the suggestion. I'll have to do a bit of reading on this, >as this is my first machine in which I've had 2 "live" NIC cards, so >I'll be somewhat interesting to see how the system behaves. Besides, >you've got me curious as to how Linux knows what order to assign the >labels for the various devices. Note that it's not neccessary to quote the entire 50k of previous thread ! I had a look at this yesterday on a box I've just set up with Debian Etch. nameif seems to be installed by default as part of package net-tools. However there is no init script which calls it. Calling it can be added to the top of ifupdown or you can add an additional script of your own (which is what I did) and link to it from /etc/rcS.d. There is also a separate tool called ifrename which uses iftab but is not installed but appears more flexible. Note that neither of these tools* can rename eth2 to eth0, so I've ended up calling my interfaces ethint and ethext. * nameif fails, didn't try ifrename but man page warns against it. Simon ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
