Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Finding the current network devices
Date: Sun, 18 Oct 2015 10:49:05 -0400
From: Greg Troxel <gdt%ir.bbn.com@localhost>
Message-ID: <rmizizg9qqm.fsf%fnord.ir.bbn.com@localhost>
| Another hacky trick is to create both ifconfig.wm0 and ifconfig.bge0 and
| just leave both there, if you are pretty sure you'll have one or the
| other. That might create annoying or problematic errors though.
No errors, not hacky at all, that's the ideal solution (the two files
for interface 0 (and of course 1) can even be linked together, so there's
only one real file (for each interface) to edit to make config changes,
in case it contains more than just "up" and perhaps "dhcp")
This works because the startup scripts look for what interface names exist,
and then for each interface name, look for /etc/ifconfig.$ifname.
The files for interface names that don't exist are never even noticed.
Doing this in fstab for filesystems is much (MUCH) less likely to work,
the fsck scripts bomb out if a filesystem can't be correctly checked.
Either using raidframs (servers should anyway) and raid autoconfig, which
then doesn't care what the actual device names happen to be, or named
wedges, is the solution to that one.
kre
Home |
Main Index |
Thread Index |
Old Index