Simon Hobson wrote:
(snip)
> 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.
>
nameif can be used to rename eth0, etc.. you just have to rename the
interfaces to a non-"eth" name first.
Example from a Gentoo init.d script:
#!/sbin/runscript
#
# for this script to work do the following:
# 1. Update /etc/init.d/net.eth0 to include
# "need nameif" prior to the "use hotplug .." line.
#
# 2. Reassign the existing eth0, eth1, etc to
# "unused" names so that we can reassign
# them. The kernel will not "overwrite" an
# existing device name (e.g. eth1 can't be renamed to eth0
# until eth0 is "removed"/renamed.)
depend() {
before net.lo
}
start() {
# First rename the existing eth0, ...
# Motherboard
/sbin/nameif -s foo0 00:0f:ea:d1:cf:7a
# 3Com 3c905b #1
/sbin/nameif -s foo1 00:50:04:73:7a:dc
# 3Com 3c905b #2
/sbin/nameif -s foo2 00:50:04:ce:a9:9a
# Now assign the "standard" names in the
# preferred order
# Motherboard
/sbin/nameif -s eth0 00:0f:ea:d1:cf:7a
# 3Com 3c905b
/sbin/nameif -s eth1 00:50:04:73:7a:dc
# 3Com 3c905b #2
/sbin/nameif -s eth2 00:50:04:ce:a9:9a
}
-------------------------------------------------------------------------
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