Patrick Dowler wrote:
> Is there any way to have SystemConfigurator configure the NIC that is
> actually used as eth0?
>
> Secondarily, FC5 uses files in /etc/sysconfig/network-scripts named
> ifcfg-eth0
> and ifcfg-eth1 to enable or disable interfaces at boot, via ONBOOT=yes|no...
> not sure if SC is fiddling them or not.
>
> Some of the target systems have onboard 10/100 (forcedeth) and a Gbit PCI
> (e1000) and others have onboard Gbit (forcedeth). We want to ue Gbit in all
> cases. The UYOK initrd has e1000 and forcedeth drivers. On the systems with
> the PCI card, the e1000 PCI card gets used for the autoinstall, but
> SystemConfigurator configures it as eth1 (and the onboard forcedeth as eth0)
> and leaves eth0 as the one to enable at boot: ooops.
>
> As a work-around, I disabled the onboard 10/100 NIC in the BIOS and
> re-installed, but some of our servers have multiple ports and it may not be
> possible to force a single Gbit NIC to be visible in all cases. I foresee
> (but
> have not tested) similar issues when I try to autoinstall some compute
> servers because they have multiple onboard ports (some mixed 10/100 and Gbit)
> and the Gbit port in use may not be the one SC thinks is eth0.
>
> Note: the golden client uses an onboard forcedeth and the e1000 driver is
> included in the UYOK via the UYOK.modules_to_include file.
>
SystemConfigurator can configure only the interface used to image your
clients.
Anyway, you can use post-install scripts to properly setup your
different network cards and produce the right ifcfg-eth[01].
Remember that you can use $IPADDR, $NETMASK, $GATEWAY, etc. variables in
your post-install scripts if you do a source of the file
/tmp/post-install/variables.txt. For example your post-install script
could look like the following (maybe this could help):
---------------------
#!/bin/sh
# Description: post-install script to properly configure network
# interfaces
. /tmp/post-install/variables.txt
# Use installation IP address and netmask for eth0
cat << "EOF" > /etc/sysconfig/network/ifcfg-eth0
ONBOOT=yes
IPADDR=$IPADDR
NETMASK=$NETMASK
...
EOF
# Exit if eth1 doesn't exist
ifconfig eth1 >/dev/null 2>&1 || exit 0
# Evaluate IPADDR and NETMASK for eth1
evaluate_eth1_ip $IPADDR
IPADDR=$?
evaluate_eth1_netmask $NETMASK
NETMASK=$?
# Configure eth1
cat << "EOF" > /etc/sysconfig/network/ifcfg-eth1
ONBOOT=yes
IPADDR=$IPADDR
NETMASK=$NETMASK
...
EOF
evaluate_eth1_ip()
{
ip=$1
apply_some_regexp_on_ip
return $ip
}
evaluate_eth1_netmask()
{
netmask=$1
apply_some_regexp_on_netmask
return $netmask
}
---------------------
Cheers,
-Andrea
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users