Grant wrote:
>>Well, I share this worry. I haven't yet run into anyplace wired or
>>wireless that Gentoo couldn't handle
>>
>>
>
>What kind of configurations have you had to use? Does dhcp always
>take care of it with a blank /etc/conf.d/net ?
>
It just occurred to me that don't really use Gentoo's networking, I have
something a bit more custom for mobility reasons. The biggest problem
with dhcpcd is that it doesn't do anything with the WINS servers options
provided by the dhcp server.
Large windows networks that span subnets can use WINS servers for name
resolution. If they use both WINS and DNS, this is not a problem,
because the DNS server options get setup correctly. But one network I
plug into only has the windows file servers only in WINS, not DNS.
If you use ifplugd (and remove net.eth0 from your startup) things become
relatively simple. The ifplugd program activates the network when a
cable is plugged in, and deactivates it when it is removed.
I have an /etc/ifplugd/ifplugd.eth0 script that runs dhclient to acquire
or release addresses, and a /etc/dhcp/dhclient-exit-hooks script that
sets up the wins servers for samba. The wins server part of exit-hooks
looks like this:
if test -n "$new_netbios_name_servers" ; then
printf " wins server = $new_netbios_name_servers\n" \
>/etc/samba/wins_servers.conf 2>/dev/null
fi
s=`/etc/init.d/samba status | grep "started$"`
if test -n "$s"; then
/etc/init.d/samba reload
fi
This creates /etc/samba/wins_servers.conf, which my /etc/samba/smb.conf
file includes. I also added "wins" to the hosts line in /etc/nsswitch.conf.
My next task is to recognize the time server option of dhcp and run an
ntpclient to synchronize with the network time.
If you need more help or advice after reading man ifplugd, dhclient, and
dhcp-options, just ask.
-Richard
--
[email protected] mailing list