Hi all,
looking for idea/ways to do things.
a) setting network-modes
We run some network interfaces in 100full-mode and some in 1gbit mode.
Wondering how to set this up best. The mode is unknown at the time
'cobbler system add' is done, so i do not wand to use ksopts handing
over vars to a snippet configuring the mode.
My idea for now is using ethtool to ask for interfaces current speed.
If its 1gbit do nothing, if its autonegotiated to 100-half or 100-full i
echo 'ETHTOOL_OPTS="speed 100 duplex full autoneg off"' \
>/etc/sysconfig/network-scripts/ifcfg-eth$number
to set the mode since if its 100 we run 100full by default.
Any more cobblerish way for this yet?
b) Finding out networks.
Usually admins deploying a new server have a list by hand containing this:
- new servers hostname: xyz
- one interface, ip 10.0.0.2 /24 gw .1
- one interface, ip 11.0.0.2 /16
- one interface, ip 12.0.0.3 /24
Network-people plug cables into the server, and we try to get out pxe-
interface onto first rj45-plug on the motherboard.
The mac has to be read from the remote service board.
I would like to have heuristics for finding out on what other interfaces
the other networks are plugged in. Unfortunatelly not all of these have
gateways, otherwise i could have taken interfaces up, tried to ping the
gateway, and in case of success configure the network.
How are others handling this?
Christian